[futurebasic] Re: [FB] Radio Buttons

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2008 : Group Archive : Group : All Groups

From: Brian Stevens <bstevens33@...>
Date: Wed, 16 Jan 2008 13:38:27 -0700
On Jan 16, 2008, at 8:39 AM, Robert wrote:
>
> It works but it has a problem.

Unfortunately, some of the examples in the Examples folder are poor  
and I see you've used the one in the "Buttons" folder as a template.


>
> And I guess three buttons is the limit so I cannot make a seven  
> button window.
I don't know where you got the idea of a limit. Please let me know  
where you read this. Are you just assuming?
Answer: there is no limit

Rather than try and fix that example, here is a link to a quick  
program shell that uses FB event handling (versus CE which is what I  
recommend). It shows how to embed 3 radio buttons in a group and then  
pick up each sub control when an event is triggered. By the way, it  
is VERY rare to need to add anything inside the event loop (do  
handleevents until gFBquit) as in your original example. This forces  
constant polling and is a waste of resources. The event-driven model  
is to wait for the use to do something and then dispatch. Please  
study not only the radio buttons but how the vectors are established  
( ON Dialog and ON menu) to intercept events.

Good luck.

Brian S.

http://www.box.net/shared/qtkjc590ck