/
ux.au3
56 lines (45 loc) · 1.48 KB
/
ux.au3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Changelog v0.2.2
# Removed logging option
# Dark mode
# Change in dropdown list
# Bugfixes with the INI file
# Do not store empty files
# Save to single file
# UX is now a separate file (ux.au3)
# Added transparancy option via .ini
# Changelog v0.2.1
# Sort dropdown selectbox by date (last modified)
# New config for versioning
# Added scrollbar to dropdown list
# Show limited items in dropdown (10)
# Changelog v0.2
# Added reminders to the text
# Changelog v0.1.1
# Changed filenames to %DD-%MM-%YYY.txt
# Changelog v0.1
# First release
# File: ux.au3
# Creeer het form
Func _CreateUX($Darkmode)
#Region
Opt("GUICoordMode", 1)
$frmmain = GUICreate(_SetFormTitle("ON", "ON", $RemindersTitle), 627, 530, $ypos, $xpos, BitOR($WS_SYSMENU, $WS_SIZEBOX, $WS_EX_WINDOWEDGE))
WinSetTrans($frmmain, "", $transparancy)
if $Darkmode = "true" then
GUISetBkColor(0x000000)
EndIf
GUISetIcon("jotter.ico", -1)
$NotesList = GUICtrlCreateCombo("", 0, 0, 625, 25, BitOR($CBS_DROPDOWNLIST,$CBS_AUTOHSCROLL,$WS_BORDER),BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
if $Darkmode = "true" then
GUICtrlSetColor($NotesList, 0xFFFFFF)
GUICtrlSetBkColor($NotesList, 0x303018)
EndIf
GUICtrlSendMsg($NotesList, $CB_SETMINVISIBLE, 10, 0)
$Notitie = GUICtrlCreateEdit("", 0, 22, 625, 483, BitOR($ES_AUTOVSCROLL,$ES_WANTRETURN,$WS_VSCROLL))
if $Darkmode = "true" then
GUICtrlSetColor($Notitie, 0xFFFFFF)
GUICtrlSetBkColor($Notitie, 0x303018)
EndIf
GUISetState(@SW_SHOW)
#EndRegion
EndFunc