Jump to content

Recommended Posts

Posted

Is there an easy way to prevent my TAB's from receiving focus when I click them? I thought $TCS_FOCUSNEVER would accomplish this, but it doesn't seem to do it.

$tab=GUICtrlCreateTab (10,10, 200,100, $TCS_FOCUSNEVER)

I tried the above, but it didn't work.

Posted

Hi,

This example shows, that it works fine, but if the first created control is the tab control, then it have the focus, but when you click on some other control, it's loose the focus, and when you click on the tab back, it's not get the focus...

#Include <GuiConstants.au3>

GUICreate("Test Tab")

GUICtrlCreateButton("Button", 150, 20)

$Tab = GUICtrlCreateTab(10, 50, 200, 200, $TCS_FOCUSNEVER)
GUICtrlCreateTabItem("test")
GUISetState()

While GUIGetMsg() <> -3
WEnd

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...