<html><body>Thanks, <br>I guess that ends the discussion :)<br>Well, I won't see any chance of learning C and doing this myself, <br>so will have to find another ways...<br>regards<br>Vilem<br><br><p>---------- Původní zpráva ----------<br>Od: CoDEmanX <codemanx@gmx.de><br>Komu: bf-python@blender.org<br>Datum: 8. 6. 2014 21:37:51<br>Předmět: Re: [Bf-python] getting what's under the mouse</p><br><blockquote>I assume by "properties under the mouse" you mean you want to know over <br>which UI widget (numeric input slider, text field, ...) the cursor is over?<br>This isn't possible with python, low level events as well as the event <br>handling (e.g. right-click context menu) are done in the C code, and <br>none of it exposed to python - such as the location of a property widget <br>in a panel, the panel dimensions or scroll and zoom factors.<br><br>You can bind a new operator to RMB for e.g. the properties panel, but <br>widgets' right-click handling takes precedence. So you can't event <br>trigger an own event on RMB as a (python) user.<br><br>There are no UI element events at all on the python-side, modal <br>operators do get an event object passed hover, from which you can get <br>the device input (keystrokes and mouse events, but no "context" such as <br>which widget was underneath on mouse click).<br><br>Drawing images requires the bgl module, and I'm not sure if you can <br>disable the OpenGL sciccors (or multiple viewports?) to draw independent <br>of a certain area.<br><br><br>Am 08.06.2014 21:17, schrieb Vilem Novak:<br>> I recently did a research for implementing an blender-education related<br>> addon/<br>><br>> I wanted to be able to detect properties under the mouse, or to be able<br>> to add something to the context menu that's available for all properties.<br>><br>><br>> Is that somehow possible?<br>><br>> Another thing I would like to try is an alternative wiki-connected<br>> tooltip system, with drawing of images.<br>> Is there some kind of event like on-mouse-over for blender's UI elements?<br>><br>> Thanks,<br>> Vilem<br>><br>><br>><br>><br>><br>> _______________________________________________<br>> Bf-python mailing list<br>> Bf-python@blender.org<br>> http://lists.blender.org/mailman/listinfo/bf-python<br>><br>_______________________________________________<br>Bf-python mailing list<br>Bf-python@blender.org<br>http://lists.blender.org/mailman/listinfo/bf-python</blockquote></body></html>