Forum Navigation
You need to log in to create posts and topics.

Re: Radio Buttons under xib

Posted by: richlove <richlove@...>

Peter,

 

You are using the tags incorrectly in the PreferencesWindow.xib

You are setting the top four buttons with a 2000 tag and the side four buttons with a 2001 tag.

That is not what you want to do.

 

You need to set each button to a different tag number and then you can control each button the way you want to.

Set the tags in PreferencesWindow.xib to values 2000 through 2007

Then in your FutureBasic code, do something like this:

 

_PartDeadLoad = 2000

_FullDeadLoad = 2001

_PartLiveLoad = 2002

_FullLiveLoad = 2003

 

_SpecificCamber = 2004

_ SpecificCamber = 2005

_ SpecificCamber = 2006

_ SpecificCamber = 2007

 

 

Then you can control the buttons like this:

 

if fn ButtonState (_PartDeadLoad) = 0

ButtonSetState (_PartDeadLoad,1)

 

ButtonSetState (_SpecificCamber,0)

ButtonSetState (_SpecificCamber,0)

ButtonSetState (_SpecificCamber,0)

ButtonSetState (_SpecificCamber,0)

 

End if

 

 

 

Rich

 

 

 

 

Carnation Software

 

MacWise Terminal emulation for Macintosh

http://www.CarnationSoftware.com

richlove@carnationsoftware.com

512 858-9234

 

 

From: <futurebasic@freegroups.net&gt; on behalf of Peter Boyle <paboyle1703@gmail.com&gt;
Reply-To: <futurebasic@freegroups.net&gt;
Date: Wednesday, April 13, 2022 at 11:33 AM
To: F B <futurebasic@freegroups.net&gt;
Subject: [FB] Radio Buttons under xib

 

I have two sets of radio buttons, one at the top of the window and one down the side. Using code I can add a view and set the four buttons inside, set another view and set the other four buttons inside. When the program is running I click on a button in one of the views and only those four buttons will respond. 

I have tried building a window using Xcode and cannot get the two sets of button to respond separately, I tried selecting the four buttons and making the view 2000, then selected the other four buttons and made the view 2001, needless to say (seeing as I'm sending this request ) It did not work, I can't find in the Library which view to use, and also how to put the buttons in it.

 

 

 

--
To unsubscribe, send ANY message to: futurebasic-unsubscribe@freegroups.net To access the list archives, go to: http://freegroups.net/groups/futurebasic/

 

Peter Boyle

FB 7.0.12

OSX 10.14.6

Xcode 10.2

iMac 21.5 Late 2015 

2.8 GHz Intel Core i5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

--
To unsubscribe, send ANY message to: futurebasic-unsubscribe@freegroups.net To access the list archives, go to: http://freegroups.net/groups/futurebasic/