Hello everyone,
I have a question about HMG3 and controls like the textbox. The Tabstop Property is only available at definition time, but I need to change it during runtime.
Does anyone have an elegant workaround for this restriction?
Thanks a lot!
Change TabStop Property after Definition
Moderator: Rathinagiri
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: Change TabStop Property after Definition
You can setfocus to the next control on thiscontrol's ongotfocus event after checking the required condition.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
Re: Change TabStop Property after Definition
Hello Raumi,raumi75 wrote:Hello everyone,
I have a question about HMG3 and controls like the textbox. The Tabstop Property is only available at definition time, but I need to change it during runtime.
Does anyone have an elegant workaround for this restriction?
Thanks a lot!
Did you tried
SetTabStop(GetControlHandle( 'Text_1' , 'Form_1' ), .f.)
Kind Regards,
Grigory Filatov
"Everything should be made as simple as possible, but no simpler." Albert Einstein
Grigory Filatov
"Everything should be made as simple as possible, but no simpler." Albert Einstein
Re: Change TabStop Property after Definition
Thank you very much. That was exactly what I was looking for!!gfilatov wrote: SetTabStop(GetControlHandle( 'Text_1' , 'Form_1' ), .f.)
Raumi75 http://raumi75.jimdo.com
Re: Change TabStop Property after Definition
I just learned, that I need to check the status first and only set the value if necessary, otherwise, the control starts looking and behaving strangely (for reasons I do not understand).raumi75 wrote:gfilatov wrote: SetTabStop(GetControlHandle( 'Text_1' , 'Form_1' ), .f.)
Code: Select all
if isTabStop(GetControlHandle( 'Text_1' , 'Form_1' ) )
SetTabStop(GetControlHandle( 'Text_1' , 'Form_1' ), .f.)
endif
Raumi75 http://raumi75.jimdo.com
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: Change TabStop Property after Definition
New to me. Thanks a lot for the info.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.