Page 1 of 1
Tooltip Office like
Posted: Mon Apr 27, 2009 8:05 am
by Otto
Hello Antonio,
I plan to insert a help system into my program.
I saw that office makes the help a little bit different.
Thanks to the codeblock capability I have the functionality ready.
DEFINE BUTTON FILE ".\bitmaps\ZiMaed.bmp" OF oBar ;
ACTION msginfo("...");
PROMPT "Zimmermädchenliste";
TOOLTIP { || WndMain():nHelpID := "ZIMMERM" , cToolTip := {"? Drücken Sie F1, um die Hilfe anzuzeigen","Zimmermädchenliste" } }
But the outlook of the Tooltip looks different. Would it be possible to get a as an option a office like CreateToolTip into window.prg?
Thanks in advance
Otto
Office:
own tooltip
Re: Tooltip Office like
Posted: Mon Apr 27, 2009 8:11 am
by richard-service
Hi
I remember C5 make it, but now was stop.
FWH need to add more new functions or style ON UI.
Regards,
Richard
Re: Tooltip Office like
Posted: Mon Apr 27, 2009 9:54 am
by Antonio Linares
Otto,
Please review FWH\samples\NewHelp.prg and press the bottom help button and then click on a control.
It shows how to display a message with any shape that you may want.
Re: Tooltip Office like
Posted: Mon Apr 27, 2009 10:41 am
by Otto
Hello Antonio,
thank you for your answer.
I can’t imagine at the moment how I could substitute tooltip with the new ShowHelp.
Do you maybe have an example of how to activate ShowHelp instead of TOOLTIP.
Should I change the ShowToolTip method of the window class? I am afraid of the window class. All is inheriting from this class.
I had a look on WINWORD and there the TOOLTIP is shown with a header, a body text and if there is a help topic available there is a line, a question mark bitmap and the text “Please press button F1 for more help”.
The font inside the tooltip seems to be the same only the header is bold. The Tooltip is always shown in the main window and it does not matter which row coordinates you click on an I think it has a fix width.
FW tooltip with ::lBalloon := .f. is close to that look only,
the tooltip has no question mark and line possibility for the message F1,
differs on width depending on the text, the font is too big and the position of the tooltip depends on the row you click on the control.
Thanks in advance and best regards,
Otto
PS: For the samples folder of 9.04 to correct:
helpnew.prg from the samples is not working out of the box:
SetHelpFile and SetHelpPopup is missing
Enhanced tooltip: pop-up window that contains an explanation of the associated command, the shortcut key (if one exists), and optional graphics and links to help topics. The tooltip is displayed on mouse hover.
http://msdn.microsoft.com/en-us/library ... .aspx#APIs
Re: Tooltip Office like
Posted: Mon Apr 27, 2009 1:46 pm
by Otto
My name is Jensen Harris and I'm the Group Program Manager of the Microsoft Office User Experience Team.
Today, I want to introduce the way we've integrated help content into the Office 12 user interface: a feature we call "Super Tooltips."
http://blogs.msdn.com/jensenh/archive/2 ... 99371.aspx
Re: Tooltip Office like
Posted: Tue Apr 28, 2009 4:07 pm
by Silvio
Otto,
I made two Year ago a class Tooltip
I mean to create office like tooltip but then I not worked on this project
I can send you the source code if you want continue it
Re: Tooltip Office like
Posted: Tue Apr 28, 2009 5:22 pm
by Otto
Hello Silvio,
thank you for your offer.
But studying the classes like window.prg and reading the MSDN Library I see that this is all very sophisticated.
http://msdn.microsoft.com/en-us/library ... S.85).aspx
Win32 and COM Development
User Interface
Windows Controls
Control Library
ToolTip
I think it is better if FiveTech implements these essential things.
I was not aware how well FIVEWIN keeps on the standard.
I am sure FIVETECH will implement the tooltip into the new ribbon as a “Super Tooltips”.
Thanks again.
Best regards,
Otto
Re: Tooltip Office like
Posted: Wed Apr 29, 2009 1:46 am
by Antonio Linares
Otto,
This FWH tooltips enhancement was implemented back in March 2008. From whatsnew.txt:
* Enhancement: Tooltips can now have user defined header, icon and colors, by specifying the tooltip as an array in the format { cToolTipText, [cHeader, [nIcon]], [nForeColor], [nBackColor] }. If the tooltip is specified as a codeblock, it can evaluate to a character value or an array.
Surely this can improve your tooltips very much
Re: Tooltip Office like
Posted: Wed Apr 29, 2009 6:44 am
by Otto
Hello Antonio,
thank you. I found out how to use help. But still I miss some features which Office -“Super Tooltip” has.
I quote from an article of the Office blog:
1) "a picture is worth a thousand words"
I think the text margin could be set with TTM_GETMARGIN but how can I insert the bitmap?
2) “Super Tooltips bridge the gap between the user interface and the help system. By the time we ship Office 12, every feature with a help article will be linked directly from the tooltip. Super Tooltips advertise this with "Press F1 for more help" at the bottom; pressing F1 takes you directly to more information about the selected feature. Direct access--no more fumbling around or searching aimlessly.” quoted from the blog
How can I draw the line the question mark icon and the “Press button…” bold
3)
You might be concerned about bigger tooltips covering up the Ribbon while you're searching for commands. Not to worry--Super Tooltips always appear directly below the Ribbon, so they never cover up the command space.
At the moment my tooltips appear depending on the position of the mouseclick.
Here a screen to demonstrate.
How can I setup the position.
Thanks in advance and best regards,
Otto
Re: Tooltip Office like
Posted: Wed Apr 29, 2009 7:47 am
by Silvio
Otto and Antonio
my class is a class from Twindow
Re: Tooltip Office like
Posted: Wed Apr 29, 2009 7:57 pm
by Otto
reduce top & bottom margins
This shows a fullscreen tooltip:
SendMessage(hWnd, TTM_SETMARGIN, 0, '1,10,6,20' )
Can someon help me out with the right syntax.
Thanks in advance
Otto