supersonic Posted October 16, 2009 Posted October 16, 2009 Hi! Is there a way to disable control tabbing? I'm looking for something like "$WS_NOTABBING"... Any ideas? Greets, -supersonic.
FuryCell Posted October 16, 2009 Posted October 16, 2009 (edited) A quick and dirty method might be to hotkeyset tab when your gui is active or maybe assign it to a dummy accelerator key. Edited October 16, 2009 by P5ych0Gigabyte HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
supersonic Posted October 16, 2009 Author Posted October 16, 2009 Hmmm... That's my problem: I'm already using HotKeySet("{TAB}", "_tab") *AND* would like to disable control tabbing... Any ideas? Here's a code sample: Func _tab() If _WinAPI_GetFocus() = GUICtrlGetHandle($hService_E) Then GUICtrlSetData($hService_E, @TAB, 0) Else HotKeySet("{TAB}") Send("{TAB}") HotKeySet("{TAB}", "_tab") EndIf EndFunc A quick and dirty method might be to hotkeyset tab when your gui is active or maybe assign it to a dummy accelerator key.
picea892 Posted October 16, 2009 Posted October 16, 2009 call this function immediately following a creation of the guictrl you do not want to have a $WS_TABSTOP func no_tab() _WinAPI_SetWindowLong(GUICtrlGetHandle(-1), $GWL_STYLE, _ BitAND(_WinAPI_GetWindowLong(GUICtrlGetHandle(-1), $GWL_STYLE), BitNOT($WS_TABSTOP))) EndFunc
supersonic Posted October 16, 2009 Author Posted October 16, 2009 WOW - It works like a charm! Thank you for helping me out... call this function immediately following a creation of the guictrl you do not want to have a $WS_TABSTOP func no_tab() _WinAPI_SetWindowLong(GUICtrlGetHandle(-1), $GWL_STYLE, _ BitAND(_WinAPI_GetWindowLong(GUICtrlGetHandle(-1), $GWL_STYLE), BitNOT($WS_TABSTOP))) EndFunc
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