View previous topic :: View next topic |
Author |
Message |
Bojo
Joined: 22 Oct 2004 Posts: 23 Location: Denmark
|
Posted: Sat Nov 20, 2004 8:03 pm Post subject: Radiobuttons makes program hang |
|
|
Create some radiobuttons in a groupbox or panel.
Create some radiobuttons directly on the form.
As soon as you click on one of the forms radiobuttons, the program hangs. |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Sun Nov 21, 2004 5:09 am Post subject: Re: Radiobuttons makes program hang |
|
|
Bojo wrote: | Create some radiobuttons in a groupbox or panel.
Create some radiobuttons directly on the form.
As soon as you click on one of the forms radiobuttons, the program hangs. |
I think it's due to the WS_EX_CONTROLPARENT style; the form and groupbox or panel would fight over which gets the checked radio button.
Try this fix: www.dprogramming.com/dfl/snapshots/ |
|
Back to top |
|
|
Bojo
Joined: 22 Oct 2004 Posts: 23 Location: Denmark
|
Posted: Sun Nov 21, 2004 9:40 am Post subject: Re: Radiobuttons makes program hang |
|
|
Vathix wrote: | Bojo wrote: | Create some radiobuttons in a groupbox or panel.
Create some radiobuttons directly on the form.
As soon as you click on one of the forms radiobuttons, the program hangs. |
I think it's due to the WS_EX_CONTROLPARENT style; the form and groupbox or panel would fight over which gets the checked radio button.
Try this fix: www.dprogramming.com/dfl/snapshots/ |
Now it works. Great.
Nice that you made tooltips too. (though you hate them :-p )
I actually find them practical f.inst. in complicated option-dialogs, but maybe that's because I hate making help-files. |
|
Back to top |
|
|
ilitirit
Joined: 28 Dec 2004 Posts: 7
|
Posted: Wed Dec 29, 2004 7:51 am Post subject: |
|
|
The program still hangs for me after I installed the latest snapshot
edit: nevermind I got it working again. although now there seems to be a problem when I change the radiobutton styles using SetWindowLongA. I'll try to get to the bottom of it before I post a full report. |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Wed Dec 29, 2004 9:37 am Post subject: |
|
|
ilitirit wrote: | although now there seems to be a problem when I change the radiobutton styles using SetWindowLongA. | For the radio buttons to work right, the style WS_GROUP has to be set for the first one of each group, otherwise you'll get that hang problem. Make sure you aren't removing the style. |
|
Back to top |
|
|
|