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

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:


(these aren't even supported in VB):


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


$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 ?


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

#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:


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

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

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 ...

#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.

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

Registered: 2001-06-11
Posts: 12734
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.

#87518 - 2002-08-27 07:56 AM Re: Kixforms: TabKeyBehavior vs AcceptsTab ?
Schuliebug Offline

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

#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...


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]

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

Page 1 of 1 1

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

Who's Online
1 registered (Arend_) and 175 anonymous users online.
Newest Members
gkustra, emnipetro, Hirze, thequeen, ameliaryan
17642 Registered Users

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

Search the board with:
superb Board Search
or try with google: