How can I add an image gadget to the tab-stop order?
Posted: Tue Feb 24, 2009 10:49 pm
I am working on a custom control.
It is implemented using the ImageGadget. The gadget choice accomplishes all of my needs thus far with one notable exception. I can't navigate to the gadget by tabbing from other gadgets.
I have reviewed forum threads regarding changing z-order positions that determine the sequence for gadgets and their activations (code posted by Sparkie).
The challenge seems to be not in changing the z-order, but in adding a gadget to the z-order. I know certain gadgets don't seem to be added to the z-order, such as ImageGadgets, and TextGadgets, because they don't need to be interacted with. Is there a way to add this functionality for the purpose of enabling keyboard input on those gadgets? I can already receive mouse input, and once selected with the mouse I can set them up to receive keyboard input until they lose focus. I looking for a way for them to be placed in the tab-stop order so that they can be selected with the tab key and then interacted with by the keyboard.
This is my first attempt at subclassing a control. I've tried going about subclassing other gadgets that already allow tab-stops and keyboard interaction but ran into snags in the controls interactions with the mouse for instance. I ran across the ImageGadget idea (from Xombie). It works great. I just need this one feature solved and it would remove the remaining obstacles for rounding out this customization.
I want to implement any changes in the callback for the specific control and not in a PureBasic event loop. This would make the control usable in more situations without having to heavily customize the event loop to make it function.
Any ideas?
It is implemented using the ImageGadget. The gadget choice accomplishes all of my needs thus far with one notable exception. I can't navigate to the gadget by tabbing from other gadgets.
I have reviewed forum threads regarding changing z-order positions that determine the sequence for gadgets and their activations (code posted by Sparkie).
The challenge seems to be not in changing the z-order, but in adding a gadget to the z-order. I know certain gadgets don't seem to be added to the z-order, such as ImageGadgets, and TextGadgets, because they don't need to be interacted with. Is there a way to add this functionality for the purpose of enabling keyboard input on those gadgets? I can already receive mouse input, and once selected with the mouse I can set them up to receive keyboard input until they lose focus. I looking for a way for them to be placed in the tab-stop order so that they can be selected with the tab key and then interacted with by the keyboard.
This is my first attempt at subclassing a control. I've tried going about subclassing other gadgets that already allow tab-stops and keyboard interaction but ran into snags in the controls interactions with the mouse for instance. I ran across the ImageGadget idea (from Xombie). It works great. I just need this one feature solved and it would remove the remaining obstacles for rounding out this customization.
I want to implement any changes in the callback for the specific control and not in a PureBasic event loop. This would make the control usable in more situations without having to heavily customize the event loop to make it function.
Any ideas?