AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to control UDS_HOTTRACK (style command)?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
umek



Joined: 02 Oct 2004
Posts: 74

PostPosted: Thu May 04, 2006 11:17 pm    Post subject: How to control UDS_HOTTRACK (style command)? Reply with quote

Let me ask one question. Can the UDS_HOTTRACK style command be used to highlight a specified control in my ahk Gui
by using a button referring to a subroutine? I ask this because I would like to use it to highlight controls if the required fields
are not present (or are blank) when submitting the Gui! (like a kind of validation)
_________________
Works on my machine!
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Fri May 05, 2006 9:17 am    Post subject: Reply with quote

I am not sure to fully understand what you are trying to do, but if I grasp correctly the UDS_HOTTRACK style, it is visible only when the mouse cursor is hovering over the UpDown control.
If you want to highlight the problematic controls, you can do what I see frequently in Web forms: put a text beside the control, hidden by default, and display it in red if a problem is detected. The text can be a simple star * or an explaination of the required field.
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
umek



Joined: 02 Oct 2004
Posts: 74

PostPosted: Fri May 05, 2006 12:02 pm    Post subject: Reply with quote

That's a good idea. I often see them too but didn't consider this way of doing it. Indeed, there is not enough space on my Gui
to add further text but I will try recolor the existing lables of the input fields. Actually, my intention was to highlight the controls by
using <GuiControl, 1:Whatever, CtrlEdit1> (for example).

Thanks for this stumbling block ...
_________________
Works on my machine!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group