Sign in to follow this  
Followers 0
qwert

Right-justified input contol

4 posts in this topic

Is there a control setting that will cause an input control to display right-justified (instead of the the default of left-justified)? What I'm looking for is entry behavior like you have with a hand-held calculator where the leading characters march across from right to left as an entry is made.

I've thought that the answer might be to create a transparent control for the key entry and use a corresponding label control to display the result. GUICtrlCreateLable seems to have all the necessary display styles, like $SS_RIGHT. But I haven't found any examples of this.

I did find several references to RichEdit, but they seem related to setting font style, color and so forth. I didn't find anything related to key entry behavior.

Any advice will be appreciated -- and a simple example would be great.

Thanks in advance.

Share this post


Link to post
Share on other sites



$ES_RIGHT

Share this post


Link to post
Share on other sites

Use Koda, And Go To Styles: and Click: $ES_RIGHT (Right Justifided)

Share this post


Link to post
Share on other sites

Thanks for both responses. I can't believe I missed seeing the $ES settings.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0