Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > General Discussion
  New Posts New Posts RSS Feed - Number Edit
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Number Edit

 Post Reply Post Reply
Author
Message
ijwelch View Drop Down
Senior Member
Senior Member


Joined: 20 June 2006
Status: Offline
Points: 262
Post Options Post Options   Thanks (0) Thanks(0)   Quote ijwelch Quote  Post ReplyReply Direct Link To This Post Topic: Number Edit
    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.
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 07 July 2008 at 2:32am

Ian,

I still use the out of style,oldfashioned and always use a workaround MS Textbox with Updown control  In my case I only need to set values between 0 - 9999 so it works nicely. Maybe if I replaced the controls with CJ's flatedit and spin, I don't need the extra code I have now. Never looked at it, I have greater worries with some other controls .  
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....
Back to Top
Jean View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 December 2006
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jean Quote  Post ReplyReply Direct Link To This Post Posted: 08 July 2008 at 2:35am
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
Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post Posted: 08 July 2008 at 6:54am
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 !
Back to Top
ijwelch View Drop Down
Senior Member
Senior Member


Joined: 20 June 2006
Status: Offline
Points: 262
Post Options Post Options   Thanks (0) Thanks(0)   Quote ijwelch Quote  Post ReplyReply Direct Link To This Post Posted: 08 July 2008 at 6:54am
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.
Back to Top
ijwelch View Drop Down
Senior Member
Senior Member


Joined: 20 June 2006
Status: Offline
Points: 262
Post Options Post Options   Thanks (0) Thanks(0)   Quote ijwelch Quote  Post ReplyReply Direct Link To This Post Posted: 08 July 2008 at 7:01am
Originally posted by Baldur Baldur wrote:

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 !


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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.