StatusBar AutoHint

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Krep
Junior Coder
Posts: 31
Joined: Thu Nov 12, 2009 3:56 pm

StatusBar AutoHint

Post by Krep » Thu Feb 04, 2021 7:19 am

Hello,

Is there a way to have the status bar automatically show the hint from the control the user is hovering over?

I figured out how to make the individual controls show the hover hint, but it disappears a bit quickly and I would rather it show in the status bar, if possible.

I found AutoHint = True.. But it doesn't seem to do anything.

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1350
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: StatusBar AutoHint

Post by Dorian (MJT support) » Thu Feb 04, 2021 11:48 am

In your statusbar properties, ensure SimplePanel=True.

Then you can use AddDialogHandler and SetDialogProperty for when the mouse enters and leaves each object.

Code: Select all

AddDialogHandler>Dialog1,MSButton1,OnMouseEnter,HintButton1ON
AddDialogHandler>Dialog1,MSButton1,OnMouseLeave,HintButton1OFF


SRT>HintButton1ON
    SetDialogProperty>Dialog1,StatusBar1,SimpleText,MyHint
END>HintButton1ON

SRT>HintButton1OFF
    SetDialogProperty>Dialog1,StatusBar1,SimpleText,
END>HintButton1OFF
There are other options in addition to OnMouseEnter and OnMouseLeave. For a list of possible event names edit the dialog in the Dialog Designer, right click on an object and select "List Event Names"
Yes, we have a Custom Scripting Service. Message me or go here

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts