#87194 - 2002-08-06 05:02 PM
Kixforms: MousePointer, MouseIcon or just Cursor ?
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
Gang,
Not too sure if anyone has picked-up on this or not (based on discussion) over the past few weeks, but I've been slowly moving away from the Microsoft Forms naming convention and more towards the .NET naming scheme for Object Properties and Methods (where applicable). Having said that, I'm just wrapping-up Kixforms TNG and I'm stuck on an issue that I would like to get some feedback on. Specifically, the mechanism for setting the MouseCursor (or MouseIcon or MousePointer) ...
1) Strategy one is to have a property called MousePointer that gets or sets a numeric value indicating which icon to use (0 is the default arrow and 11 is the hourglass), for example:
code:
$Form.MousePointer = 11 ; Hourglass ; do something ... $Form.MousePointer = 0 ; Arrow
To use a custom icon (.ICO or .CUR file), another property called MouseIcon is used to specify the path of the file, and the value of MousePointer is then set to 99 (user-defined), example:
code:
$Form.MouseIcon = ".\fraggers.ico" $Form.MousePointer = 99 ; Custom jobbie ; do something ... $Form.MousePointer = 0 ; Back to default arrow
2) Strategy two is to have just one variant (morphic) property called Cursor (.NET style) and provide the ability to get or set this value to a number (0 to 11) and/or set it to a string specifying a custom .ICO or .CUR file, for example:
code:
$Form.Cursor = 11 ; Hourglass ; do something ... $Form.Cursor = 0 ; default
-and/or-
code:
$Form.Cursor = ".\fraggers.ico" ; do something ... $Form.Cursor = 0 ; back to default
Thoughts anyone ? Is one strategy more intuitive than the other, is the second strategy to conviluted ?
-Shawn [ 06. August 2002, 17:07: Message edited by: Shawn ]
|
|
Top
|
|
|
|
#87195 - 2002-08-06 05:06 PM
Re: Kixforms: MousePointer, MouseIcon or just Cursor ?
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
I like the second choice: code:
$Form.Cursor = ".\fraggers.ico" ; do something ... $Form.Cursor = 0 ; back to default
[ 06. August 2002, 17:07: Message edited by: Howard Bullock ]
|
|
Top
|
|
|
|
#87198 - 2002-08-06 05:44 PM
Re: Kixforms: MousePointer, MouseIcon or just Cursor ?
|
rclarke
Starting to like KiXtart
   
Registered: 2001-06-08
Posts: 178
Loc: Oxfordshire, United Kingdom.
|
I'm spotting a trend ... I go for the second one also. Many thanks Shawn for implementing this one, especially as I think I was the first one to request it
Rod.
|
|
Top
|
|
|
|
#87199 - 2002-08-06 07:35 PM
Re: Kixforms: MousePointer, MouseIcon or just Cursor ?
|
Bryce
KiX Supporter
   
Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
|
I say the 2nd one, It feels more natural
that fraggers.ico has to look weird as a mouse pointer
Bryce
|
|
Top
|
|
|
|
#87206 - 2002-08-12 06:10 AM
Re: Kixforms: MousePointer, MouseIcon or just Cursor ?
|
Redback
Getting the hang of it
Registered: 2002-03-20
Posts: 71
Loc: Albury Wodonga, Australia
|
i like the second one
/me egarly awaits TNG
got a nice doco for us n00b's to read? or do we have to wait longer for that?
|
|
Top
|
|
|
|
#87210 - 2002-08-12 07:18 AM
Re: Kixforms: MousePointer, MouseIcon or just Cursor ?
|
Redback
Getting the hang of it
Registered: 2002-03-20
Posts: 71
Loc: Albury Wodonga, Australia
|
quote: Hi Redback, I'm updating the doc as we speak ...
Id like to take this oportunity to say w00t!
|
|
Top
|
|
|
|
Moderator: Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart
|
0 registered
and 483 anonymous users online.
|
|
|