Page 1 of 2
Tooltip request
Posted: Wed Nov 14, 2007 4:57 pm
by TimStone
Antonio,
To use balloon tool tips, with each release we have to modify windows.prg and link it into our application.
Would it be possible to set this as an option, ie. a data element ( logical ) within the class code ?
Tim
Posted: Wed Nov 14, 2007 5:04 pm
by nageswaragunupudi
I too support this proposal
Posted: Wed Nov 14, 2007 6:51 pm
by Antonio Linares
Tim, NageswaraRao,
Already implemented for FWH 7.12
DATA lBalloon
Thanks,
Balloon
Posted: Wed Nov 14, 2007 10:17 pm
by TimStone
Thanks ...
I much prefer leaving the lib intact.
Tim
Posted: Wed Nov 14, 2007 10:35 pm
by nageswaragunupudi
Can a global setting be provided ?
Otherwise we may have to keep writing o:lBallon := .t. for each and every instance of control and other derived class from windows. We may forget at some places and the user interface will not be consistent.
Balloon
Posted: Thu Nov 15, 2007 4:33 am
by TimStone
Just set a template pattern for button bars that includes that data item. Its no different then setting up a browse or other "large" control.
Posted: Thu Nov 15, 2007 5:28 am
by nageswaragunupudi
I use tooltips for many controls including Gets
Posted: Thu Nov 15, 2007 7:19 am
by Antonio Linares
If we set it as a global option, then the entire application will use only one kind of tooltips, unless its :lBalloon is changed. Is that fine ?
Posted: Thu Nov 15, 2007 8:43 am
by nageswaragunupudi
I think yes. Because for each application we need to provide one consistent interface. We can purposefully override in the code at specific places if that is what is required in the context.
I suggest global setting for ballon tips and office2007 style both, which will be the default throughout the application with facility to optionaly override in specific cases
Global
Posted: Thu Nov 15, 2007 7:00 pm
by TimStone
Since I would only use the newer balloon style universally, its OK with me, but adding a line of code for a button bar isn't that hard. Of course, tooltips with gets would add a lot if each one was set individually.
Posted: Fri Nov 16, 2007 8:59 am
by Antonio Linares
A new function SetBalloon( lOnOff ) has been added.
Balloon shape is not used by default. To show tooltips as balloon:
SetBalloon( .T. )
If you want a specific control to show its tooltip in a different way, just do:
oControl:lBalloon = .F.
Posted: Fri Nov 16, 2007 3:19 pm
by nageswaragunupudi
This is very convinient for us to use
Similarly can we have a switch for Office2007 look also?
While converting or upgrading a large application it is possible that we may leave a few popup menus or button or msg bars. ( happened to me ). Global switch is much better to convert a whole application's interface look uniformly
This applies even for any such future major gui enhancements
With Gets ?
Posted: Fri Nov 16, 2007 4:44 pm
by TimStone
A post indicated tooltips are used with "everything" including Get controls .
Just curious ... but I don't see Tooltips implemented in Gets ? How's that done ?
Tim
Posted: Fri Nov 16, 2007 5:07 pm
by Antonio Linares
Tim,
oGet:cTooltip = "Text"
Get
Posted: Fri Nov 16, 2007 6:48 pm
by TimStone
OK ... nice to know. My GET's are REDEFINED from a resource using a command line so I'll have to consider the benefit of recoding a bit.