Page 1 of 1 1
Topic Options
#87513 - 2002-08-27 03:12 AM Kixforms: TabKeyBehavior vs AcceptsTab ?
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
See there are some old dawgs on the board tonight ... help ...

One of the biggest things that causes me the most grief is trying to devise "names" for new properties. There are the old, legacy names from VB ... there are some standard OLE names for ActiveX controls, and then there are the "new" names from .NET. Case in point ... I'm sitting here wondering if I should call the property that allows TABS in TEXTBOXES, eg:

VB:

(these aren't even supported in VB):

ActiveX/VBA:

$TextBox.TabKeyBehavior = True/False
$TextBox.EnterKeyBehavior = True/False

.NET

$TextBox.AcceptsReturn = True/False
$TextBox.AcceptsTab = True/False

Anyone got an opinion ? Thing is ... if forms ever supported the older embedded OLE controls, then those will require the use of the old ActiveX/VBA name (because we talk directly to the control, not to the form) ... but the new .NET name is better (I think) more understandable and intuitive ... plus newer Controls might use this standard going forward ... errggg ... suggestions ?

-Shawn

[ 27. August 2002, 03:12: Message edited by: Shawn ]

Top
#87514 - 2002-08-27 03:17 AM Re: Kixforms: TabKeyBehavior vs AcceptsTab ?
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Didn't we do the .net thing on the mouse pointer thingy?

Maybe it should be:

$form.tabthingy

Huh, no? Ok, the dot net thing then.

Top
#87515 - 2002-08-27 03:33 AM Re: Kixforms: TabKeyBehavior vs AcceptsTab ?
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Yeah, I remember that "MousePointer" thingy ... its just that I had this mental block against calling it "Cursor" for some reason ... guess I've seen too much code that uses the MousePointer name ... actually, I kinda regret not going with the .NET Cursor name ... is it too late ... can I change my mind ?

Going for AcceptsTab and AcceptsReturn ...

Top
#87516 - 2002-08-27 04:26 AM Re: Kixforms: TabKeyBehavior vs AcceptsTab ?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11162
Loc: Boston, MA, USA
I'd say we look forward and use the .NET version.
_________________________
There are two types of vessels, submarines and targets.

Top
#87517 - 2002-08-27 04:45 AM Re: Kixforms: TabKeyBehavior vs AcceptsTab ?
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Dot NET sounds good and yes Shawn, you're entitled to change your mind.  Legacy shmegacy, heck with backwards compatability!
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#87518 - 2002-08-27 07:56 AM Re: Kixforms: TabKeyBehavior vs AcceptsTab ?
Schuliebug Offline
Hey THIS is FUN
*****

Registered: 2002-01-18
Posts: 379
Loc: Netherlands
Go with the .Net naming. That naming also seems more logical to me.
_________________________
Kind regards,

Top
#87519 - 2002-08-27 11:15 AM Re: Kixforms: TabKeyBehavior vs AcceptsTab ?
Fernando Madruga Offline
Starting to like KiXtart

Registered: 2002-08-21
Posts: 149
Loc: Coimbra.Portugal.Europe.Earth....
.net for me too [Smile]

Actually, not only it's .net, but it was used in other languages before .net too... If I recall correctly from my Delphi days, that's the way to do it in Delphi...

Later,
Madruga

{edit}
P.S.: About legacy: if you do change stuff from one version to another, please don't forget to include those changes in a readme, so as to make life easier for someone trying to upgrade to a more recent version of KiXForms... [Smile]
{/edit}

[ 27. August 2002, 11:16: Message edited by: Fernando Madruga ]
_________________________
Later,   [b]Mad[/b]ruga

Top
Page 1 of 1 1


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

Who's Online
0 registered and 166 anonymous users online.
Newest Members
amelindarķe, Nims123, davidscroegh, davidscroe, DFGHJGH
17625 Registered Users

Generated in 0.211 seconds in which 0.148 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