Image tooltip

Moderators: Phil Winkler, Graham Smith, Pete Tabord

Image tooltip

Postby Gil Fleming » Mon Jan 15, 2018 3:42 pm

Does anyone know if the tooltip on an image is accessible/changeable via script?
Gil Fleming
Director
Fleming Technical Limited

You can't think about what you don't know - Mike Fidler
If you can't fight, wear a big hat - John S Fleming
The best way to have a good idea is to have lots of ideas - Linus Pauling
Gil Fleming
 
Posts: 546
Joined: Tue May 15, 2012 10:26 am
Location: Liverpool, UK
Has thanked: 1 time
Been thanked: 2 times
 

Re: Image tooltip

Postby andyclinton59 » Sun Jan 21, 2018 10:31 am

I guess the "booming" silence is answer good enough ;-)

I guess the workaround approach is the way forward.

I would just make a label or a virtual field on top of the image and hide it. Not put a tooltip on the image and simply show and hide the label/field on MouseEnter and MouseExit.

I guess you have already thought about this but might but at least I keep you company on here so you will realise there is life out here....
andyclinton59
 
Posts: 52
Joined: Fri Oct 26, 2012 5:42 pm
Has thanked: 0 time
Been thanked: 3 times
 

Re: Image tooltip

Postby Gil Fleming » Sun Jan 21, 2018 11:36 am

Happy New Year Andy (and to all of the forum users - don't have time to greet you all individually)

Thanks for the reply - the field approach is fine. I just hoped that there might be a dynamic way to get to the tooltip. Looks like even the combined might of the forum and those proactive ffenics people can't crack this one. Perhaps they have all taken up the highly attractive Pay As You Go offer of ffenics 2 and don't visit here any more (they are up to 4 whole topics now since 2016).

Speak to you in 2019. :?
Gil Fleming
Director
Fleming Technical Limited

You can't think about what you don't know - Mike Fidler
If you can't fight, wear a big hat - John S Fleming
The best way to have a good idea is to have lots of ideas - Linus Pauling
Gil Fleming
 
Posts: 546
Joined: Tue May 15, 2012 10:26 am
Location: Liverpool, UK
Has thanked: 1 time
Been thanked: 2 times
 

Re: Image tooltip

Postby Mark Nicholas » Sun Jan 21, 2018 11:39 am

I have been experimenting with variations on the following :

Code: Select all
if lastc( Picture1 , 3 ) = "JPG" then
 Picture1.tooltip.text := "Eureka" .
else
 Picture1.tooltip.string.value := "Back to Drawing Board" .
end


But cannot find a combination of keywords that passes the F2 test.

Is that the sort of thing you are trying to achieve?

The process that runs when you click 'Application, More Information, Actions' posts the Tooltip info from all FRMs in the Application into $ActInfo$.

It therefore follows that there is a way of locating Tooltip Text Strings within a .FRM file.

It would be helpful if those who "own the Code" could tell us
a) whether an item not specifically listed under 'Classes', 'Properties' or 'Methods' can nevertheless be addressed
b) if so, what would be the appropriate combination of KeyWords to use for locating and modifying the text of a Tooltip
Mark Nicholas
Mark Nicholas
 
Posts: 120
Joined: Wed Sep 12, 2007 6:56 am
Location: London , UK
Has thanked: 0 time
Been thanked: 1 time
 

Re: Image tooltip

Postby Gil Fleming » Sun Jan 21, 2018 11:57 am

Hi Mark

It's that type of thing I'm talking about, except that I would want the tooltip text to vary according to the status of an order in my application. We use nice image icons that show when an order is ready to ship, if it has special instructions or restrictions (to be paid for before shipping, for example) plus other stuff relating to shipping method. At the moment, we have to have a whole stack of hide/don't hide scripts that show a specific icon for a given condition. Did ffenics accept any of your script constructs?

My construct would be of the type
Code: Select all
if SpecialInstructions not = blank then
SpecialInstructionsIcon.visible := 1 .
SpecialInstructionsIcon.tooltip.value = SpecialInstructions.value .
SpecialInstructionsIcon.ReDraw := 1 .
Else
Blah
End


We can sort of achieve this using the clicked or double clicked event of the image together with the message box timeout function, but it's not quite as elegant as a tooltip would be. Perhaps we should just have a tooltip that says "Click for more information, or double click to find out when someone from Team Ffenics will be writing anything in their own forum".
Gil Fleming
Director
Fleming Technical Limited

You can't think about what you don't know - Mike Fidler
If you can't fight, wear a big hat - John S Fleming
The best way to have a good idea is to have lots of ideas - Linus Pauling
Gil Fleming
 
Posts: 546
Joined: Tue May 15, 2012 10:26 am
Location: Liverpool, UK
Has thanked: 1 time
Been thanked: 2 times
 

Re: Image tooltip

Postby Gil Fleming » Sun Jan 21, 2018 12:11 pm

Gil Fleming wrote:...they are up to 4 whole topics now since 2016....


It seems that my comment was inaccurate. Two of the topics were when version 2 was in beta and a third was posted by Pete Tabord in version 2, although it belonged in version 1. The fourth topic was Kjetil querying the SAAS model if ffenics went bust.

Happy days.
Gil Fleming
Director
Fleming Technical Limited

You can't think about what you don't know - Mike Fidler
If you can't fight, wear a big hat - John S Fleming
The best way to have a good idea is to have lots of ideas - Linus Pauling
Gil Fleming
 
Posts: 546
Joined: Tue May 15, 2012 10:26 am
Location: Liverpool, UK
Has thanked: 1 time
Been thanked: 2 times
 

Re: Image tooltip

Postby andyclinton59 » Tue Jan 23, 2018 9:02 am

Not that it helpful in any way but I checked the website of the "unmentionables" and they have a function that do this called Setlabeltext ex.

SetLabelText("CustomerLabel","Please Enter correct customer Name!")
andyclinton59
 
Posts: 52
Joined: Fri Oct 26, 2012 5:42 pm
Has thanked: 0 time
Been thanked: 3 times
 

Re: Image tooltip

Postby KjetilUrne » Tue Jan 23, 2018 6:51 pm

Gil Fleming wrote:
Gil Fleming wrote:...they are up to 4 whole topics now since 2016....


It seems that my comment was inaccurate. Two of the topics were when version 2 was in beta and a third was posted by Pete Tabord in version 2, although it belonged in version 1. The fourth topic was Kjetil querying the SAAS model if ffenics went bust.

Happy days.


Thank you for waking me up, Gil!
I almost forgot there's soon time for a new drumroll (or constant drumbeat, whatever). Just have to wait for April (or Aprille, whatever)!
KjetilUrne
 
Posts: 602
Joined: Mon Oct 08, 2007 8:21 am
Location: Norway
Has thanked: 4 times
Been thanked: 1 time
 

Re: Image tooltip

Postby Gil Fleming » Tue Jan 23, 2018 10:20 pm

Happy New Year Kjetil!

What's happening in April? Ffenics 3? :mrgreen:
Gil Fleming
Director
Fleming Technical Limited

You can't think about what you don't know - Mike Fidler
If you can't fight, wear a big hat - John S Fleming
The best way to have a good idea is to have lots of ideas - Linus Pauling
Gil Fleming
 
Posts: 546
Joined: Tue May 15, 2012 10:26 am
Location: Liverpool, UK
Has thanked: 1 time
Been thanked: 2 times
 

Re: Image tooltip

Postby Adrian Jones » Fri Jan 26, 2018 8:17 am

I think the simple answer is, if it's not in the list of properties for that object, you can't script for it.
User avatar
Adrian Jones
 
Posts: 2000
Joined: Tue Sep 11, 2007 2:38 pm
Location: Cornwall, UK
Has thanked: 5 times
Been thanked: 4 times
 

Re: Image tooltip

Postby John Middleton » Fri Jan 26, 2018 1:02 pm

The tooltip is attached to the cursor and you can swap that for one with text of your own.
e.g.

define "afile" text 50 .
define "current_cursor" number .
define "temp_cursor" number .
define "new_cursor" number .
define "Givenconstant" number .
define "set" number .
define "Timer" number .

Givenconstant := 32512 .

current_cursor := GetCursor () .
temp_cursor := CopyIcon (current_cursor) .

aFile := "C:\webtest\bloomingredrose.ani" .
new_cursor := LoadCursorFromFileA (aFile) .

Set := SetSystemCursor (new_Cursor, Givenconstant) .

Timer := Sleep (2000) .

Set := SetSystemCursor (temp_Cursor, Givenconstant) .


John Middleton
John Middleton
 
Posts: 110
Joined: Mon Sep 10, 2007 3:14 pm
Location: England
Has thanked: 0 time
Been thanked: 1 time
 
 

Return to Ffenics 1.x

Who is online

Users browsing this forum: No registered users and 7 guests

cron