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
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: 17279
Location: In your JS exploiting you and your system
revolution
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: 1605
Location: Ukraine
shoorick
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: 17279
Location: In your JS exploiting you and your system
revolution
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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.