Print Page | Close Window

Number Edit

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to Active-X COM Development in General
URL: http://forum.codejock.com/forum_posts.asp?TID=11320
Printed Date: 21 November 2024 at 7:14pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Number Edit
Posted By: ijwelch
Subject: Number Edit
Date 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.



Replies:
Posted By: Aaron
Date 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....


Posted By: Jean
Date 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


Posted By: Baldur
Date 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 !


Posted By: ijwelch
Date Posted: 08 July 2008 at 6:54am
I've created a VB6 UserControl here:
https://forum.codejock.com/forum_posts.asp?TID=11326 - 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.


Posted By: ijwelch
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net