1 (изменено: inseption86, 2018-10-19 21:52:06)

Тема: AHK: Gui, изменение цвета вкладок

Добрый день, подскажите пож-та, возможно ли ,чтобы цвет вкладок менялся, если были нажаты две кнопки?. Заранее спасибо!

#SingleInstance force   ; игнор уже запущенного скрипта, переоткрытие

Gui, Font, S12 CDefault  Italic, Verdana

Gui, Add, Text, x350 y20, Test
Gui, Add, Text, x5  y+10   w1275   h1    0x10   
Gui, Add, Text, x10 y+10 +Left, panel question
Gui, Add, Tab2, AltSubmit x20 y+20 w1200 h50 Buttons -Wrap vTAB_BUTTON,`   1  |   2  |  Finish |

{ 
Gui, Tab, 1

Gui, Add, Text, x5  y+20   w1275   h1    0x10  

Gui, Add, Text, x52 y+10 w1000 h60, question №1

Gui, Add, Button, v11 x10 y+-30 w150 h50 g11, Otvet11
Gui, Add, Button, v12 x+60  w150 h50 g12,  Otvet12
Gui, Add, Button, v13 x+60  w150 h50 g13, Otvet13
Gui, Add, Button, v14 x+60  w150 h50 g14,  Otvet14

Gui, Add, Button, v15 x10 y+20 w150 h50 g15, Otvet15
Gui, Add, Button, v16 x+60  w150 h50 g16,  Otvet16
Gui, Add, Button, v17 x+60  w150 h50 g17, Otvet17
Gui, Add, Button, v18 x+60  w150 h50 g18,  Otvet18


Gui, Tab, 2

Gui, Add, Text, x5  y+20   w1275   h1    0x10  

Gui, Add, Text, x52 y+10 w1000 h60, question №2

Gui, Add, Button, v21 x10 y+-10 w150 h50 g21, Otvet21
Gui, Add, Button, v22 x+60  w150 h50 g22,  Otvet22
Gui, Add, Button, v23 x+60  w150 h50 g23, Otvet23
Gui, Add, Button, v24  x+60  w150 h50 g24,  Otvet24


Gui, Add, Button, v25 x10 y+30 w150 h50 g25, Otvet25
Gui, Add, Button, v26 x+60  w150 h50 g26,  Otvet26
Gui, Add, Button, v27 x+60  w150 h50 g27, Otvet27
Gui, Add, Button, v28 x+60  w150 h50 g28,  Otvet28


Gui, Tab, 3

Gui, Add, Text, x5  y+20   w1275   h1    0x10  

Gui, Font, S16 CDefault  Italic bold, Verdana

Gui, Add, Text, x352 y+20 w1000 h60, Finish
}


Gui, Show, w800 h400, Test
return

11: 
GuiControl, Disable, 11
GuiControl, Enable, 12
GuiControl, Enable, 13
GuiControl, Enable, 14

return

12: 
GuiControl, Disable, 12
GuiControl, Enable, 11
GuiControl, Enable, 13
GuiControl, Enable, 14

return

13: 
GuiControl, Disable, 13
GuiControl, Enable, 11
GuiControl, Enable, 12
GuiControl, Enable, 14


return

14: 
GuiControl, Disable, 14
GuiControl, Enable, 11
GuiControl, Enable, 12
GuiControl, Enable, 13


return


15: 
GuiControl, Disable, 15
GuiControl, Enable, 16
GuiControl, Enable, 17
GuiControl, Enable, 18

GuiControlGet, ThisTab,, SysTabControl321,  Test
PostMessage, 0x1333, 0, 1, SysTabControl321, Test

GuiControl, Choose, TAB_BUTTON, 2

return

16: 
GuiControl, Disable, 16
GuiControl, Enable, 15
GuiControl, Enable, 17
GuiControl, Enable, 18

GuiControlGet, ThisTab,, SysTabControl321,  Test
PostMessage, 0x1333, 0, 1, SysTabControl321, Test

GuiControl, Choose, TAB_BUTTON, 2
return

17: 
GuiControl, Disable, 17
GuiControl, Enable, 15
GuiControl, Enable, 16
GuiControl, Enable, 18

GuiControlGet, ThisTab,, SysTabControl321,  Test
PostMessage, 0x1333, 0, 1, SysTabControl321, Test

GuiControl, Choose, TAB_BUTTON, 2
return

18: 
GuiControl, Disable, 18
GuiControl, Enable, 15
GuiControl, Enable, 16
GuiControl, Enable, 17


GuiControlGet, ThisTab,, SysTabControl321,  Test
PostMessage, 0x1333, 0, 1, SysTabControl321, Test

GuiControl, Choose, TAB_BUTTON, 2
return




21: 
GuiControl, Disable, 21
GuiControl, Enable, 22
GuiControl, Enable, 23
GuiControl, Enable, 24

return

22: 
GuiControl, Disable, 22
GuiControl, Enable, 21
GuiControl, Enable, 23
GuiControl, Enable, 24

return

23: 
GuiControl, Disable, 23
GuiControl, Enable, 21
GuiControl, Enable, 22
GuiControl, Enable, 24

return

24: 
GuiControl, Disable, 24
GuiControl, Enable, 21
GuiControl, Enable, 22
GuiControl, Enable, 23

return


25: 
GuiControl, Disable, 25
GuiControl, Enable, 26
GuiControl, Enable, 27
GuiControl, Enable, 28

GuiControlGet, ThisTab,, SysTabControl321,  Test
PostMessage, 0x1333, 1, 1, SysTabControl321, Test

GuiControl, Choose, TAB_BUTTON, 3
return

26: 
GuiControl, Disable, 26
GuiControl, Enable, 25
GuiControl, Enable, 27
GuiControl, Enable, 28

GuiControlGet, ThisTab,, SysTabControl321,  Test
PostMessage, 0x1333, 1, 1, SysTabControl321, Test

GuiControl, Choose, TAB_BUTTON, 3
return

27: 
GuiControl, Disable, 27
GuiControl, Enable, 25
GuiControl, Enable, 26
GuiControl, Enable, 28

GuiControlGet, ThisTab,, SysTabControl321,  Test
PostMessage, 0x1333, 1, 1, SysTabControl321, Test

GuiControl, Choose, TAB_BUTTON, 3
return

28: 
GuiControl, Disable, 28
GuiControl, Enable, 25
GuiControl, Enable, 26
GuiControl, Enable, 27

GuiControlGet, ThisTab,, SysTabControl321,  Test
PostMessage, 0x1333, 1, 1, SysTabControl321, Test

GuiControl, Choose, TAB_BUTTON, 3
return





Esc::ExitApp

2

Re: AHK: Gui, изменение цвета вкладок

inseption86, приведите заголовок темы в соответствие с правилами!