Jump to content

GUI Control does not accept TAB


Go to solution Solved by michaelslamet,

Recommended Posts

Normally, when we want to move the cursor from one GUI control to another by keyboard, we use TAB.

eg: from InputBox created by GUICtrlCreateInput to another InputBox created by the same function.

Why on my GUI, TAB is not functioning like it should be?

When I press TAB, it doesn't move to another control, instead it play a beep sound.

My GUI contain 1 parent and few child GUI.

Some few child GUI accept TAB to move around control, but most child GUI dont.

Unfortunetely, I cant post the code or create a producer.

Is anybody ever in the same situation? Weird :

Link to comment
Share on other sites

MainGUI is created using BitOR($WS_CLIPCHILDREN, $WS_CLIPSIBLINGS, $WS_BORDER, $WS_MAXIMIZEBOX, $WS_MINIMIZEBOX, $WS_SIZEBOX, $WS_SYSMENU)

ChildGUI is created  using GUICreate("", 50,50, $iLeftWidth + 2, $iT, $WS_POPUP, -1, $hMainGUI)

Control in ChildGUI which has no problem with TAB STOP has a identical STYLE and EXSTYLE with control is ChildGUI that has a problem with TAB STOP,

verified using:

$Style = _WinAPI_GetWindowLong(GUICtrlGetHandle($hWnd), $GWL_STYLE)
$ExStyle = _WinAPI_GetWindowLong(GUICtrlGetHandle($hWnd), $GWL_EXSTYLE)

 

So it has nothing to do with STYLE and EXSTYLE.

I found that sometime the TAB STOP works, after I move around on those different ChildGUI and randomly click on those controls.

What can caused this?

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