Jump to content


Photo

Add setStep public function to TW3EditBox


  • Please log in to reply
No replies to this topic

#1 ielite

ielite
  • Members
  • 690 posts

Posted 29 December 2016 - 03:23 AM

When TW3EditBox control's InputType = iNumber, the only public members for controlling the type of Number (Integer vs Float) are:
 
public
 procedure setMin(const aValue: Variant); virtual;
 procedure setMax(const aValue: Variant); virtual;
 procedure setRange(const aValue: Variant); virtual;

However, there is nothing for the Step, if one wants to create Edit Boxes that take floating points

 

How about adding: 

 

public
 procedure setStep(const aValue: Variant); virtual;

 

and any needed code to make it work for creating Edit Boxes that take floating point values

 

Then you could add

 

EditBox.setStep(0.01);

or

EditBox.setStep(3);

 

 





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

IPB Skin By Virteq