Jump to content

Cannot show buttons in GUI Tabs!


Recommended Posts

OK, still learning :(SOLVED! $WS_EX_COMPOSITED hides buttons?

I've read, run examples but cannot show action buttons in tabs in a GUI.

I've run the GUICtrlCreateTabItem function example and, of course, it works.

Mine doesn't:

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <WinAPI.au3>
#include <MenuConstants.au3>
#include <TabConstants.au3>
#include <ColorConstants.au3>

 $hGUI = GUICreate("My GUI Tab", @DesktopWidth * 1, @DesktopHeight * 1, 0, 0,-1, $WS_EX_COMPOSITED)
 $hTab = GUICtrlCreateTab(10, 10, 640, 480,$TCS_HOTTRACK)

; Create tabitems
;For $i = 0 To 2
    GUICtrlCreateTabItem(" Scan Sample ")
;    $idButton1 = GUICtrlCreateButton("Button " & 0, 20 + (0 * 100), 40 + (0 * 50), 80, 30)
;    $idButton1 = GUICtrlCreateButton("00", 20, 50, 80, 30)
    GUICtrlCreateLabel("label0", 30, 80, 50, 20)
    GUICtrlCreateButton("OK0", 20, 50, 50, 20)
    GUICtrlCreateInput("default", 80, 50, 70, 20)

    GUICtrlCreateTabItem(" Database ")
    GUICtrlCreateButton("Button " & 1, 20 + (1 * 100), 40 + (1 * 50), 80, 30)

    GUICtrlCreateTabItem(" Software ")
    GUICtrlCreateButton("Button " & 2, 20 + (2 * 100), 40 + (2 * 50), 80, 30)
;Next
; Close Tab definiton
    GUICtrlCreateTabItem("")

; Set the color of the label control.
;    GUICtrlSetColor($idButton1, 0x002E7A)

GUISetState()

While 1
    Switch GUIGetMsg()
        Case $GUI_EVENT_CLOSE
            Exit
    EndSwitch
WEnd

It just shows:

whatever I try.  So I've missed, again?, that I do not have the focus?

 

Edited by fopetesl
SOLVED

The most powerful number in the Universe.  Zero.

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

×
×
  • Create New...