Forum > General

Hints on TMainMenu / TMenuItem are not working

(1/2) > >>

Are hints for TMainMenu objects implemented properly in Lazarus V3.2?  I cannot get them working.   I do confirm that hints on a TButton and TLabel do work on this same form, so the form does appear to be structured correctly.

In short I am trying to set up the TMainMenu where a user can hover on the menu items and understand what each one does before they click on a choice.

I have the following set:

Application.ShowHint := Set to true at design time in Object Inspector
TMenuItem.Hint := contains text, I verified this

Before throwing out guesses about what to set next, please confirm that the property actually exists, since TMainMenu seems somewhat of an oddball (for example there is no ShowHint property for TMainForm for TMenuItem, all you can do is set hints for TMenuItems).


Docs states that HINTS from menuItems appear in a TstatusBar on the form.

I just played with it and it has some interesting effects.

I believe you also need to Application.ShowHInt  set to true also.

I think this should be reported.

The think the bloody ship is broke!  :D

apparently you will not get a bubble popup like you would think.

Also it appears the code isn't projecting the hint string over the StatusPanel as stated but I found this works.

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---procedure TForm1.ApplicationProperties1Hint(Sender: TObject);begin  StatusBar1.SimpleText  := Application.Hint;end;                                                     


--- Quote from: jamie on June 10, 2024, 12:20:30 am ---Docs states that HINTS from menuItems appear in a TstatusBar on the form.
--- End quote ---

That sounds like program design out of the 1990s.  I can't remember the last time I've seen hint help presented  in a status bar.  Oh well, the rest of it is working ok so I'll figure something out..


[0] Message Index

[#] Next page

Go to full version