Hi all,
I don't know if it's possible but I try to ask.
I've a scrolling field containing in each line a long string of text. the end part of strings are hidden, due to the width of the field (obviously I've used the H scrollbar to show all the text).
but would be possible to put in a label the content of a line, only the mouse is over it, without click on the line? (something like the Hover Icon of a button)
ciao
franco
Pop-Up the content of lines
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Pop-Up the content of lines
Ciao Franco,
You can use mouseline() to get the num of line which is under the cursor
Best regards
Jean-Marc
You can use mouseline() to get the num of line which is under the cursor

Code: Select all
on mousemove
put mouseline()
end mousemove
Jean-Marc
https://alternatic.ch
Re: Pop-Up the content of lines
bonjour Jean-Marc,
thanks for your help. I tried this code into the script of the field I want to monitor "fldDoc":
it works, but sometime, I don't know why and when I got this error:
the target is the field and the code should be runs only when the mouse is over it....
Best regards
franco
thanks for your help. I tried this code into the script of the field I want to monitor "fldDoc":
Code: Select all
on mousemove
put text of the mouseLine into fld "fldTesto"
end mousemove
field "fldDoc": execution error at line 36 (Chunk: no target found), char 13
the target is the field and the code should be runs only when the mouse is over it....
Best regards
franco
Re: Pop-Up the content of lines
It's caused by the scrollbar. The mouseline returns empty...francof wrote: it works, but sometime, I don't know why and when I got this error:field "fldDoc": execution error at line 36 (Chunk: no target found), char 13
the target is the field and the code should be runs only when the mouse is over it....
franco
To solve the problem :
Code: Select all
on mousemove
put the mouseline into tVAR
if tVAR is not empty then put text of the mouseline into fld "fldTesto"
end mousemove
Re: Pop-Up the content of lines
HI bangkok,
so is the space taken by the scrollbars to drive me crazy... thanks for the tip.
ciao
franco
so is the space taken by the scrollbars to drive me crazy... thanks for the tip.
ciao
franco