May 05, 2024, 06:08:08 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Grouping a Radiobutton Question

Started by billhsln, March 19, 2008, 04:24:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

billhsln

March 19, 2008, 04:24:45 PM Last Edit: March 19, 2008, 04:30:20 PM by billhsln
I am trying to group 3 radiobuttons together.  I have gotten this to work before, when they are stacked on top of each other.  However, it does not seem to work if they are side by side.  In other words:

X
X
X

Works, but X X X, does not.


CONTROL w1,@GROUPBOX,"",1000,655,145,42,0x50000007,1020
CONTROL w1,@RADIOBUTTON,".01",1005,670,40,18,@TABSTOP|@GROUP,1021
CONTROL w1,@RADIOBUTTON,".05",1050,670,40,18,@TABSTOP,1022
CONTROL w1,@RADIOBUTTON,".25",1095,670,40,18,@TABSTOP,1023


Any ideas as to what I am doing wrong, or is it a function of Windows that does not allow this?

Help,

Thanks,
Bill

PS, this is for the 100 Draw Poker Game.  Full program, in current state available below.  (Not finished yet!).  Also, had to revised the CARD deck, due to logic to determine type of hand.
When all else fails, get a bigger hammer.

LarryMc

I plugged your code into a program I 'm working on and the radiobuttons worked fine once I made the x,y coordinates small enough to fit in my window.

Your running at a high resolution in order to put radiobuttons (1005,670)

I just removed a 0 from the values to get them in my window and the buttons toggled like they were suppose to.

What exactly is not working?
Not displaying? Not toggling? can't select any?

Larry
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

billhsln

I found my problem.  It seems that the text in front of the buttons was defined to be too long.  Once I shortened it up, it works exactly as it should.

Thanks for the help,

Bill
When all else fails, get a bigger hammer.