[futurebasic] Re: [FB] Radio Buttons

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

From: "Robert Spoecker" <ke6nij@...>
Date: Wed, 16 Jan 2008 15:05:21 -0800
On 1/16/08, Brian Stevens <bstevens33@...> wrote:
> 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
> --
Thanks Brian,

I downloaded your file and it ran fine. I studied it and modified it
to learn how to use it and I think I am catching on a little. At any
rate I can import sections of it into my own programs and get good

The thing that puzzles me most is that apparently the limit to radio
buttons in one window is tree and push buttons are limited to two. It
seems to me that those are rather low numbers. Why not allow as many
buttons as one can fit in a window? Ok I am not a programmer anymore
(I used to be decades ago) but it seems that would not have been much
trouble to the clever programmers that write this stuff.


> To unsubscribe, send ANY message to: futurebasic-unsubscribe@...