Page 1 of 1 1
Topic Options
#87194 - 2002-08-06 05:02 PM Kixforms: MousePointer, MouseIcon or just Cursor ?
Shawn Administrator Offline
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 Offline
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 ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#87196 - 2002-08-06 05:27 PM Re: Kixforms: MousePointer, MouseIcon or just Cursor ?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
I'd go for the second one, too.
_________________________
There are two types of vessels, submarines and targets.

Top
#87197 - 2002-08-06 05:41 PM Re: Kixforms: MousePointer, MouseIcon or just Cursor ?
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
The .NET style seems more intuitive.
Top
#87198 - 2002-08-06 05:44 PM Re: Kixforms: MousePointer, MouseIcon or just Cursor ?
rclarke Offline
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 [Big Grin]

Rod.

Top
#87199 - 2002-08-06 07:35 PM Re: Kixforms: MousePointer, MouseIcon or just Cursor ?
Bryce Offline
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 [Big Grin]

Bryce

Top
#87200 - 2002-08-08 11:31 PM Re: Kixforms: MousePointer, MouseIcon or just Cursor ?
Schuliebug Offline
Hey THIS is FUN
*****

Registered: 2002-01-18
Posts: 379
Loc: Netherlands
I agree with all the previous posts. The second option seems better.

Any success with KiXforms TNG ?? Beta1 (or was it RC1) should be released this weekend ???? [Wink]
_________________________
Kind regards,

Top
#87201 - 2002-08-09 02:07 AM Re: Kixforms: MousePointer, MouseIcon or just Cursor ?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I think shawn is somewhat different from some of us.
he does almost perfect code which does not need rc's or beta-state publicly.

all he does is test it with his own environments and ah, there is version *.0.0.0.0

[ 09. August 2002, 02:07: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#87202 - 2002-08-09 03:11 AM Re: Kixforms: MousePointer, MouseIcon or just Cursor ?
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Hey Jooel, So what was that versioning scheme you came up with a while back ? Kixtart uses the 4.01 format, UBB uses the 6.3.1 format ... whats up with all that and whats the best one to use ?
Top
#87203 - 2002-08-10 12:59 AM Re: Kixforms: MousePointer, MouseIcon or just Cursor ?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
both are good.
I'd go for dotted:
2.0 would be version two release.
then after some days you make little addon to it.
I don't like to see then the program to be:
2.01 or 2.1

nicer and more "understandable" would be after such little adjust:
2.0.1

I think this way the version number says: "I include minor improvement"
_________________________
!

download KiXnet

Top
#87204 - 2002-08-09 01:22 PM Re: Kixforms: MousePointer, MouseIcon or just Cursor ?
Schuliebug Offline
Hey THIS is FUN
*****

Registered: 2002-01-18
Posts: 379
Loc: Netherlands
Yes, i (again) have to agree on that. Start with 2.x.y, minor update change y, major update change x. New release change the 2 in 3 or whatever.
_________________________
Kind regards,

Top
#87205 - 2002-08-09 04:26 PM Re: Kixforms: MousePointer, MouseIcon or just Cursor ?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
2.x.y

2 = new version with at least partially rewritten code
x = addition of new features
y = bugfixes/enhancements of existing features

At least that's what I try to use.
_________________________
There are two types of vessels, submarines and targets.

Top
#87206 - 2002-08-12 06:10 AM Re: Kixforms: MousePointer, MouseIcon or just Cursor ?
Redback Offline
Getting the hang of it

Registered: 2002-03-20
Posts: 71
Loc: Albury Wodonga, Australia
i like the second one [Razz]



/me egarly awaits TNG

got a nice doco for us n00b's to read? or do we have to wait longer for that?

Top
#87207 - 2002-08-12 06:18 AM Re: Kixforms: MousePointer, MouseIcon or just Cursor ?
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Hi Redback, I'm updating the doc as we speak ...
Top
#87208 - 2002-08-12 06:28 AM Re: Kixforms: MousePointer, MouseIcon or just Cursor ?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
shawn, no time for sleep?
_________________________
!

download KiXnet

Top
#87209 - 2002-08-12 06:45 AM Re: Kixforms: MousePointer, MouseIcon or just Cursor ?
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Hey Jooel, you got access to mail ? want you to try a new TNG script based on a VB program that Chris S. sent me ... actually appplies quite nicely to BBChecker ...
Top
#87210 - 2002-08-12 07:18 AM Re: Kixforms: MousePointer, MouseIcon or just Cursor ?
Redback Offline
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
#87211 - 2002-08-12 07:34 AM Re: Kixforms: MousePointer, MouseIcon or just Cursor ?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
shawn, hit it
_________________________
!

download KiXnet

Top
#87212 - 2002-08-12 02:20 PM Re: Kixforms: MousePointer, MouseIcon or just Cursor ?
Schuliebug Offline
Hey THIS is FUN
*****

Registered: 2002-01-18
Posts: 379
Loc: Netherlands
If possible, i would like to have a look at it tooooooo [Smile]
_________________________
Kind regards,

Top
Page 1 of 1 1


Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 764 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.11 seconds in which 0.063 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org