Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Wed Aug 16, 2017 4:31 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Textfield control combined with UpDownArrows
PostPosted: Tue May 28, 2013 10:48 am 
Offline

Joined: Fri Mar 23, 2007 3:49 am
Posts: 21
Location: Potsdam, Germany
Hi, I'm looking for a control, which combines UpDownArrows with a TextField for defined numerical input (including definition of limits and of position after decimal point for display and also for the digit changed by UpDown). Thanks for any hint, Matti.


Top
 Profile  
Reply with quote  
 Post subject: Re: Textfield control combined with UpDownArrows
PostPosted: Tue May 28, 2013 4:35 pm 
Offline

Joined: Sun Feb 19, 2006 4:00 pm
Posts: 1282
Location: Heidelberg, Germany
Which version of REAL.studio are you using? A ContainerControl might do the trich quite nicely.


Top
 Profile  
Reply with quote  
 Post subject: Re: Textfield control combined with UpDownArrows
PostPosted: Tue May 28, 2013 9:45 pm 
Offline
User avatar

Joined: Sat Oct 01, 2005 4:47 am
Posts: 130
Location: Melbourne, Australia
You could start with the example from the tutorial or curriculum (can't remember which one) where a text field is sub-classed to only allow numbers. This sub-classed text field is further sub-classed to only allow numbers within a certain range. I'd say this is an excellent stating point.

Adding functionality for the checking of particular keystrokes (Up arrow, down arrow or plus/minus keys) and taking whatever action required should not pose any significant issues for you; if so, just ask.

_________________
Steve
rs2012 r2.1 Windows 7.


Top
 Profile  
Reply with quote  
 Post subject: Re: Textfield control combined with UpDownArrows
PostPosted: Wed May 29, 2013 4:13 am 
Offline

Joined: Fri Mar 23, 2007 3:49 am
Posts: 21
Location: Potsdam, Germany
Thanks for reply. Sure, containers are a good solution for this, but I'm using the personal version of RS at the moment. I also found the example for sub-classing (RB curiculum, lesson 11), but I just thougt that there' already a (commercial) control/class available (like for editing date and time).


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group