Re: wxEuphoria - On hover

new topic     » goto parent     » topic index » view thread      » older message » newer message
Steady said...

Is there something like a list opening up when a mouse hovers, in a list or in a grid cell.
I am aware that I can click to do an action, but instead of clicking I want to open out another list or do any action as soon as the mouse hovers in the appropriate area.

You'll need to use the wxEVT_MOTION event to track mouse movements (you'll get a lot of them). Then you can use mouse_event_position() to get the position of the mouse for that event. However, I don't think there are any functions that determine the specific bounds of a cell on screen. Ultimately, I would recommend using a wxGrid with the wxGridCellChoiceEditor column type. See set_col_editor() for details.

buzzo said...

You might try MouseTraps ... Defined sub-regions of a window that can generate w32HMouseTrap events.

That's only for Win32Lib, not wxEuphoria. Although it might not be too difficult to reproduce in wxEuphoria. It's really just a low-level event handler for mouse movements.

-Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu