Jump to content

Retrieves the background color "Tab control"


Recommended Posts

pixelgetcolor make me crazy ^_^

Here's my code

#include <GUIConstants.au3>
#include <EditConstants.au3>
#include <WindowsConstants.au3>

GUICreate("My GUI edit", 400, 300, -1, -1) ; will create a dialog box that when displayed is centered
GUISetBkColor (0xE0FFFF)
$Body_Read=GUICtrlCreateEdit ("DCCD ,AutoIt", -1,-1,400, 200,$ES_AUTOVSCROLL+$WS_VSCROLL)
$FontsSizeSlider_Read       = GuiCtrlCreateSlider(180, 210, 175, 30)
GUICtrlSetFont ($Body_Read, 10, 400, 2, "Comic Sans MS")
GUICtrlSetLimit(-1,100,12)  ; change min/max value
GUISetState ()

Global $lastSize = GUICtrlRead($FontsSizeSlider_Read), $thisSize

; Run the GUI until the dialog is closed
While 1
    $thisSize = GUICtrlRead($FontsSizeSlider_Read)
    If $thisSize <> $lastSize Then
        GUICtrlSetFont ($Body_Read, $thisSize, 400, 2, "Comic Sans MS")
        $lastSize = $thisSize
    EndIf
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend
Link to comment
Share on other sites

pixelgetcolor make me crazy ^_^

Here's my code

#include <GUIConstants.au3>
#include <EditConstants.au3>
#include <WindowsConstants.au3>

GUICreate("My GUI edit", 400, 300, -1, -1) ; will create a dialog box that when displayed is centered
GUISetBkColor (0xE0FFFF)
$Body_Read=GUICtrlCreateEdit ("DCCD ,AutoIt", -1,-1,400, 200,$ES_AUTOVSCROLL+$WS_VSCROLL)
$FontsSizeSlider_Read       = GuiCtrlCreateSlider(180, 210, 175, 30)
GUICtrlSetFont ($Body_Read, 10, 400, 2, "Comic Sans MS")
GUICtrlSetLimit(-1,100,12)  ; change min/max value
GUISetState ()

Global $lastSize = GUICtrlRead($FontsSizeSlider_Read), $thisSize

; Run the GUI until the dialog is closed
While 1
    $thisSize = GUICtrlRead($FontsSizeSlider_Read)
    If $thisSize <> $lastSize Then
        GUICtrlSetFont ($Body_Read, $thisSize, 400, 2, "Comic Sans MS")
        $lastSize = $thisSize
    EndIf
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend
And here with the Tab Control?

EDIT: GUICtrlSetBkColor($FontsSizeSlider_Read, 0xE0FFFF)

Edited by Yashied
Link to comment
Share on other sites

Sorry I was given the wrong code ^_^

Here's mycode

#include <GUIConstants.au3>

GUICreate("My GUI Tab")  ; will create a dialog box that when displayed is centered
GUISetBkColor (0xE0FFFF)

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

$tab0=GUICtrlCreateTabitem ("tab0")

$tab1=GUICtrlCreateTabitem ( "tab1")

$tab2=GUICtrlCreateTabitem ("tab2")

GUICtrlCreateTabitem ("")   ; end tabitem definition

GUICtrlCreateLabel ("label3", 20,130,50,20)

GUISetState ()

; Run the GUI until the dialog is closed
While 1
    $msg = GUIGetMsg()
    
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend
Edited by DCCD
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...