mirror of
https://github.com/znilnet/ZabbixEasyTool.git
synced 2025-05-09 21:14:26 +02:00
FormMain Textsize + 3. Line
This commit is contained in:
parent
ec15c0b417
commit
52eb0d48b7
48
FormMain.kxf
48
FormMain.kxf
@ -1,10 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="windows-1251"?>
|
<?xml version="1.0" encoding="windows-1251"?>
|
||||||
<object type="TAForm" name="FormMain">
|
<object type="TAForm" name="FormMain">
|
||||||
<properties>
|
<properties>
|
||||||
<property name="Left" vt="Int16">515</property>
|
<property name="Left" vt="Int16">520</property>
|
||||||
<property name="Top" vt="Int16">372</property>
|
<property name="Top" vt="Int16">155</property>
|
||||||
<property name="Width" vt="Int16">420</property>
|
<property name="Width" vt="Int16">420</property>
|
||||||
<property name="Height" vt="Int16">352</property>
|
<property name="Height" vt="Int16">397</property>
|
||||||
<property name="Caption" vt="String">ZabbixEasyTool</property>
|
<property name="Caption" vt="String">ZabbixEasyTool</property>
|
||||||
<property name="Color" vt="Ident">clBtnFace</property>
|
<property name="Color" vt="Ident">clBtnFace</property>
|
||||||
<property name="Font.Charset" vt="Ident">ANSI_CHARSET</property>
|
<property name="Font.Charset" vt="Ident">ANSI_CHARSET</property>
|
||||||
@ -38,7 +38,7 @@
|
|||||||
<object type="TAButton" name="FormMainButtonMaintenanceDelete">
|
<object type="TAButton" name="FormMainButtonMaintenanceDelete">
|
||||||
<properties>
|
<properties>
|
||||||
<property name="Left" vt="Int16">256</property>
|
<property name="Left" vt="Int16">256</property>
|
||||||
<property name="Top" vt="Int8">89</property>
|
<property name="Top" vt="Int8">121</property>
|
||||||
<property name="Width" vt="Int8">99</property>
|
<property name="Width" vt="Int8">99</property>
|
||||||
<property name="Height" vt="Int8">28</property>
|
<property name="Height" vt="Int8">28</property>
|
||||||
<property name="Caption" vt="String">Delete all</property>
|
<property name="Caption" vt="String">Delete all</property>
|
||||||
@ -60,7 +60,7 @@
|
|||||||
<object type="TAButton" name="FormMainButtonMaintenanceSet">
|
<object type="TAButton" name="FormMainButtonMaintenanceSet">
|
||||||
<properties>
|
<properties>
|
||||||
<property name="Left" vt="Int16">152</property>
|
<property name="Left" vt="Int16">152</property>
|
||||||
<property name="Top" vt="Int8">89</property>
|
<property name="Top" vt="Int8">121</property>
|
||||||
<property name="Width" vt="Int8">99</property>
|
<property name="Width" vt="Int8">99</property>
|
||||||
<property name="Height" vt="Int8">28</property>
|
<property name="Height" vt="Int8">28</property>
|
||||||
<property name="Caption" vt="String">Set</property>
|
<property name="Caption" vt="String">Set</property>
|
||||||
@ -82,7 +82,7 @@
|
|||||||
<object type="TAListView" name="FormMainListViewTriggers">
|
<object type="TAListView" name="FormMainListViewTriggers">
|
||||||
<properties>
|
<properties>
|
||||||
<property name="Left" vt="Int8">0</property>
|
<property name="Left" vt="Int8">0</property>
|
||||||
<property name="Top" vt="Int8">120</property>
|
<property name="Top" vt="Int16">176</property>
|
||||||
<property name="Width" vt="Int16">404</property>
|
<property name="Width" vt="Int16">404</property>
|
||||||
<property name="Height" vt="Int16">142</property>
|
<property name="Height" vt="Int16">142</property>
|
||||||
<property name="CtrlStyle" vt="Int32">1342373901</property>
|
<property name="CtrlStyle" vt="Int32">1342373901</property>
|
||||||
@ -97,7 +97,7 @@
|
|||||||
<object type="TACombo" name="FormMainComboTimes">
|
<object type="TACombo" name="FormMainComboTimes">
|
||||||
<properties>
|
<properties>
|
||||||
<property name="Left" vt="Int8">48</property>
|
<property name="Left" vt="Int8">48</property>
|
||||||
<property name="Top" vt="Int8">90</property>
|
<property name="Top" vt="Int8">122</property>
|
||||||
<property name="Width" vt="Int8">99</property>
|
<property name="Width" vt="Int8">99</property>
|
||||||
<property name="Height" vt="Int8">25</property>
|
<property name="Height" vt="Int8">25</property>
|
||||||
<property name="Font.Charset" vt="Ident">ANSI_CHARSET</property>
|
<property name="Font.Charset" vt="Ident">ANSI_CHARSET</property>
|
||||||
@ -108,19 +108,19 @@
|
|||||||
<property name="ItemHeight" vt="Int8">18</property>
|
<property name="ItemHeight" vt="Int8">18</property>
|
||||||
<property name="ParentFont" vt="False">False</property>
|
<property name="ParentFont" vt="False">False</property>
|
||||||
<property name="TabOrder" vt="Int8">1</property>
|
<property name="TabOrder" vt="Int8">1</property>
|
||||||
<property name="Text" vt="String">FormMainComboTimes</property>
|
|
||||||
<property name="CtrlStyle" vt="Int32">1342374466</property>
|
<property name="CtrlStyle" vt="Int32">1342374466</property>
|
||||||
<property name="CtrlExStyle" vt="Int8">0</property>
|
<property name="CtrlExStyle" vt="Int8">0</property>
|
||||||
<property name="Resizing" vt="Set">DockHeight</property>
|
<property name="Resizing" vt="Set">DockHeight</property>
|
||||||
</properties>
|
</properties>
|
||||||
<components/>
|
<components/>
|
||||||
</object>
|
</object>
|
||||||
<object type="TALabel" name="FormMainLabelStatus">
|
<object type="TALabel" name="FormMainLabelStatusLine1">
|
||||||
<properties>
|
<properties>
|
||||||
<property name="Left" vt="Int8">0</property>
|
<property name="Left" vt="Int8">0</property>
|
||||||
<property name="Top" vt="Int8">0</property>
|
<property name="Top" vt="Int8">0</property>
|
||||||
<property name="Width" vt="Int16">404</property>
|
<property name="Width" vt="Int16">404</property>
|
||||||
<property name="Height" vt="Int8">44</property>
|
<property name="Height" vt="Int8">44</property>
|
||||||
|
<property name="Cursor" vt="Ident">crHandPoint</property>
|
||||||
<property name="AutoSize" vt="False">False</property>
|
<property name="AutoSize" vt="False">False</property>
|
||||||
<property name="Caption" vt="String">unknown</property>
|
<property name="Caption" vt="String">unknown</property>
|
||||||
<property name="Color" vt="Ident">clGray</property>
|
<property name="Color" vt="Ident">clGray</property>
|
||||||
@ -143,7 +143,7 @@
|
|||||||
<object type="TAButton" name="FormMainButtonAcknowledge">
|
<object type="TAButton" name="FormMainButtonAcknowledge">
|
||||||
<properties>
|
<properties>
|
||||||
<property name="Left" vt="Int8">48</property>
|
<property name="Left" vt="Int8">48</property>
|
||||||
<property name="Top" vt="Int16">265</property>
|
<property name="Top" vt="Int16">321</property>
|
||||||
<property name="Width" vt="Int8">109</property>
|
<property name="Width" vt="Int8">109</property>
|
||||||
<property name="Height" vt="Int8">28</property>
|
<property name="Height" vt="Int8">28</property>
|
||||||
<property name="Caption" vt="String">Acknowledge</property>
|
<property name="Caption" vt="String">Acknowledge</property>
|
||||||
@ -165,7 +165,7 @@
|
|||||||
<object type="TAButton" name="FormMainButtonSetup">
|
<object type="TAButton" name="FormMainButtonSetup">
|
||||||
<properties>
|
<properties>
|
||||||
<property name="Left" vt="Int16">246</property>
|
<property name="Left" vt="Int16">246</property>
|
||||||
<property name="Top" vt="Int16">265</property>
|
<property name="Top" vt="Int16">321</property>
|
||||||
<property name="Width" vt="Int8">109</property>
|
<property name="Width" vt="Int8">109</property>
|
||||||
<property name="Height" vt="Int8">28</property>
|
<property name="Height" vt="Int8">28</property>
|
||||||
<property name="Caption" vt="String">Setup</property>
|
<property name="Caption" vt="String">Setup</property>
|
||||||
@ -190,6 +190,7 @@
|
|||||||
<property name="Top" vt="Int8">44</property>
|
<property name="Top" vt="Int8">44</property>
|
||||||
<property name="Width" vt="Int16">404</property>
|
<property name="Width" vt="Int16">404</property>
|
||||||
<property name="Height" vt="Int8">44</property>
|
<property name="Height" vt="Int8">44</property>
|
||||||
|
<property name="Cursor" vt="Ident">crHandPoint</property>
|
||||||
<property name="AutoSize" vt="False">False</property>
|
<property name="AutoSize" vt="False">False</property>
|
||||||
<property name="Caption" vt="String">status</property>
|
<property name="Caption" vt="String">status</property>
|
||||||
<property name="Color" vt="Ident">clGray</property>
|
<property name="Color" vt="Ident">clGray</property>
|
||||||
@ -209,5 +210,30 @@
|
|||||||
</properties>
|
</properties>
|
||||||
<components/>
|
<components/>
|
||||||
</object>
|
</object>
|
||||||
|
<object type="TALabel" name="FormMainLabelStatusLine3">
|
||||||
|
<properties>
|
||||||
|
<property name="Left" vt="Int8">0</property>
|
||||||
|
<property name="Top" vt="Int8">88</property>
|
||||||
|
<property name="Width" vt="Int16">404</property>
|
||||||
|
<property name="Height" vt="Int8">28</property>
|
||||||
|
<property name="Cursor" vt="Ident">crHandPoint</property>
|
||||||
|
<property name="AutoSize" vt="False">False</property>
|
||||||
|
<property name="Color" vt="Ident">clGray</property>
|
||||||
|
<property name="Font.Charset" vt="Ident">ANSI_CHARSET</property>
|
||||||
|
<property name="Font.Color" vt="Ident">clWhite</property>
|
||||||
|
<property name="Font.Height" vt="Int8">-13</property>
|
||||||
|
<property name="Font.Name" vt="String">Arial</property>
|
||||||
|
<property name="Font.Style" vt="Set"/>
|
||||||
|
<property name="ParentColor" vt="False">False</property>
|
||||||
|
<property name="ParentFont" vt="False">False</property>
|
||||||
|
<property name="TabOrder" vt="Int8">8</property>
|
||||||
|
<property name="OnClick" vt="String">FormMainLabelStatusClick</property>
|
||||||
|
<property name="HaveVariable" vt="False">False</property>
|
||||||
|
<property name="CtrlStyle" vt="Int32">1342309121</property>
|
||||||
|
<property name="CtrlExStyle" vt="Int8">0</property>
|
||||||
|
<property name="Resizing" vt="Set"/>
|
||||||
|
</properties>
|
||||||
|
<components/>
|
||||||
|
</object>
|
||||||
</components>
|
</components>
|
||||||
</object>
|
</object>
|
@ -27,8 +27,8 @@ Opt("GUIOnEventMode", 1)
|
|||||||
;~ ####################################################################################
|
;~ ####################################################################################
|
||||||
|
|
||||||
; Für die FormMain
|
; Für die FormMain
|
||||||
Global $FormMain, $FormMainPicStatus, $FormMainListViewTriggers, $FormMainLabelStatus, $FormMainComboTimes, $FormMainButtonMaintenanceSet
|
Global $FormMain, $FormMainPicStatus, $FormMainListViewTriggers, $FormMainLabelStatusLine1, $FormMainComboTimes, $FormMainButtonMaintenanceSet
|
||||||
Global $FormMainButtonMaintenanceDelete, $FormMainButtonAcknowledge, $FormMainButtonSetup, $FormMainLabelStatusLine2
|
Global $FormMainButtonMaintenanceDelete, $FormMainButtonAcknowledge, $FormMainButtonSetup, $FormMainLabelStatusLine2, $FormMainLabelStatusLine3
|
||||||
|
|
||||||
|
|
||||||
; Für die FormSetup
|
; Für die FormSetup
|
||||||
@ -96,8 +96,8 @@ Func FormMainButtonMaintenanceSetClick()
|
|||||||
Sleep(1000)
|
Sleep(1000)
|
||||||
_CheckMaintenanceStatus()
|
_CheckMaintenanceStatus()
|
||||||
Else
|
Else
|
||||||
GUICtrlSetBkColor($FormMainLabelStatus, 0xFF0000)
|
GUICtrlSetBkColor($FormMainLabelStatusLine1, 0xFF0000)
|
||||||
GUICtrlSetData($FormMainLabelStatus, "API ERROR")
|
GUICtrlSetData($FormMainLabelStatusLine1, "API ERROR")
|
||||||
GUICtrlSetBkColor($FormMainLabelStatusLine2, 0xFF0000)
|
GUICtrlSetBkColor($FormMainLabelStatusLine2, 0xFF0000)
|
||||||
GUICtrlSetData($FormMainLabelStatusLine2, "Failure adding Maintenance")
|
GUICtrlSetData($FormMainLabelStatusLine2, "Failure adding Maintenance")
|
||||||
EndIf
|
EndIf
|
||||||
@ -323,39 +323,30 @@ Func _CheckMaintenanceStatus()
|
|||||||
Local $__zbxHostname = GUICtrlRead($FormSetupAPIInputHost)
|
Local $__zbxHostname = GUICtrlRead($FormSetupAPIInputHost)
|
||||||
Local $__zbxSessionId = _zbx_Login( $__zbxURL, $__zbxUser, $__zbxPassword)
|
Local $__zbxSessionId = _zbx_Login( $__zbxURL, $__zbxUser, $__zbxPassword)
|
||||||
If $__zbxSessionId = "" Then
|
If $__zbxSessionId = "" Then
|
||||||
GUICtrlSetBkColor($FormMainLabelStatus, 0xFF0000)
|
_SetLabelStatus(0xFF0000, "API Login", "Failure", "")
|
||||||
GUICtrlSetData($FormMainLabelStatus, "API Login")
|
|
||||||
GUICtrlSetBkColor($FormMainLabelStatusLine2, 0xFF0000)
|
|
||||||
GUICtrlSetData($FormMainLabelStatusLine2, "Failure")
|
|
||||||
GUICtrlSetState($FormMainButtonMaintenanceSet, $GUI_DISABLE)
|
GUICtrlSetState($FormMainButtonMaintenanceSet, $GUI_DISABLE)
|
||||||
GUICtrlSetState($FormMainButtonMaintenanceDelete, $GUI_DISABLE)
|
GUICtrlSetState($FormMainButtonMaintenanceDelete, $GUI_DISABLE)
|
||||||
GUICtrlSetState($FormMainComboTimes, $GUI_DISABLE)
|
GUICtrlSetState($FormMainComboTimes, $GUI_DISABLE)
|
||||||
Return
|
Return
|
||||||
EndIf
|
EndIf
|
||||||
GUICtrlSetData($FormMainLabelStatus, "Logged in ...")
|
_SetLabelStatus(Default , "", "Logged in ...", "")
|
||||||
GUICtrlSetData($FormMainLabelStatusLine2, "")
|
|
||||||
Local $__zbxHostId = _zbx_HostGetId($__zbxURL, $__zbxSessionId, $__zbxHostname)
|
Local $__zbxHostId = _zbx_HostGetId($__zbxURL, $__zbxSessionId, $__zbxHostname)
|
||||||
If $__zbxHostId = "" Then
|
If $__zbxHostId = "" Then
|
||||||
GUICtrlSetBkColor($FormMainLabelStatus, 0xFF0000)
|
_SetLabelStatus(0xFF0000 , "Host not found:", $__zbxHostname, "")
|
||||||
GUICtrlSetData($FormMainLabelStatus, 'Host "' & $__zbxHostname & '" not found"')
|
|
||||||
_zbx_Logout( $__zbxURL, $__zbxSessionId)
|
_zbx_Logout( $__zbxURL, $__zbxSessionId)
|
||||||
GUICtrlSetState($FormMainButtonMaintenanceSet, $GUI_DISABLE)
|
GUICtrlSetState($FormMainButtonMaintenanceSet, $GUI_DISABLE)
|
||||||
GUICtrlSetState($FormMainButtonMaintenanceDelete, $GUI_DISABLE)
|
GUICtrlSetState($FormMainButtonMaintenanceDelete, $GUI_DISABLE)
|
||||||
GUICtrlSetState($FormMainComboTimes, $GUI_DISABLE)
|
GUICtrlSetState($FormMainComboTimes, $GUI_DISABLE)
|
||||||
Return
|
Return
|
||||||
EndIf
|
EndIf
|
||||||
GUICtrlSetData($FormMainLabelStatus, "Host found ..")
|
_SetLabelStatus(Default , "", "Host found ..", "")
|
||||||
GUICtrlSetData($FormMainLabelStatusLine2, "")
|
|
||||||
GUICtrlSetState($FormMainButtonMaintenanceSet, $GUI_ENABLE)
|
GUICtrlSetState($FormMainButtonMaintenanceSet, $GUI_ENABLE)
|
||||||
GUICtrlSetState($FormMainButtonMaintenanceDelete, $GUI_ENABLE)
|
GUICtrlSetState($FormMainButtonMaintenanceDelete, $GUI_ENABLE)
|
||||||
GUICtrlSetState($FormMainComboTimes, $GUI_ENABLE)
|
GUICtrlSetState($FormMainComboTimes, $GUI_ENABLE)
|
||||||
Local $__aMaintenanceIds = _zbx_HostGetMaintenanceIDs($__zbxURL, $__zbxSessionId, $__zbxHostId, "")
|
Local $__aMaintenanceIds = _zbx_HostGetMaintenanceIDs($__zbxURL, $__zbxSessionId, $__zbxHostId, "")
|
||||||
;~ _ArrayDisplay($__aMaintenanceIds, "$__aMaintenanceIds")
|
;~ _ArrayDisplay($__aMaintenanceIds, "$__aMaintenanceIds")
|
||||||
If $__aMaintenanceIds[0][0] = 0 Then
|
If $__aMaintenanceIds[0][0] = 0 Then
|
||||||
GUICtrlSetBkColor($FormMainLabelStatus, 0x008800)
|
_SetLabelStatus(0x008800 , "no maintenance", "periods found", "")
|
||||||
GUICtrlSetBkColor($FormMainLabelStatusLine2, 0x008800)
|
|
||||||
GUICtrlSetData($FormMainLabelStatus, "no maintenance")
|
|
||||||
GUICtrlSetData($FormMainLabelStatusLine2, "periods found")
|
|
||||||
Else
|
Else
|
||||||
; there are maintenance periods, find a active one
|
; there are maintenance periods, find a active one
|
||||||
Local $__LocalTimeStructUTC = _Date_Time_GetSystemTime()
|
Local $__LocalTimeStructUTC = _Date_Time_GetSystemTime()
|
||||||
@ -376,17 +367,9 @@ Func _CheckMaintenanceStatus()
|
|||||||
EndIf
|
EndIf
|
||||||
Next
|
Next
|
||||||
If $__iMaintenanceTimeTill <> 0 Then
|
If $__iMaintenanceTimeTill <> 0 Then
|
||||||
GUICtrlSetBkColor($FormMainLabelStatus, 0x880000)
|
_SetLabelStatus(0x880000 , "Host in maintenance", StringReplace(StringReplace(_SecondsToTime($__iMaintenanceTimeTill - $__dCurrentTime), "h", "h "),"m", "m "), $__sMaintenanceName)
|
||||||
GUICtrlSetBkColor($FormMainLabelStatusLine2, 0x880000)
|
|
||||||
GUICtrlSetFont($FormMainLabelStatus, 14, 400, 0, "Arial")
|
|
||||||
GUICtrlSetFont($FormMainLabelStatusLine2, 14, 400, 0, "Arial")
|
|
||||||
GUICtrlSetData($FormMainLabelStatus, $__sMaintenanceName)
|
|
||||||
GUICtrlSetData($FormMainLabelStatusLine2, StringReplace(StringReplace(_SecondsToTime($__iMaintenanceTimeTill - $__dCurrentTime), "h", "h "),"m", "m "))
|
|
||||||
Else
|
Else
|
||||||
GUICtrlSetBkColor($FormMainLabelStatus, 0x008800)
|
_SetLabelStatus(0x008800 , "no active maintenance", "periods found", "")
|
||||||
GUICtrlSetBkColor($FormMainLabelStatusLine2, 0x008800)
|
|
||||||
GUICtrlSetData($FormMainLabelStatus, "no active maintenance")
|
|
||||||
GUICtrlSetData($FormMainLabelStatusLine2, "periods found")
|
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
EndIf
|
EndIf
|
||||||
@ -503,6 +486,16 @@ Func _ReplaceEnviromentVariables($__SourceText)
|
|||||||
$__sReturn = StringReplace($__sReturn, "\", "\\")
|
$__sReturn = StringReplace($__sReturn, "\", "\\")
|
||||||
Return $__sReturn
|
Return $__sReturn
|
||||||
EndFunc
|
EndFunc
|
||||||
|
|
||||||
|
; #############################################################################################################################################################
|
||||||
|
Func _SetLabelStatus($__StatusColor = 0x808080, $__TextLine1 = "unknown", $__TextLine2 = "status", $__TextLine3 = "")
|
||||||
|
GUICtrlSetBkColor($FormMainLabelStatusLine1, $__StatusColor)
|
||||||
|
GUICtrlSetBkColor($FormMainLabelStatusLine2, $__StatusColor)
|
||||||
|
GUICtrlSetBkColor($FormMainLabelStatusLine3, $__StatusColor)
|
||||||
|
GUICtrlSetData($FormMainLabelStatusLine1, $__TextLine1)
|
||||||
|
GUICtrlSetData($FormMainLabelStatusLine2, $__TextLine2)
|
||||||
|
GUICtrlSetData($FormMainLabelStatusLine3, $__TextLine3)
|
||||||
|
EndFunc
|
||||||
; #############################################################################################################################################################
|
; #############################################################################################################################################################
|
||||||
Func _SettingsRead()
|
Func _SettingsRead()
|
||||||
; Tab "Zabbix API"
|
; Tab "Zabbix API"
|
||||||
@ -731,8 +724,12 @@ Func _zbx_HostGetMaintenanceIDs($__zbxURL, $__zbxSessionId, $__zbxHostId, $__zbx
|
|||||||
Local $__oReceived = $__oHTTP.ResponseText
|
Local $__oReceived = $__oHTTP.ResponseText
|
||||||
Local $__oStatusCode = $__oHTTP.Status
|
Local $__oStatusCode = $__oHTTP.Status
|
||||||
;~ MsgBox(0, "_zbx_HostGetMaintenanceIDs", StringReplace($__oReceived,",", "," & @CRLF) & @CRLF & @CRLF & "Status Code: " & $__oStatusCode)
|
;~ MsgBox(0, "_zbx_HostGetMaintenanceIDs", StringReplace($__oReceived,",", "," & @CRLF) & @CRLF & @CRLF & "Status Code: " & $__oStatusCode)
|
||||||
|
ConsoleWrite($__oReceived & @CRLF)
|
||||||
If $__oStatusCode = 200 Then
|
If $__oStatusCode = 200 Then
|
||||||
Local $__atemp = StringSplit($__oReceived, ",:", 0)
|
$__oReceived = StringReplace($__oReceived, '":"', '"|"')
|
||||||
|
$__oReceived = StringReplace($__oReceived, '","', '"|"')
|
||||||
|
;~ Local $__atemp = StringSplit($__oReceived, ",:", 0)
|
||||||
|
Local $__atemp = StringSplit($__oReceived, "|", 0)
|
||||||
For $i = 1 To $__atemp[0] Step 1
|
For $i = 1 To $__atemp[0] Step 1
|
||||||
If StringInStr($__atemp[$i], "maintenanceid") > 0 Then
|
If StringInStr($__atemp[$i], "maintenanceid") > 0 Then
|
||||||
$__bSkip = True
|
$__bSkip = True
|
||||||
@ -936,36 +933,43 @@ EndFunc
|
|||||||
|
|
||||||
|
|
||||||
#Region ### START Koda GUI section ### Form=C:\_AutoIt\ZabbixEasyTool\FormMain.kxf
|
#Region ### START Koda GUI section ### Form=C:\_AutoIt\ZabbixEasyTool\FormMain.kxf
|
||||||
$FormMain = GUICreate("ZabbixEasyTool", 404, 314, -1, -1, -1, BitOR($WS_EX_TOPMOST,$WS_EX_WINDOWEDGE))
|
$FormMain = GUICreate("ZabbixEasyTool", 405, 359, -1, -1, -1, BitOR($WS_EX_TOPMOST,$WS_EX_WINDOWEDGE))
|
||||||
GUISetFont(10, 400, 0, "Arial")
|
GUISetFont(10, 400, 0, "Arial")
|
||||||
GUISetOnEvent($GUI_EVENT_CLOSE, "FormMainClose")
|
GUISetOnEvent($GUI_EVENT_CLOSE, "FormMainClose")
|
||||||
GUISetOnEvent($GUI_EVENT_MINIMIZE, "FormMainMinimize")
|
GUISetOnEvent($GUI_EVENT_MINIMIZE, "FormMainMinimize")
|
||||||
GUISetOnEvent($GUI_EVENT_RESTORE, "FormMainRestore")
|
GUISetOnEvent($GUI_EVENT_RESTORE, "FormMainRestore")
|
||||||
$FormMainLabelStatus = GUICtrlCreateLabel("unknown", 0, 0, 404, 44, BitOR($SS_CENTER,$SS_CENTERIMAGE))
|
$FormMainLabelStatusLine1 = GUICtrlCreateLabel("unknown", 0, 0, 404, 44, BitOR($SS_CENTER,$SS_CENTERIMAGE))
|
||||||
GUICtrlSetFont($FormMainLabelStatus, 28, 400, 0, "Arial")
|
GUICtrlSetFont($FormMainLabelStatusLine1, 28, 400, 0, "Arial")
|
||||||
GUICtrlSetColor($FormMainLabelStatus, 0xFFFFFF)
|
GUICtrlSetColor($FormMainLabelStatusLine1, 0xFFFFFF)
|
||||||
GUICtrlSetBkColor($FormMainLabelStatus, 0x808080)
|
GUICtrlSetBkColor($FormMainLabelStatusLine1, 0x808080)
|
||||||
GUICtrlSetOnEvent($FormMainLabelStatus, "FormMainLabelStatusClick")
|
GUICtrlSetCursor ($FormMainLabelStatusLine1, 0)
|
||||||
$FormMainComboTimes = GUICtrlCreateCombo("FormMainComboTimes", 48, 90, 99, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
|
GUICtrlSetOnEvent($FormMainLabelStatusLine1, "FormMainLabelStatusClick")
|
||||||
|
$FormMainComboTimes = GUICtrlCreateCombo("", 48, 122, 99, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
|
||||||
GUICtrlSetFont($FormMainComboTimes, 12, 400, 0, "Arial")
|
GUICtrlSetFont($FormMainComboTimes, 12, 400, 0, "Arial")
|
||||||
$FormMainButtonMaintenanceSet = GUICtrlCreateButton("Set", 152, 89, 99, 28)
|
$FormMainButtonMaintenanceSet = GUICtrlCreateButton("Set", 152, 121, 99, 28)
|
||||||
GUICtrlSetFont($FormMainButtonMaintenanceSet, 12, 400, 0, "Arial")
|
GUICtrlSetFont($FormMainButtonMaintenanceSet, 12, 400, 0, "Arial")
|
||||||
GUICtrlSetOnEvent($FormMainButtonMaintenanceSet, "FormMainButtonMaintenanceSetClick")
|
GUICtrlSetOnEvent($FormMainButtonMaintenanceSet, "FormMainButtonMaintenanceSetClick")
|
||||||
$FormMainListViewTriggers = GUICtrlCreateListView("", 0, 120, 404, 142)
|
$FormMainListViewTriggers = GUICtrlCreateListView("", 0, 176, 404, 142)
|
||||||
$FormMainButtonMaintenanceDelete = GUICtrlCreateButton("Delete all", 256, 89, 99, 28)
|
$FormMainButtonMaintenanceDelete = GUICtrlCreateButton("Delete all", 256, 121, 99, 28)
|
||||||
GUICtrlSetFont($FormMainButtonMaintenanceDelete, 12, 400, 0, "Arial")
|
GUICtrlSetFont($FormMainButtonMaintenanceDelete, 12, 400, 0, "Arial")
|
||||||
GUICtrlSetOnEvent($FormMainButtonMaintenanceDelete, "FormMainButtonMaintenanceDeleteClick")
|
GUICtrlSetOnEvent($FormMainButtonMaintenanceDelete, "FormMainButtonMaintenanceDeleteClick")
|
||||||
$FormMainButtonAcknowledge = GUICtrlCreateButton("Acknowledge", 48, 265, 109, 28)
|
$FormMainButtonAcknowledge = GUICtrlCreateButton("Acknowledge", 48, 321, 109, 28)
|
||||||
GUICtrlSetFont($FormMainButtonAcknowledge, 12, 400, 0, "Arial")
|
GUICtrlSetFont($FormMainButtonAcknowledge, 12, 400, 0, "Arial")
|
||||||
GUICtrlSetOnEvent($FormMainButtonAcknowledge, "FormMainButtonAcknowledgeClick")
|
GUICtrlSetOnEvent($FormMainButtonAcknowledge, "FormMainButtonAcknowledgeClick")
|
||||||
$FormMainButtonSetup = GUICtrlCreateButton("Setup", 246, 265, 109, 28)
|
$FormMainButtonSetup = GUICtrlCreateButton("Setup", 246, 321, 109, 28)
|
||||||
GUICtrlSetFont($FormMainButtonSetup, 12, 400, 0, "Arial")
|
GUICtrlSetFont($FormMainButtonSetup, 12, 400, 0, "Arial")
|
||||||
GUICtrlSetOnEvent($FormMainButtonSetup, "FormMainButtonSetupClick")
|
GUICtrlSetOnEvent($FormMainButtonSetup, "FormMainButtonSetupClick")
|
||||||
$FormMainLabelStatusLine2 = GUICtrlCreateLabel("status", 0, 44, 404, 44, BitOR($SS_CENTER,$SS_CENTERIMAGE))
|
$FormMainLabelStatusLine2 = GUICtrlCreateLabel("status", 0, 44, 404, 44, BitOR($SS_CENTER,$SS_CENTERIMAGE))
|
||||||
GUICtrlSetFont($FormMainLabelStatusLine2, 28, 400, 0, "Arial")
|
GUICtrlSetFont($FormMainLabelStatusLine2, 28, 400, 0, "Arial")
|
||||||
GUICtrlSetColor($FormMainLabelStatusLine2, 0xFFFFFF)
|
GUICtrlSetColor($FormMainLabelStatusLine2, 0xFFFFFF)
|
||||||
GUICtrlSetBkColor($FormMainLabelStatusLine2, 0x808080)
|
GUICtrlSetBkColor($FormMainLabelStatusLine2, 0x808080)
|
||||||
|
GUICtrlSetCursor ($FormMainLabelStatusLine2, 0)
|
||||||
GUICtrlSetOnEvent($FormMainLabelStatusLine2, "FormMainLabelStatusClick")
|
GUICtrlSetOnEvent($FormMainLabelStatusLine2, "FormMainLabelStatusClick")
|
||||||
|
$FormMainLabelStatusLine3 = GUICtrlCreateLabel("", 0, 88, 404, 28, BitOR($SS_CENTER,$SS_CENTERIMAGE))
|
||||||
|
GUICtrlSetColor($FormMainLabelStatusLine3, 0xFFFFFF)
|
||||||
|
GUICtrlSetBkColor($FormMainLabelStatusLine3, 0x808080)
|
||||||
|
GUICtrlSetCursor ($FormMainLabelStatusLine3, 0)
|
||||||
|
GUICtrlSetOnEvent($FormMainLabelStatusLine3, "FormMainLabelStatusClick")
|
||||||
GUISetState(@SW_SHOW)
|
GUISetState(@SW_SHOW)
|
||||||
#EndRegion ### END Koda GUI section ###
|
#EndRegion ### END Koda GUI section ###
|
||||||
;~ GUISetState(@SW_HIDE, $FormMain)
|
;~ GUISetState(@SW_HIDE, $FormMain)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user