Tooltips off screen

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Rakkar
Not too shy to talk
Not too shy to talk
Posts: 34
Joined: Tue Aug 15, 2006 02:49

Tooltips off screen

Postby Rakkar » Fri May 11, 2007 18:18

Long tooltips, which could fit if they were centered better, go off the screen. How do I fix this?

Rackle
CEGUI Team (Retired)
Posts: 534
Joined: Mon Jan 16, 2006 11:59
Location: Montréal

Postby Rackle » Fri May 11, 2007 22:00

Look through my code in Menu & Popup Menu, within the onPopupMenu() function.

When opening a popup from a right click I measure it and move it if needbe. I'm guessing tooltips could benefit from the same type of code. There should be an event triggered when a popup is opening. My recommendation would be to subscribe to global events in order to catch every popup opening and checking its position relative to the screen.

Hrm, I'm not handling the opening of submenus, which could be offscreen. Menus in general need some tweaking; some of the code in that wiki should be included into the standard Cegui code, as options (ie activate auto-opening of submenus by setting a property to true).


Return to “Help”

Who is online

Users browsing this forum: No registered users and 5 guests