Jump to content

How to avoid tabbing?


Recommended Posts

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 by P5ych0Gigabyte
HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

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

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...