Tooltip Office like

Post Reply
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Tooltip Office like

Post 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:
Image

own tooltip
Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
User avatar
richard-service
Posts: 583
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan
Contact:

Re: Tooltip Office like

Post 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
Regards,

Richard

Harbour 3.2.0dev (r1904111533)/xHarbour 1.2.3 Intl. (SimpLex) (Build 20180818) => Borland C++ v7.4
xHarbour 0.99.71 (SimpLex) => Borland C++ v5.5
MySQL v5.7 /ADS v12
Harbour 3.2.0dev (r1603181642) => Borland C++ v7.4 64bit
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Tooltip Office like

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: Tooltip Office like

Post 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
Image

Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: Tooltip Office like

Post 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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: Tooltip Office like

Post 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
Best Regards, Saludos

Falconi Silvio
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: Tooltip Office like

Post 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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Tooltip Office like

Post 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 :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: Tooltip Office like

Post 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?
Image

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
Image

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.
Image


Thanks in advance and best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: Tooltip Office like

Post by Silvio »

Otto and Antonio
my class is a class from Twindow
Best Regards, Saludos

Falconi Silvio
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: Tooltip Office like

Post 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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
Post Reply