Jump to content

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


Recommended Posts

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
Link to comment
Share on other sites

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

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...