Advertisement
Guest User

Untitled

a guest
Jul 17th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. Gui, Margin, 0, 0
  2.  
  3. Gui, Add, Text, x10 y10 h25 w100 gtab, tab1
  4. Gui, Add, Progress, x10 y10 h25 w100 Background9999FF vp1
  5. Gui, Add, Text, BackgroundTrans xp+5 yp h25 w100 0x200, Tab1
  6.  
  7. Gui, Add, Text, x110 y10 h25 w100 gtab, tab2
  8. Gui, Add, Progress, x110 y10 h25 w100 Background9999AA vp2
  9. Gui, Add, Text, BackgroundTrans xp+5 yp h25 w100 0x200, Tab2
  10.  
  11. ;Gui, Add, Progress, x10 y35 h200 w300 Background9999AA vpmain
  12.  
  13. lele := new tabs(10, 10)
  14.  
  15. Gui, Show, w500 h500
  16. return
  17.  
  18. tab:
  19.  
  20. color := strSplit(A_GuiControl, "tab")[2] == 1 ? 0x9999FF : 0x9999AA
  21.  
  22. GuiControl, +background%color%, % lele.hwnd
  23. return
  24.  
  25. class tabs {
  26.  
  27. __New(sx, sy){
  28.  
  29. th := 25
  30. tw := 100
  31.  
  32. Gui, Add, Progress, % "x" sx " y" sy+th " h200 w300 Background9999AA hwndHwnd"
  33.  
  34. this.hwnd := hwnd
  35. }
  36.  
  37. class tab {
  38.  
  39. __New(){
  40.  
  41. Gui, Add, Text,
  42. Gui, Add, Progress,
  43. Gui, Add, Text
  44. }
  45. }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement