--- Alex Peters <[EMAIL PROTECTED]> wrote:
> --- Bizaro wrote:
>
> > Bruce, PowerPro can show content of file in tool tip of clip and
> > folder menu. Would it be hard for you to add such functionality to
> > CL.SetTooltip function, something like:
>
> > CL.SetTooltip(clname, clindex, TooltipFromFile("PathToFile"))
>
> This can already be done using some script code (untested):
>
> CL.SetToolTip(CLName, CLIndex, [EMAIL PROTECTED](?"%WinDir%
\Win.ini")
> Quit
>
> @ToolTipFromFile
>
> Local Handle = File.Open(Arg(1), "R")
> If(Handle > 0) Do
> Local ToolTip
> For(Local LineNo = 1; LineNo <= 3; LineNo = LineNo + 1)
> Local LineData = File.ReadLine(Handle)
> If(File.EOF(Handle))
> Break
> ToolTip = ToolTip + LineData
> EndFor
> File.Close(Handle)
> Quit(IfElse(ToolTip, ToolTip ++ If(LineNo =
4, "..."), "(Empty)"))
> Else
> Quit("Could not open file for reading")
> EndIf
Excellent idea! The line number, however, can be 6, not just 3.
And, it could be more handy:
CL.SetToolTip(CLName,CLIndex,file.readall("...\tooltip.txt"))
Sean
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/