FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Radiobuttons makes program hang

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
Bojo



Joined: 22 Oct 2004
Posts: 23
Location: Denmark

PostPosted: Sat Nov 20, 2004 8:03 pm    Post subject: Radiobuttons makes program hang Reply with quote

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
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Sun Nov 21, 2004 5:09 am    Post subject: Re: Radiobuttons makes program hang Reply with quote

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
View user's profile Send private message
Bojo



Joined: 22 Oct 2004
Posts: 23
Location: Denmark

PostPosted: Sun Nov 21, 2004 9:40 am    Post subject: Re: Radiobuttons makes program hang Reply with quote

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. Wink
Back to top
View user's profile Send private message
ilitirit



Joined: 28 Dec 2004
Posts: 7

PostPosted: Wed Dec 29, 2004 7:51 am    Post subject: Reply with quote

The program still hangs for me after I installed the latest snapshot Crying or Very sad

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
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Wed Dec 29, 2004 9:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group