Jump to content
Sign in to follow this  
DCCD

Retrieves the background color "Tab control"

Recommended Posts

Yashied
DCCD

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

Share this post


Link to post
Share on other sites
Yashied

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

Share this post


Link to post
Share on other sites
DCCD

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

Share this post


Link to post
Share on other sites
Yashied

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  

×