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

MaskedTextBox - Discussion
Goto page Previous  1, 2
 
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion
View previous topic :: View next topic  
Author Message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Fri May 12, 2006 7:33 pm    Post subject: Reply with quote

k, re-up'ed
Back to top
View user's profile Send private message
pearly
KiXforms Aficionado
KiXforms Aficionado


Joined: 27 Jan 2004
Posts: 332

PostPosted: Fri May 12, 2006 8:54 pm    Post subject: Reply with quote

ok issue resolved! Smile

however, i have some suggestions regarding the usability, intuitive feel for it.

1.) currently, when you delete a value from the masked field using the delete button, the cursor moves to the next character. can you force it to stay at the same position?

Ex : Let's say I want to delete 'M' using delete key

2006-May-04,12:12:12

Cursor is before 'M'

2006-|May-04,12:12:12

When I press the delete key, the cursor should stay intact

2006-|_ay-04,12:12:12

2.) I've noticed when you churn through the field by pressing the left/right arrow keys, it behaves differently when going left and right.

Going right, the cursor is never placed before a hard-coded character unless you are at home position. It skips right over the hard-coded character to the next non hard-coded character. I like this functionality, it's intuitive.

Ex :

200|6-May-04,12:12:12

2006-|May-04,12:12:12

However, when going left, it seems to act the same way as right except in reverse. The cursor is never placed after a hard-coded character unless you are at end position. It skips right over the hard-coded character to the next non hard-coded character. This makes it difficult to modify the characters when arrowing left.

Ex :

2006-M|ay-04,12:12:12

2006|-May-04,12:12:12

3.) Similar to the new favorite behavior where if you go HOME, pressing a key will take you right to the next available spot. Is it possible to leverage this feature for backspace and delete key? For instance, when the cursor is to the right of a hard-coded character and you press backspace, it will delete the next non hard-coded character to the left.

Ex :

2006-May-04,12:|12:12

2006-May-04,1|_:12:12

When the cursor is to the left of a hard-coded character and you press delete, it will delete the next non hard-coded character to the right.

Ex :

|2006-May-04,12:12:12

20|_6-May-04,12:12:12

4.) When selecting part or all of the field value, Backspace does not delete the non hard-coded values, but delete key works.

5.) Maybe this feature request is long down the road, but is there any way the masking can be created in a such way to highlight a certain block of the masked field to visually aid users in entering in values?

Ex : The masked field is a phone number

(___) ___-____

the first block would be the area code, so it would be highlighted, once completed, the second block (first three numbers of phone nbr) would be highlighted and finally the last block (last four numbers of phone nbr)

That's all I have so far. Wink
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Fri May 12, 2006 11:06 pm    Post subject: Reply with quote

Wow, great comments wished more people would comment like this. Haven't looked into it yet but just for your own reference - i have been modeling the MaskedTextBox behavior after the following:

1. Start MS Access if you have it

2. Create a Blank Table

3. Design a new table

4. Add a text field.

5. Check out the Input Mask property down below. Click the "more" button and have a play.
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Sat May 13, 2006 12:06 am    Post subject: Reply with quote

Ok, agree about #1 and that is implemented. Onward ...
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Sat May 13, 2006 12:18 am    Post subject: Reply with quote

Ok, in terms of #2 I agree. If you can, take at look at the MS Access Input Mask and check out how they "resolved" this - notice as you LEFT/RIGHT through the data, the characters are SELECTED .. this makes it easier to modify the character, no matter what angle your coming from (i think thats why they did it like that).

Could prolly do same - but I dont know if I like that chunky selected look as your flipping through the field.
Back to top
View user's profile Send private message
Floyd
KiXforms Supporter
KiXforms Supporter


Joined: 21 Apr 2004
Posts: 78

PostPosted: Mon May 15, 2006 11:58 am    Post subject: Reply with quote

Hey dudes...

Was on trip during weekend... see u have already done lot on keyboard behavior inside MaskedTextBox... Very Happy

Any progress on copy/cut/paste?
Back to top
View user's profile Send private message
Floyd
KiXforms Supporter
KiXforms Supporter


Joined: 21 Apr 2004
Posts: 78

PostPosted: Mon May 15, 2006 12:02 pm    Post subject: Reply with quote

Shawn, was it possible to disable Mask function in MaskedTextBox, so it behaves as normal TextBox?
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Mon May 15, 2006 12:33 pm    Post subject: Reply with quote

Not in the short-term no. Suggest that if you need a plain textbox, then use a plain textbox.
Back to top
View user's profile Send private message
Floyd
KiXforms Supporter
KiXforms Supporter


Joined: 21 Apr 2004
Posts: 78

PostPosted: Mon May 15, 2006 12:48 pm    Post subject: Reply with quote

OK, I will switch between plain and masked as per required. Already doing...

Have u disabled copy/cut/paste using mouse in latest devbuild?
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Mon May 15, 2006 3:02 pm    Post subject: Reply with quote

The copy should be working - The cut/paste I am still working on/thinking about.
Back to top
View user's profile Send private message
Gargoyle
KiXforms Aficionado
KiXforms Aficionado


Joined: 30 Dec 2003
Posts: 366
Location: Arizona

PostPosted: Thu May 18, 2006 4:41 pm    Post subject: Reply with quote

Any chance you will be porting this over to the KF.Net builds?
_________________
Parents were invented to make children happy by giving them something to ignore.
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Thu May 18, 2006 5:09 pm    Post subject: Reply with quote

errm, Yes and no. The MaskedTextBox is already part of dotnet version 2.0 - and kf.net knows nothing about 2.0. When it will ? I cant give you that answer.

The one that is in kf.classic is a custom control - but I based it on the dotnet 2.0 MaskedTextBox - which beleive it or not - I have never actually used or seen first-hand - just read the docs on it - hope it behaves similar thats all.
Back to top
View user's profile Send private message
Gargoyle
KiXforms Aficionado
KiXforms Aficionado


Joined: 30 Dec 2003
Posts: 366
Location: Arizona

PostPosted: Thu May 18, 2006 5:12 pm    Post subject: Reply with quote

I will try playing with it and see if I get any results to return to you.
_________________
Parents were invented to make children happy by giving them something to ignore.
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Thu May 18, 2006 5:57 pm    Post subject: Reply with quote

Would appreciate that.
Back to top
View user's profile Send private message
Gargoyle
KiXforms Aficionado
KiXforms Aficionado


Joined: 30 Dec 2003
Posts: 366
Location: Arizona

PostPosted: Thu May 18, 2006 6:24 pm    Post subject: Reply with quote

Okay give it try using the following code...

Code:
$MaskedTextBox = $System.MaskedTextBox()
$MaskedTextBox.BackColor = $System.Color.FromName("LightGoldenrodYellow")
$MaskedTextBox.Left = 13
$MaskedTextBox.Top = 44
$MaskedTextBox.Length = 15
$MaskedTextBox.Mask = "[0-2][0-9][0-9].[0-2][0-9][0-9].[0-2][0-9][0-9].[0-2][0-9][0-9]"
$MaskedTextBox.Text = "000.000.000.000"
$nul = $Form1.Controls.Add($MaskedTextBox)



This is what I got back

Quote:
Kixforms.Color134415[0-2][0-9][0-9].[0-2][0-9][0-9].[0-2][0-9][0-9].[0-2][0-9][0-9]000.000.000.0000

_________________
Parents were invented to make children happy by giving them something to ignore.
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 Previous  1, 2
Page 2 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