BarCommand Tooltips - generating dynamic text

Bars for Windows Forms Forum

Posted 18 years ago by Bill Jacquot
Avatar
Is there an event I can catch just before a tooltip gets displayed to dynamically generate the tooltip text? We generate tooltip text dynamically for our undo/redo toolbar buttons. The tooltip text tells you what will get undone (or redone). I guess I could rely on the auto update delay setting to continously update the tooltip text but it seems much cleaner to just do this right before the tooltip gets displayed.

Comments (4)

Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
We don't have an event for that yet but I can add it to the TODO list for you.


Actipro Software Support

Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
How about this though... since you are using the command pattern, what if we make BarCommand.ToolTipText virtual. Would that accomplish what you need? I believe it is only called before the tooltip is displayed.


Actipro Software Support

Posted 18 years ago by Bill Jacquot
Avatar
Yes I think that would work better for folks who subclass BarCommand.
Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Ok, this is added for the next maintenance release.


Actipro Software Support

The latest build of this product (v24.1.0) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.