How to make a tooltip?

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

tedlin01
Just popping in
Just popping in
Posts: 12
Joined: Wed Apr 29, 2009 19:22

How to make a tooltip?

Postby tedlin01 » Wed May 06, 2009 19:00

Hello!
I have now been trying to make a tooltip but failed.

I have tried:

// Create tooltip
CEGUI::Tooltip * pTooltip = new CEGUI::Tooltip("TaharezLook/Tooltip", "CPHORA");
pTooltip->setDisplayTime( 5.0f );
pTooltip->setHoverTime( 1.0f );
pTooltip->setTooltipText("HEJ DIN FITTA");
pTooltip->setAlwaysOnTop( true );

// Add tooltip to my button
pbtn->setTooltip( pTooltip )
.. didn't work.

I have also tried
pbtn->setProperity("Tooltip", "TEXT");
.. didnt work.

I am using injectTimePulse as it's supposed to be used. What else is missing?
Please help me asap!

tedlin01
Just popping in
Just popping in
Posts: 12
Joined: Wed Apr 29, 2009 19:22

Re: How to make a tooltip?

Postby tedlin01 » Wed May 06, 2009 19:25

by using pbtn->setTooltipText("this is tooltip");
i managed to atleast get a stack overflow crash :P
Is there anyway I can get pass this or is it impossible to use the tooltipsystem in 0.6.2?

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Re: How to make a tooltip?

Postby Jamarr » Wed May 06, 2009 20:30

If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!

tedlin01
Just popping in
Just popping in
Posts: 12
Joined: Wed Apr 29, 2009 19:22

Re: How to make a tooltip?

Postby tedlin01 » Thu May 07, 2009 22:14

yeah... I have tried that tutorial..

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Re: How to make a tooltip?

Postby scriptkid » Fri May 08, 2009 15:23

Okay, and you also called 'setDefaultTooltip()'?
Check out my released snake game using Cegui!

maori
Just can't stay away
Just can't stay away
Posts: 161
Joined: Tue Sep 23, 2008 13:05
Location: Plumstead , UK

Re: How to make a tooltip?

Postby maori » Sun May 31, 2009 14:42

heya

there is or was a recursive event issue

viewtopic.php?f=10&t=3796

dont know the status of it though but i guess its fixed and need to wait for the next release ?
trying to upgrade to 0.8.2 from 0.7.9 :D

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: How to make a tooltip?

Postby CrazyEddie » Sun May 31, 2009 19:27

maori wrote:dont know the status of it though but i guess its fixed and need to wait for the next release ?

This is pretty much the situation. Though I'm somewhat reluctant to do a 0.6.3 release, since I really wanted 0.7.0 to be next - but that's taking forever to get done :(

CE.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 16 guests