![]() |
Number Edit |
Post Reply ![]() |
Author | |
ijwelch ![]() Senior Member ![]() Joined: 20 June 2006 Status: Offline Points: 262 |
![]() ![]() ![]() ![]() ![]() Posted: 06 July 2008 at 10:54pm |
I've been using ComponentOne TrueDBNumber in my projects up to now but want to replace this.
What controls do you use for numeric textbox? I need something with Min/Max/DecimalPlaces properties, spinbuttons, that doesn't allow invalid chars to be pasted etc. |
|
![]() |
|
Aaron ![]() Senior Member ![]() Joined: 29 January 2008 Status: Offline Points: 2192 |
![]() ![]() ![]() ![]() ![]() |
Ian, I still use the out of style,oldfashioned and always use a workaround MS Textbox with Updown control
![]() ![]() |
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
![]() |
|
Jean ![]() Senior Member ![]() ![]() Joined: 11 December 2006 Status: Offline Points: 110 |
![]() ![]() ![]() ![]() ![]() |
I use the TrueDBNumber Version 6.
But I don't know an alternative with all the features I need: Min-, Max, Default-Value Decimal Separator Formatsettings for NULL, negative and positive values... Masksettings... SpingButton Calculator ... The only problem is that they don't look good if you change style with skinframe work. They look always the same. :( |
|
Product: Xtreme SuitePro (ActiveX) Version 15.0.2
Platform: Windows XP (32bit) German - SP 2 Language: VB6 / C# 4.0 |
|
![]() |
|
Baldur ![]() Senior Member ![]() Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
![]() ![]() ![]() ![]() ![]() |
This features will not direclty supported.
With the FlatEdit, you can use mask's and pattern, but this will not prevent the user to type wrong characters.
In this case, the value is red underlined.
Before you can use the textproperty you have to check the IsValid-Method.
To prevent the user to type wrong characters you must use the KeyPress-Event and replace false values by zero.
KeyDown-/KeyUp-events are not applicable to do this.
But don't forget also the Arrow-Keys and or Backspace !
|
|
![]() |
|
ijwelch ![]() Senior Member ![]() Joined: 20 June 2006 Status: Offline Points: 262 |
![]() ![]() ![]() ![]() ![]() |
I've created a VB6 UserControl here:
https://forum.codejock.com/forum_posts.asp?TID=11326 It has Max/Min/DecimalPlaces properties, detects regional settings for decimal point and negative sign, spinbutton, doesn't allow invalid chars to be input or pasted, responds to mousewheel. It doesn't have number formatting or calculator. |
|
![]() |
|
ijwelch ![]() Senior Member ![]() Joined: 20 June 2006 Status: Offline Points: 262 |
![]() ![]() ![]() ![]() ![]() |
Yeah. I tried using the mask feature but that's not working for variable length numbers. If it did then most of the problem would be solved. What I really want is for CJ to support this type of thing - there seems to be a lack of alternatives to the C1 control. |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |