MattHiggs Posted May 9, 2017 Posted May 9, 2017 (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 May 9, 2017 by MattHiggs
iamtheky Posted May 9, 2017 Posted May 9, 2017 Maybe while your control is active, catch tab and replace it with 5 spaces? ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__)
MattHiggs Posted May 9, 2017 Author Posted May 9, 2017 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.
iamtheky Posted May 9, 2017 Posted May 9, 2017 (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 May 9, 2017 by iamtheky ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now