Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Gui, Margin, 0, 0
- Gui, Add, Text, x10 y10 h25 w100 gtab, tab1
- Gui, Add, Progress, x10 y10 h25 w100 Background9999FF vp1
- Gui, Add, Text, BackgroundTrans xp+5 yp h25 w100 0x200, Tab1
- Gui, Add, Text, x110 y10 h25 w100 gtab, tab2
- Gui, Add, Progress, x110 y10 h25 w100 Background9999AA vp2
- Gui, Add, Text, BackgroundTrans xp+5 yp h25 w100 0x200, Tab2
- ;Gui, Add, Progress, x10 y35 h200 w300 Background9999AA vpmain
- lele := new tabs(10, 10)
- Gui, Show, w500 h500
- return
- tab:
- color := strSplit(A_GuiControl, "tab")[2] == 1 ? 0x9999FF : 0x9999AA
- GuiControl, +background%color%, % lele.hwnd
- return
- class tabs {
- __New(sx, sy){
- th := 25
- tw := 100
- Gui, Add, Progress, % "x" sx " y" sy+th " h200 w300 Background9999AA hwndHwnd"
- this.hwnd := hwnd
- }
- class tab {
- __New(){
- Gui, Add, Text,
- Gui, Add, Progress,
- Gui, Add, Text
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement