Jump to content
Sign in to follow this  
Guest ptwaugh

How can I get custom tooltips in .gau's?

Recommended Posts

Guest ptwaugh

Hi,Just started compiling gauges using VC++, since even with the DragonFight info, I was unable to get it to work with Dev-C++ and gcc, my normal compiler.I have managed to learn enough with that info and the SDK to finally sucessfully compile the sample gauges.Now, I am trying to do something simple, namely send a pointer to custom tooltip text like this://///////////////////////////////////////////////////////////////////////////// Custom tooltipchar *hobbs_tooltip = "Hobbs Hour Meter 1500-S";MOUSE_BEGIN( hobbs_mouse_rect, hobbs_tooltip, 0, 0 )MOUSE_END/////////////Compiling gives me these 2 errors: - error C2099: initializer is not a constant - warning C4047: 'initializing' : 'int ' differs in levels of indirection from 'void *'I did this thinking the 'helpid' was a simple pointer, but apparently now. So, how does one create a custom tooltip?Patrick

Share this post


Link to post
Share on other sites
Guest _ak

For example:

MOUSE_PARENT_BEGIN(889, 394, 30, 18, HELP_NONE)	MOUSE_TOOLTIP_STRING("Yaw Damper Engage Button")	MOUSE_CHILD_FUNCT (0, 0, 30, 18, CURSOR_HAND, MOUSE_LEFTSINGLE, ToggleYd)MOUSE_PARENT_END

Share this post


Link to post
Share on other sites
Guest ptwaugh

Thanks, that did the trick.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...