Sign in to follow this  
Followers 0
supersonic

How to avoid tabbing?

5 posts in this topic

Hi!

Is there a way to disable control tabbing?

I'm looking for something like "$WS_NOTABBING"...

Any ideas?

Greets,

-supersonic.

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by P5ych0Gigabyte

HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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
Sign in to follow this  
Followers 0