flat assembler
Message board for the users of flat assembler.

Index > Windows > edit controls & focus

Author
Thread Post new topic Reply to topic
dacid



Joined: 31 Aug 2008
Posts: 57
dacid 10 Oct 2008, 09:14
I have a dialogbox with two edit controls and i want none of them get the focus (actually the text i displayed in the first edit control is "selected" when i start the app)...

Question
Post 10 Oct 2008, 09:14
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20344
Location: In your JS exploiting you and your system
revolution 10 Oct 2008, 09:42
You could create a transparent window on top of the edit controls that will take the focus instead. Or maybe you can subclass the edit controls and push the focus somewhere else whenever you receive the WM_SETFOCUS message.
Post 10 Oct 2008, 09:42
View user's profile Send private message Visit poster's website Reply with quote
shoorick



Joined: 25 Feb 2005
Posts: 1614
Location: Ukraine
shoorick 10 Oct 2008, 09:43
sort your controls so this control will be first (among active controls)
as alternate you may use "SetFocus" in WM_INITDIALOG processing
Post 10 Oct 2008, 09:43
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20344
Location: In your JS exploiting you and your system
revolution 10 Oct 2008, 10:19
Okay, perhaps I misunderstood, I thought the OP wanted to avoid the edit controls ever getting focus even with a mouse click.
Post 10 Oct 2008, 10:19
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.