Sign in to follow this  
Followers 0
MattHiggs

(solved) Is there a way to get an edit control to accept a tab?

4 posts in this topic

#1 ·  Posted (edited)

Ok, so I am trying to create a GUI with an edit control that, when TAB is pressed, will indent the line like you see in normal text editors rather than bring the next control into focus.  In other words, is there a way to apply the GUI edit control style $ES_WANTRETURN, but instead of the return button, making it refer to the TAB button if that makes sense.  Thank you in advance.

Edited by MattHiggs

Share this post


Link to post
Share on other sites



#2 ·  Posted

Maybe while your control is active, catch tab and replace it with 5 spaces?


,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites

#3 ·  Posted

9 minutes ago, iamtheky said:

Maybe while your control is active, catch tab and replace it with 5 spaces?

In other words, the answer to my question is no.  I know it is possible in autoit, I was hoping that there was a edit control style that I was unaware of that could do it or some simpler method that would let me achieve the end result desired without having to manually code it.  Oh well.  Might as well get to it.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

It was a suggestion not final answer, surely Melba already has an *_ex UDF that does what you want correctly, i prefer brute force.

Edited by iamtheky

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

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