Tooltip Office like

Tooltip Office like

Postby Otto » Mon Apr 27, 2009 8:05 am

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
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6328
Joined: Fri Oct 07, 2005 7:07 pm

Re: Tooltip Office like

Postby richard-service » Mon Apr 27, 2009 8:11 am

Hi

I remember C5 make it, but now was stop.

FWH need to add more new functions or style ON UI.

Regards,

Richard
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 803
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: Tooltip Office like

Postby Antonio Linares » Mon Apr 27, 2009 9:54 am

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
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Tooltip Office like

Postby Otto » Mon Apr 27, 2009 10:41 am

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/dd316910(VS.85).aspx#APIs
Image

Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6328
Joined: Fri Oct 07, 2005 7:07 pm

Re: Tooltip Office like

Postby Otto » Mon Apr 27, 2009 1:46 pm

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/2005/12/02/499371.aspx
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6328
Joined: Fri Oct 07, 2005 7:07 pm

Re: Tooltip Office like

Postby Silvio » Tue Apr 28, 2009 4:07 pm

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
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: Tooltip Office like

Postby Otto » Tue Apr 28, 2009 5:22 pm

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/bb760246(VS.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
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6328
Joined: Fri Oct 07, 2005 7:07 pm

Re: Tooltip Office like

Postby Antonio Linares » Wed Apr 29, 2009 1:46 am

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
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Tooltip Office like

Postby Otto » Wed Apr 29, 2009 6:44 am

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
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6328
Joined: Fri Oct 07, 2005 7:07 pm

Re: Tooltip Office like

Postby Silvio » Wed Apr 29, 2009 7:47 am

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

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

Re: Tooltip Office like

Postby Otto » Wed Apr 29, 2009 7:57 pm

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
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6328
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 94 guests