KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

Feature Request: ToolTipTextTime or something alike
Goto page 1, 2  Next
 
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion
View previous topic :: View next topic  
Author Message
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Tue Aug 10, 2004 6:53 am    Post subject: Feature Request: ToolTipTextTime or something alike Reply with quote

Shawn,

I got this really big ToolTipText for one of those Listviews (5 lines of Text)
and with the normal timeout it is near to impossible to read all that crap ... so one have to leave and reenter the control with the mouse.

I thoght about a new property that allows to set the time the ToolTip will be shown, is this possible ?

[maybe I should be less lazy and write a help file for this but as the development of RichTextThingie is not that far, you know Confused ]

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Tue Aug 10, 2004 10:37 am    Post subject: Reply with quote

the same problem occurs in huge amount of released proggies...
say, all which have that long entries.
I think it's not adjustable at all.

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Tue Aug 10, 2004 11:33 am    Post subject: Reply with quote

The Quicklaunch Bar ... at least on W2K ... if you place the cursor over an icon and leave it there the ToolTip will stay.
But that's maybe an OS interna.

Stillit would be cool to have this feature

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Tue Aug 10, 2004 3:42 pm    Post subject: Reply with quote

ok, think i need a break from Sockets anyways ... will (try to) do this under one condition ... that you give the "dotnet" way of creating a tooltip a shot.

Works something like this:

$ToolTip = $System.Tooltip()

$Button = $Form.Button()

$Tooltip.SetTooltip($Button, "This is my tooltip!")

This "way" will provide the flexibility your looking for, one can have one or many different tooltip objects, easch with their own settings (like times etc) ... checkout the dotnet Tooltip control and comment.
Back to top
View user's profile Send private message
pearly
KiXforms Aficionado
KiXforms Aficionado


Joined: 27 Jan 2004
Posts: 332

PostPosted: Tue Aug 10, 2004 7:08 pm    Post subject: Reply with quote

Cool! So a ToolTip object from the System namespace can be assigned to a particular object that supports ToolTips like a button, label, etc.

I would love to see tool tip text that never goes away (like the QuickLaunch bar).

Razz
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Tue Aug 10, 2004 7:20 pm    Post subject: Reply with quote

hmmm, never noticed that before - the tooltips on quicklaunch icons never go away (at least to the extent of my patience) ...
Back to top
View user's profile Send private message
Chris S.
KiXforms Enthusiast
KiXforms Enthusiast


Joined: 05 Mar 2003
Posts: 241

PostPosted: Tue Aug 10, 2004 7:54 pm    Post subject: Reply with quote

You must have the attention span of a 3-year old. I counted 30-some seconds on my Windows 2000 machine. Rolling Eyes Wink
Back to top
View user's profile Send private message MSN Messenger
Les
KiXforms Aficionado
KiXforms Aficionado


Joined: 24 Dec 2003
Posts: 317

PostPosted: Tue Aug 10, 2004 8:09 pm    Post subject: Reply with quote

Well... about 34 seconds on my XP.
_________________
The Repro Man
Stealing for a living!
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Wed Aug 11, 2004 3:24 am    Post subject: Reply with quote

ok cappy - give the latest dev. build a try - still updating the docs on this one, plus will be adding some features to make this whole tip thing a bit more intregrated, but heres a test script.

The important properties are:

AutoPopDelay:

Set the length of time a ToolTip window remains visible if the pointer is stationary within a tool's bounding rectangle.

InitialDelay:

Set the length of time a pointer must remain stationary within a tool's bounding rectangle before the ToolTip window appears.

ReshowDelay:

Set the length of time it takes for subsequent ToolTip windows to appear as the pointer moves from one tool to another.

or set this one global-type value:

AutomaticDelay:

Set all three delay times to default proportions. The autopop time will be ten times the initial time and the reshow time will be one fifth the initial time.

Heres the script ... got some other goodies like Active and BackColor and ForeColor, ....

Code:

Break On

$System = CreateObject("Kixtart.System")

$Form = $System.Form()
$Form.Size = 400,400
$Form.Text = "Tooltip Demo"
$Form.Font = $System.Font("Courier New",12)

$ToolTip1 = $System.Tooltip()

;; use this

$ToolTip1.InitialDelay = 10
$ToolTip1.PopupDelay = 10
$ToolTip1.ReshowDelay = 10

;; or use this ...

;; $ToolTip1.AutomaticDelay = 100

$ToolTip1.BackColor = "burlywood"
$ToolTip1.ForeColor = "white"

$ToolTip1.SetToolTip($Form,"This is the tooltip for the entire form!"+CHR(13)+"Go to button for more tips!")

$Button = $Form.Button()
$Button.Text = "Click..."
$Button.Center
$Button.OnCLick = "Click()"

$Tooltip1.SetTooltip($Button,"This is a tool tip for" + CHR(13) + "button1")

$Form.Center
$Form.Show
While $Form.Visible
 $= Execute($Form.DoEvents)
Loop

Exit 1

Function Click()

 $ToolTip1.Active = Not $ToolTip1.Active

EndFunction



-Shawn
Back to top
View user's profile Send private message
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Wed Aug 11, 2004 6:14 am    Post subject: Reply with quote

Les, Chris,

my attention span must be also a bit 'childish' Rolling Eyes
Plus I am kind of a nervous mouse moving jerk ... all of my actual and former coworkers agreed that my mouse movement and acceleration are way too fast ... on the other side I have been seen trying to throw equipment through the next wall because of too slow start menues Embarassed

Shawn,

I cannot say often enough how much I appreciate kixforms and the effort you take in the development ! good woork [/Igor Mode Mr. Green ]

I will of course test this and get back to you today

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Wed Aug 11, 2004 9:02 am    Post subject: Reply with quote

I'm back from testing .... Grooovy Nod !

Now on for skin support Cunning
*hides

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Wed Aug 11, 2004 12:04 pm    Post subject: Reply with quote

cappy - depending on the urgency, might not get too carried away coding-up SetToolTip methods ... I'm trying to quickly "add-back-in" a better, more integrated way of using tooltips ... its kinda going to work like menus, like this:

1) Create a custom tooltip:

$ToolTip1 = $System.ToolTip()

2) Set the custom options:

$ToolTip1.AutomaticDelay = 1000
$ToolTip1.BackColor = "White"

3) Snap the tooltip into a container object, like a form or groupbox:

$Form.ToolTip = $ToolTip1

4) Then, for all objects that are children of the container, be able to simply specify the tooltip text using the ToolTipText property, like this:

$Button1.ToolTipText = "This is my tooltip"

The button tooltip in this case, will be automatically implemented by the tooltip of the parent. The "problem" with this approach is that I am going to have to "officially" depracate and not-support the (really) old method of specifiying simple tooltips, we used to be able to say:

$Button.Tooltip = "This is my tooltip"

But this syntax was depracated long ago, and has never even been documented ... if one is still using this syntax, must change to the new ToolTipText property going-forward ...

however, I'm going to make it so that existing scripts that use the simple ToolTipText property (and haven't specified a custom tooltip) those will still work no problems.

-Shawn
Back to top
View user's profile Send private message
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Wed Aug 11, 2004 12:39 pm    Post subject: Reply with quote

Right,

if it wasn't even documented then go and deprecate it ... I think I for myself īnever used .ToolTip but always .ToolTipText (well, at least in the few kixforms apps I wrote)

The way you described in last post gets my support anyway Wink

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Wed Aug 11, 2004 12:42 pm    Post subject: Reply with quote

Shocked

I found 3 occurances of .ToolTip in my first porting try of hearts ... but that needs anyway complete revamping as for .Socket support.

Required build is here 36 ... quite old that thing

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Wed Aug 11, 2004 2:00 pm    Post subject: Reply with quote

Im going to be posting a new dev build shortly, with some more ToolTip members and updated documentation - if you get a chance today, check it out.

-Shawn
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group