ButtonImageGadget Focus Indicator
Posted: Thu Apr 24, 2008 2:30 pm
In my callback I'm trapping #WM_COMMAND and #EN_SETFOCUS to hook in selection indicators. It seems to work with text boxes and editor gadgets but not with image buttons (or maybe buttons in general - I haven't tried). I also tried checking the return of EventType() and comparing it to #PB_EventType_Focus but tabbing to the button doesn't seem to fire any event of any kind.
The button is getting the focus, though. If I tab from the field above it and hit the space bar the button does "push". Is there any way to detect when a button has focus and indicate that on the button visually somehow? I'd be happy to change the image by hand but I'll have to be able to trap the focus event somehow.
I have a form that users will "tab through" to enter data and it looks like the cursor/focus disappears when the button gets it's turn. It's definitely a button data entry people will use as it is "auto fill".
Thanks!
The button is getting the focus, though. If I tab from the field above it and hit the space bar the button does "push". Is there any way to detect when a button has focus and indicate that on the button visually somehow? I'd be happy to change the image by hand but I'll have to be able to trap the focus event somehow.
I have a form that users will "tab through" to enter data and it looks like the cursor/focus disappears when the button gets it's turn. It's definitely a button data entry people will use as it is "auto fill".
Thanks!