Page 1 of 1

ToolTips in MENUITEM

Posted: Tue Dec 09, 2014 9:29 pm
by Pablo César
Hi all,

ToolTips use in many times are very useful and IMO it would be so good to have it in HMG, like this example:

Image
MenuItemToolTip.rar
(4.16 KiB) Downloaded 277 times
In this article showing an way by creating a hook for this optional use.

According to MSDN there is already this property:

https://msdn.microsoft.com/en-us/library ... .110).aspx

What do you think HMG Development Team ? Is it hard to implement in case ?

Re: ToolTips in MENUITEM

Posted: Wed Dec 10, 2014 3:03 am
by srvet_claudio
Good idea, I'm working on it.

ToolTips in MENUITEM

Posted: Wed Dec 10, 2014 10:50 am
by Pablo César
Wanderfull, thank you Claudio ! :D

This idea came from a need of user in PCToledo forum and I tried to imaging how it could be useful.

I've used much in Clipper's menus showing messages at something like as a StatusBar (footer of screen), but now with mouse is more visible in ToolTips.

Re: ToolTips in MENUITEM

Posted: Wed Dec 10, 2014 4:18 pm
by serge_girard
So it will be implemented in the next version?!

Great, thanks,

Serge

Re: ToolTips in MENUITEM

Posted: Wed Dec 10, 2014 9:59 pm
by srvet_claudio
serge_girard wrote:So it will be implemented in the next version?!

Great, thanks,

Serge
Yes, in HMG.3.3.2

ToolTips in MENUITEM

Posted: Sat Dec 13, 2014 2:10 pm
by Pablo César
Hi All again !

Thank you for your interest and just to put more fire in this feature :idea:

And I wish to clarify some more, thanks to our colleague HASA in another forum has mentioned.

In MiniGUI Extended there is a MESSAGE property in MENUITEM but does not refer to a ToolTip, this message is being displayed at first StatusBar item (by _HMG_aControlValue).
This feature is quite the same style as Clipper in these SET MESSAGE TO <nLine> and @ ... PROMPT <cItem> MESSAGE <cMsg> commands (Clipper Reference).

An example using this mentioned syntax is at this example: C:\MiniGUI\SAMPLES\Advanced\FrameWork\demo.prg
Screen1.png
Screen1.png (17.06 KiB) Viewed 5362 times
In this example is using some more elaborated feature, because is having a C function that reads RC file, in order to take messages string pre-defined.

IMHO, all of these feature are very usefull. All kind information given by displaying, showing what each item does, it helps to the app user and is also making part of app documentary as a good practice.

Re: ToolTips in MENUITEM

Posted: Sat Dec 13, 2014 2:45 pm
by bpd2000
Pablo César wrote:IMHO, all of these feature are very usefull. All kind information given by displaying, showing what each item does, it helps to the app user and is also making part of app documentary as a good practice.
+1

ToolTips in MENUITEM

Posted: Sat Dec 13, 2014 4:00 pm
by Pablo César
Our actual MENUITEM has following these options:
Screen2.png
Screen2.png (14.53 KiB) Viewed 5347 times
In my opinion, MENUITEM would be improved with some extra options, like as:

- DISABLED property (useful fo user's level in the system are not allowed to access specific menu items)
- CHECKMARK <cImage>
- FONT <cFont>
- And/or MESSAGE <bFunction> (this last property, would be for applying for ToolTips or routine to assign at StatusBar).

FONTCOLOR I do not know if would be implemented for different colors... :roll:

Re: ToolTips in MENUITEM

Posted: Sat Dec 13, 2014 6:49 pm
by Javier Tovar
+1