Re: wxEuphoria - set_tip()

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

Jerry Story wrote:
> The tips are multi-line.
> 
> I added "recipes" to DMAK (Diet Monger Ass Kicker). Click on a recipe name and
> a tip lists the foods and quantities in the recipe. This requires multi-line.
> The tip would would look better if it was wide enough for a food name and a
> number. Some food names are long.

What I would suggest for you to do, instead of relying on the Tooltip, is to use
a Borderless Window, that will popup when clicked on a recipie, that way you have
full control over the size of the window, and how the text is printed on it. 
Then if the mouse moves, you can detect the movement, and move the popup with the
Mouse, till the user clicks someplace else.  This would be a more pallable option
that will work on both Windows and Linux, and wouldn't require having to mess
with the TOOLTIP Struct that wxWidgets doesn't give access to, since it is
different between Window Managers (Windows, KDE, Gnome, XFCE, and other various
WM).

Mario Steele
http://enchantedblade.trilake.net
Attaining World Dominiation, one byte at a time...

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

Search



Quick Links

User menu

Not signed in.

Misc Menu