| View previous topic :: View next topic |
| Author |
Message |
umek
Joined: 02 Oct 2004 Posts: 74
|
Posted: Thu May 04, 2006 11:17 pm Post subject: How to control UDS_HOTTRACK (style command)? |
|
|
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 |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Fri May 05, 2006 9:17 am Post subject: |
|
|
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 |
|
 |
umek
Joined: 02 Oct 2004 Posts: 74
|
Posted: Fri May 05, 2006 12:02 pm Post subject: |
|
|
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 |
|
 |
|