CONST True
= -1, False
= 0
CONST Bit_Min`
= -1`
, Bit_Max
= 0`
CONST Byte_Min%%
= -128%%
, Byte_Max
= 127%%
CONST Integer_Min%
= -32768%
, Integer_Max
= 32767%
CONST Long_Min&
= -2147483648&
, Long_Max
= 2147483647&
CONST Integer64_Min&&
= -9223372036854775808&&
, Integer64_Max
= 9223372036854775807&&
CONST Single_Min!
= -2.802597E-45, Single_Max
= 3.402823E+38 CONST Double_Min#
= -4.490656458412465E-324, Double_Max
= 1.797693134862310E+308 CONST Float_Min##
= -1.18E-4932, Float_Max
= 1.18E+4932
CONST U_Bit_Min~`
= 0, U_Bit_Max
= 1 CONST U_Byte_Min~%%
= 0, U_Byte_Max
= 256 CONST U_Integer_Min~%
= 0, U_Integer_Max
= 65535 CONST U_Long_Min~&
= 0, U_Long_Max
= 4294967295 CONST U_Integer64_Min~&&
= 0, U_Integer64_Max
= 18446744073709551615
CONST String_Min&
= 0, String_Max&
= 2147483647
CONST Key_Uppercase
= 0, Key_LowerCase
= 32, Key_UC
= 0, Key_LC
= 32
CONST Key_Backspace
= 8, Key_Bksp
= 8 CONST Key_Tab
= 9, Key_Enter
= 13, Key_ESC
= 27, Key_Space
= 32 CONST Key_Exclamation
= 33, Key_Quote
= 34, Key_Number
= 35, Key_Dollar
= 36 CONST Key_Percent
= 37, Key_And
= 38, Key_Apostrophe
= 39 CONST Key_Left_Parenthese
= 40, Key_Right_Parenthese
= 41 CONST Key_Times
= 42, Key_Star
= 42, Key_Plus
= 43, Key_Comma
= 44 CONST Key_Minus
= 45, Key_Dash
= 45, Key_Period
= 46, Key_Divide
= 47, Key_Slash
= 47 CONST Key_0
= 48, Key_1
= 49, Key_2
= 50, Key_3
= 51, Key_4
= 52 CONST Key_5
= 53, Key_6
= 54, Key_7
= 55, Key_8
= 56, Key_9
= 57 CONST Key_Colon
= 58, Key_Semicolon
= 59, Key_LessThan
= 60, Key_Equal
= 61 CONST Key_GreaterThan
= 62, Key_Question
= 63, Key_QuestionMark
= 63, Key_At
= 64 CONST Key_A
= 65, Key_B
= 66, Key_C
= 67, Key_D
= 68, Key_E
= 69, Key_F
= 70 CONST Key_G
= 71, Key_H
= 72, Key_I
= 73, Key_J
= 74, Key_K
= 75, Key_L
= 76 CONST Key_M
= 77, Key_N
= 78, Key_O
= 79, Key_P
= 80, Key_Q
= 81, Key_R
= 82 CONST Key_S
= 83, Key_T
= 84, Key_U
= 85, Key_V
= 86, Key_W
= 87, Key_X
= 88 CONST Key_Y
= 89, Key_Z
= 90 CONST Key_LeftBrace
= 91, Key_BackSlash
= 92, Key_RightBrace
= 92 CONST Key_Power
= 94, Key_Underscore
= 95, Key_BackQuote
= 96 'Lowercase A to Z are Key_A + Key_LowerCase to Key_Z + Key_LowerCase
CONST Key_F1
= 15104, Key_F2
= 15360, Key_F3
= 15616, Key_F4
= 15872, Key_F5
= 16128 CONST Key_F6
= 16384, Key_F7
= 16640, Key_F8
= 16896, Key_F9
= 17152, Key_F10
= 17408 CONST Key_F11
= 34048, Key_F12
= 34304
CONST Key_NumLock
= 100300, Key_CapsLock
= 100301, Key_ScrollLock
= 100302 CONST Key_RightShift
= 100303, Key_LeftShift
= 100304 CONST Key_RightControl
= 100305, Key_RightCtrl
= 100305, Key_LeftControl
= 100306, Key_LeftCtrl
= 100306 CONST Key_RightAlt
= 100307, Key_LeftAlt
= 100308 CONST Key_LeftApple
= 100309, Key_RightApple
= 100310 CONST Key_LeftWin
= 100311, Key_RightWin
= 100312 CONST Key_Sys
= 100316, Key_Menu
= 100319
CONST Key_Up
= 18432, Key_Left
= 19200, Key_Down
= 20480, Key_Right
= 19712 CONST Key_Ins
= 20992, Key_Home
= 18176, Key_PageUp
= 18688 CONST Key_Del
= 21248, Key_End
= 20224, Key_PageDown
= 20736
CONST AliceBlue
= &HFFF0F8FF~&
' _RGB32(240,248,255) CONST Almond
= &HFFEFDECD~&
'_RGB32(239,222,205) CONST AntiqueBrass
= &HFFCD9575~&
'_RGB32(205,149,117) CONST AntiqueWhite
= &HFFFAEBD7~&
' _RGB32(250,235,215) CONST Apricot
= &HFFFDD9B5~&
'_RGB32(253,217,181) CONST Aqua
= &HFF00FFFF~&
' _RGB32(0,255,255) CONST Aquamarine
= &HFF7FFFD4~&
' _RGB32(127,255,212) CONST Asparagus
= &HFF87A96B~&
'_RGB32(135,169,107) CONST AtomicTangerine
= &HFFFFA474~&
'_RGB32(255,164,116) CONST Azure
= &HFFF0FFFF~&
' _RGB32(240,255,255) CONST BananaMania
= &HFFFAE7B5~&
'_RGB32(250,231,181) CONST Beaver
= &HFF9F8170~&
'_RGB32(159,129,112) CONST Beige
= &HFFF5F5DC~&
' _RGB32(245,245,220) CONST Bisque
= &HFFFFE4C4~&
' _RGB32(255,228,196) CONST Bittersweet
= &HFFFD7C6E~&
'_RGB32(253,124,110) CONST Black
= &HFF000000~&
' _RGB32(0,0,0) CONST BlanchedAlmond
= &HFFFFEBCD~&
' _RGB32(255,235,205) CONST BlizzardBlue
= &HFFACE5EE~&
'_RGB32(172,229,238) CONST Blue
= &HFF0000FF~&
' _RGB32(0,0,255) CONST BlueBell
= &HFFA2A2D0~&
'_RGB32(162,162,208) CONST BlueGray
= &HFF6699CC~&
'_RGB32(102,153,204) CONST BlueGreen
= &HFF0D98BA~&
'_RGB32(13,152,186) CONST BlueViolet
= &HFF8A2BE2~&
' _RGB32(138,43,226) CONST Blush
= &HFFDE5D83~&
'_RGB32(222,93,131) CONST BrickRed
= &HFFCB4154~&
'_RGB32(203,65,84) CONST Brown
= &HFFA52A2A~&
' _RGB32(165,42,42) CONST BurlyWood
= &HFFDEB887~&
' _RGB32(222,184,135) CONST BurntOrange
= &HFFFF7F49~&
'_RGB32(255,127,73) CONST BurntSienna
= &HFFEA7E5D~&
'_RGB32(234,126,93) CONST CadetBlue
= &HFF5F9EA0~&
' _RGB32(95,158,160) CONST Canary
= &HFFFFFF99~&
'_RGB32(255,255,153) CONST CaribbeanGreen
= &HFF1CD3A2~&
'_RGB32(28,211,162) CONST CarnationPink
= &HFFFFAACC~&
'_RGB32(255,170,204) CONST Cerise
= &HFFDD4492~&
'_RGB32(221,68,146) CONST Cerulean
= &HFF1DACD6~&
'_RGB32(29,172,214) CONST ChartReuse
= &HFF7FFF00~&
' _RGB32(127,255,0) CONST Chestnut
= &HFFBC5D58~&
'_RGB32(188,93,88) CONST Chocolate
= &HFFD2691E~&
' _RGB32(210,105,30) CONST Copper
= &HFFDD9475~&
'_RGB32(221,148,117) CONST Coral
= &HFFFF7F50~&
' _RGB32(255,127,80) CONST Cornflower
= &HFF9ACEEB~&
'_RGB32(154,206,235) CONST CornflowerBlue
= &HFF6495ED~&
' _RGB32(100,149,237) CONST Cornsilk
= &HFFFFF8DC~&
' _RGB32(255,248,220) CONST CottonCandy
= &HFFFFBCD9~&
'_RGB32(255,188,217) CONST CrayolaAquamarine
= &HFF78DBE2~&
'_RGB32(120,219,226) CONST CrayolaBlue
= &HFF1F75FE~&
'_RGB32(31,117,254) CONST CrayolaBlueViolet
= &HFF7366BD~&
'_RGB32(115,102,189) CONST CrayolaBrown
= &HFFB4674D~&
'_RGB32(180,103,77) CONST CrayolaCadetBlue
= &HFFB0B7C6~&
'_RGB32(176,183,198) CONST CrayolaForestGreen
= &HFF6DAE81~&
'_RGB32(109,174,129) CONST CrayolaGold
= &HFFE7C697~&
'_RGB32(231,198,151) CONST CrayolaGoldenrod
= &HFFFCD975~&
'_RGB32(252,217,117) CONST CrayolaGray
= &HFF95918C~&
'_RGB32(149,145,140) CONST CrayolaGreen
= &HFF1CAC78~&
'_RGB32(28,172,120) CONST CrayolaGreenYellow
= &HFFF0E891~&
'_RGB32(240,232,145) CONST CrayolaIndigo
= &HFF5D76CB~&
'_RGB32(93,118,203) CONST CrayolaLavender
= &HFFFCB4D5~&
'_RGB32(252,180,213) CONST CrayolaMagenta
= &HFFF664AF~&
'_RGB32(246,100,175) CONST CrayolaMaroon
= &HFFC8385A~&
'_RGB32(200,56,90) CONST CrayolaMidnightBlue
= &HFF1A4876~&
'_RGB32(26,72,118) CONST CrayolaOrange
= &HFFFF7538~&
'_RGB32(255,117,56) CONST CrayolaOrangeRed
= &HFFFF2B2B~&
'_RGB32(255,43,43) CONST CrayolaOrchid
= &HFFE6A8D7~&
'_RGB32(230,168,215) CONST CrayolaPlum
= &HFF8E4585~&
'_RGB32(142,69,133) CONST CrayolaRed
= &HFFEE204D~&
'_RGB32(238,32,77) CONST CrayolaSalmon
= &HFFFF9BAA~&
'_RGB32(255,155,170) CONST CrayolaSeaGreen
= &HFF9FE2BF~&
'_RGB32(159,226,191) CONST CrayolaSilver
= &HFFCDC5C2~&
'_RGB32(205,197,194) CONST CrayolaSkyBlue
= &HFF80DAEB~&
'_RGB32(128,218,235) CONST CrayolaSpringGreen
= &HFFECEABE~&
'_RGB32(236,234,190) CONST CrayolaTann
= &HFFFAA76C~&
'_RGB32(250,167,108) CONST CrayolaThistle
= &HFFEBC7DF~&
'_RGB32(235,199,223) CONST CrayolaViolet
= &HFF926EAE~&
'_RGB32(146,110,174) CONST CrayolaYellow
= &HFFFCE883~&
'_RGB32(252,232,131) CONST CrayolaYellowGreen
= &HFFC5E384~&
'_RGB32(197,227,132) CONST Crimson
= &HFFDC143C~&
' _RGB32(220,20,60) CONST Cyan
= &HFF00FFFF~&
' _RGB32(0,255,255) CONST Dandelion
= &HFFFDDB6D~&
'_RGB32(253,219,109) CONST DarkBlue
= &HFF00008B~&
' _RGB32(0,0,139) CONST DarkCyan
= &HFF008B8B~&
' _RGB32(0,139,139) CONST DarkGoldenRod
= &HFFB8860B~&
' _RGB32(184,134,11) CONST DarkGray
= &HFFA9A9A9~&
' _RGB32(169,169,169) CONST DarkGreen
= &HFF006400~&
' _RGB32(0,100,0) CONST DarkKhaki
= &HFFBDB76B~&
' _RGB32(189,183,107) CONST DarkMagenta
= &HFF8B008B~&
' _RGB32(139,0,139) CONST DarkOliveGreen
= &HFF556B2F~&
' _RGB32(85,107,47) CONST DarkOrange
= &HFFFF8C00~&
' _RGB32(255,140,0) CONST DarkOrchid
= &HFF9932CC~&
' _RGB32(153,50,204) CONST DarkRed
= &HFF8B0000~&
' _RGB32(139,0,0) CONST DarkSalmon
= &HFFE9967A~&
' _RGB32(233,150,122) CONST DarkSeaGreen
= &HFF8FBC8F~&
' _RGB32(143,188,143) CONST DarkSlateBlue
= &HFF483D8B~&
' _RGB32(72,61,139) CONST DarkSlateGray
= &HFF2F4F4F~&
' _RGB32(47,79,79) CONST DarkTurquoise
= &HFF00CED1~&
' _RGB32(0,206,209) CONST DarkViolet
= &HFF9400D3~&
' _RGB32(148,0,211) CONST DeepPink
= &HFFFF1493~&
' _RGB32(255,20,147) CONST DeepSkyBlue
= &HFF00BFFF~&
' _RGB32(0,191,255) CONST Denim
= &HFF2B6CC4~&
'_RGB32(43,108,196) CONST DesertSand
= &HFFEFCDB8~&
'_RGB32(239,205,184) CONST DimGray
= &HFF696969~&
' _RGB32(105,105,105) CONST DodgerBlue
= &HFF1E90FF~&
' _RGB32(30,144,255) CONST Eggplant
= &HFF6E5160~&
'_RGB32(110,81,96) CONST ElectricLime
= &HFFCEFF1D~&
'_RGB32(206,255,29) CONST Fern
= &HFF71BC78~&
'_RGB32(113,188,120) CONST FireBrick
= &HFFB22222~&
' _RGB32(178,34,34) CONST Floralwhite
= &HFFFFFAF0~&
' _RGB32(255,250,240) CONST ForestGreen
= &HFF228B22~&
' _RGB32(34,139,34) CONST Fuchsia
= &HFFC364C5~&
'_RGB32(195,100,197) CONST FuzzyWuzzy
= &HFFCC6666~&
'_RGB32(204,102,102) CONST Gainsboro
= &HFFDCDCDC~&
' _RGB32(220,220,220) CONST GhostWhite
= &HFFF8F8FF~&
' _RGB32(248,248,255) CONST Gold
= &HFFFFD700~&
' _RGB32(255,215,0) CONST GoldenRod
= &HFFDAA520~&
' _RGB32(218,165,32) CONST GrannySmithApple
= &HFFA8E4A0~&
'_RGB32(168,228,160) CONST Gray
= &HFF808080~&
' _RGB32(128,128,128) CONST Green
= &HFF008000~&
' _RGB32(0,128,0) CONST GreenBlue
= &HFF1164B4~&
'_RGB32(17,100,180) CONST GreenYellow
= &HFFADFF2F~&
' _RGB32(173,255,47) CONST HoneyDew
= &HFFF0FFF0~&
' _RGB32(240,255,240) CONST HotMagenta
= &HFFFF1DCE~&
'_RGB32(255,29,206) CONST HotPink
= &HFFFF69B4~&
' _RGB32(255,105,180) CONST Inchworm
= &HFFB2EC5D~&
'_RGB32(178,236,93) CONST IndianRed
= &HFFCD5C5C~&
' _RGB32(205,92,92) CONST Indigo
= &HFF4B0082~&
' _RGB32(75,0,130) CONST Ivory
= &HFFFFFFF0~&
' _RGB32(255,255,240) CONST JazzberryJam
= &HFFCA3767~&
'_RGB32(202,55,103) CONST JungleGreen
= &HFF3BB08F~&
'_RGB32(59,176,143) CONST Khaki
= &HFFF0E68C~&
' _RGB32(240,230,140) CONST LaserLemon
= &HFFFEFE22~&
'_RGB32(254,254,34) CONST Lavender
= &HFFE6E6FA~&
' _RGB32(230,230,250) CONST LavenderBlush
= &HFFFFF0F5~&
' _RGB32(255,240,245) CONST LawnGreen
= &HFF7CFC00~&
' _RGB32(124,252,0) CONST LemonChiffon
= &HFFFFFACD~&
' _RGB32(255,250,205) CONST LemonYellow
= &HFFFFF44F~&
'_RGB32(255,244,79) CONST LightBlue
= &HFFADD8E6~&
' _RGB32(173,216,230) CONST LightCoral
= &HFFF08080~&
' _RGB32(240,128,128) CONST LightCyan
= &HFFE0FFFF~&
' _RGB32(224,255,255) CONST LightGoldenRodYellow
= &HFFFAFAD2~&
' _RGB32(250,250,210) CONST LightGray
= &HFFD3D3D3~&
' _RGB32(211,211,211) CONST LightGreen
= &HFF90EE90~&
' _RGB32(144,238,144) CONST LightPink
= &HFFFFB6C1~&
' _RGB32(255,182,193) CONST LightSalmon
= &HFFFFA07A~&
' _RGB32(255,160,122) CONST LightSeaGreen
= &HFF20B2AA~&
' _RGB32(32,178,170) CONST LightSkyBlue
= &HFF87CEFA~&
' _RGB32(135,206,250) CONST LightSlateGray
= &HFF778899~&
' _RGB32(119,136,153) CONST LightSteelBlue
= &HFFB0C4DE~&
' _RGB32(176,196,222) CONST LightYellow
= &HFFFFFFE0~&
' _RGB32(255,255,224) CONST Lime
= &HFF00FF00~&
' _RGB32(0,255,0) CONST LimeGreen
= &HFF32CD32~&
' _RGB32(50,205,50) CONST Linen
= &HFFFAF0E6~&
' _RGB32(250,240,230) CONST MacaroniAndCheese
= &HFFFFBD88~&
'_RGB32(255,189,136) CONST Magenta
= &HFFFF00FF~&
' _RGB32(255,0,255) CONST MagicMint
= &HFFAAF0D1~&
'_RGB32(170,240,209) CONST Mahogany
= &HFFCD4A4C~&
'_RGB32(205,74,76) CONST Maize
= &HFFEDD19C~&
'_RGB32(237,209,156) CONST Manatee
= &HFF979AAA~&
'_RGB32(151,154,170) CONST MangoTango
= &HFFFF8243~&
'_RGB32(255,130,67) CONST Maroon
= &HFF800000~&
' _RGB32(128,0,0) CONST Mauvelous
= &HFFEF98AA~&
'_RGB32(239,152,170) CONST MediumAquamarine
= &HFF66CDAA~&
' _RGB32(102,205,170) CONST MediumBlue
= &HFF0000CD~&
' _RGB32(0,0,205) CONST MediumOrchid
= &HFFBA55D3~&
' _RGB32(186,85,211) CONST MediumPurple
= &HFF9370DB~&
' _RGB32(147,112,219) CONST MediumSeaGreen
= &HFF3CB371~&
' _RGB32(60,179,113) CONST MediumSlateBlue
= &HFF7B68EE~&
' _RGB32(123,104,238) CONST MediumSpringGreen
= &HFF00FA9A~&
' _RGB32(0,250,154) CONST MediumTurquoise
= &HFF48D1CC~&
' _RGB32(72,209,204) CONST MediumVioletRed
= &HFFC71585~&
' _RGB32(199,21,133) CONST Melon
= &HFFFDBCB4~&
'_RGB32(253,188,180) CONST MidnightBlue
= &HFF191970~&
' _RGB32(25,25,112) CONST MintCream
= &HFFF5FFFA~&
' _RGB32(245,255,250) CONST MistyRose
= &HFFFFE4E1~&
' _RGB32(255,228,225) CONST Moccasin
= &HFFFFE4B5~&
' _RGB32(255,228,181) CONST MountainMeadow
= &HFF30BA8F~&
'_RGB32(48,186,143) CONST Mulberry
= &HFFC54B8C~&
'_RGB32(197,75,140) CONST NavajoWhite
= &HFFFFDEAD~&
' _RGB32(255,222,173) CONST Navy
= &HFF000080~&
' _RGB32(0,0,128) CONST NavyBlue
= &HFF1974D2~&
'_RGB32(25,116,210) CONST NeonCarrot
= &HFFFFA343~&
'_RGB32(255,163,67) CONST OldLace
= &HFFFDF5E6~&
' _RGB32(253,245,230) CONST Olive
= &HFF808000~&
' _RGB32(128,128,0) CONST OliveDrab
= &HFF6B8E23~&
' _RGB32(107,142,35) CONST OliveGreen
= &HFFBAB86C~&
'_RGB32(186,184,108) CONST Orange
= &HFFFFA500~&
' _RGB32(255,165,0) CONST OrangeRed
= &HFFFF4500~&
' _RGB32(255,69,0) CONST OrangeYellow
= &HFFF8D568~&
'_RGB32(248,213,104) CONST Orchid
= &HFFDA70D6~&
' _RGB32(218,112,214) CONST OuterSpace
= &HFF414A4C~&
'_RGB32(65,74,76) CONST OutrageousOrange
= &HFFFF6E4A~&
'_RGB32(255,110,74) CONST PacificBlue
= &HFF1CA9C9~&
'_RGB32(28,169,201) CONST PaleGoldenRod
= &HFFEEE8AA~&
' _RGB32(238,232,170) CONST PaleGreen
= &HFF98FB98~&
' _RGB32(152,251,152) CONST PaleTurquoise
= &HFFAFEEEE~&
' _RGB32(175,238,238) CONST PaleVioletRed
= &HFFDB7093~&
' _RGB32(219,112,147) CONST PapayaWhip
= &HFFFFEFD5~&
' _RGB32(255,239,213) CONST Peach
= &HFFFFCFAB~&
'_RGB32(255,207,171) CONST PeachPuff
= &HFFFFDAB9~&
' _RGB32(255,218,185) CONST Periwinkle
= &HFFC5D0E6~&
'_RGB32(197,208,230) CONST Peru
= &HFFCD853F~&
' _RGB32(205,133,63) CONST PiggyPink
= &HFFFDDDE6~&
'_RGB32(253,221,230) CONST PineGreen
= &HFF158078~&
'_RGB32(21,128,120) CONST Pink
= &HFFFFC0CB~&
' _RGB32(255,192,203) CONST PinkFlamingo
= &HFFFC74FD~&
'_RGB32(252,116,253) CONST PinkSherbet
= &HFFF78FA7~&
'_RGB32(247,143,167) CONST Plum
= &HFFDDA0DD~&
' _RGB32(221,160,221) CONST PowderBlue
= &HFFB0E0E6~&
' _RGB32(176,224,230) CONST Purple
= &HFF800080~&
' _RGB32(128,0,128) CONST PurpleHeart
= &HFF7442C8~&
'_RGB32(116,66,200) CONST PurpleMountainsMajesty
= &HFF9D81BA~&
'_RGB32(157,129,186) CONST PurplePizzazz
= &HFFFE4EDA~&
'_RGB32(254,78,218) CONST RadicalRed
= &HFFFF496C~&
'_RGB32(255,73,108) CONST RawSienna
= &HFFD68A59~&
'_RGB32(214,138,89) CONST RawUmber
= &HFF714B23~&
'_RGB32(113,75,35) CONST RazzleDazzleRose
= &HFFFF48D0~&
'_RGB32(255,72,208) CONST Razzmatazz
= &HFFE3256B~&
'_RGB32(227,37,107) CONST Red
= &HFFFF0000~&
' _RGB32(255,0,0) CONST RedOrange
= &HFFFF5349~&
'_RGB32(255,83,73) CONST RedViolet
= &HFFC0448F~&
'_RGB32(192,68,143) CONST RobinsEggBlue
= &HFF1FCECB~&
'_RGB32(31,206,203) CONST RosyBrown
= &HFFBC8F8F~&
' _RGB32(188,143,143) CONST RoyalBlue
= &HFF4169E1~&
' _RGB32(65,105,225) CONST RoyalPurple
= &HFF7851A9~&
'_RGB32(120,81,169) CONST SaddleBrown
= &HFF8B4513~&
' _RGB32(139,69,19) CONST Salmon
= &HFFFA8072~&
' _RGB32(250,128,114) CONST SandyBrown
= &HFFF4A460~&
' _RGB32(244,164,96) CONST Scarlet
= &HFFFC2847~&
'_RGB32(252,40,71) CONST ScreaminGreen
= &HFF76FF7A~&
'_RGB32(118,255,122) CONST SeaGreen
= &HFF2E8B57~&
' _RGB32(46,139,87) CONST SeaShell
= &HFFFFF5EE~&
' _RGB32(255,245,238) CONST Sepia
= &HFFA5694F~&
'_RGB32(165,105,79) CONST Shadow
= &HFF8A795D~&
'_RGB32(138,121,93) CONST Shamrock
= &HFF45CEA2~&
'_RGB32(69,206,162) CONST ShockingPink
= &HFFFB7EFD~&
'_RGB32(251,126,253) CONST Sienna
= &HFFA0522D~&
' _RGB32(160,82,45) CONST Silver
= &HFFC0C0C0~&
' _RGB32(192,192,192) CONST SkyBlue
= &HFF87CEEB~&
' _RGB32(135,206,235) CONST SlateBlue
= &HFF6A5ACD~&
' _RGB32(106,90,205) CONST SlateGray
= &HFF708090~&
' _RGB32(112,128,144) CONST Snow
= &HFFFFFAFA~&
' _RGB32(255,250,250) CONST SpringGreen
= &HFF00FF7F~&
' _RGB32(0,255,127) CONST SteelBlue
= &HFF4682B4~&
' _RGB32(70,130,180) CONST Sunglow
= &HFFFFCF48~&
'_RGB32(255,207,72) CONST SunsetOrange
= &HFFFD5E53~&
'_RGB32(253,94,83) CONST Tann
= &HFFD2B48C~&
' _RGB32(210,180,140) CONST Teal
= &HFF008080~&
' _RGB32(0,128,128) CONST TealBlue
= &HFF18A7B5~&
'_RGB32(24,167,181) CONST Thistle
= &HFFD8BFD8~&
' _RGB32(216,191,216) CONST TickleMePink
= &HFFFC89AC~&
'_RGB32(252,137,172) CONST Timberwolf
= &HFFDBD7D2~&
'_RGB32(219,215,210) CONST Tomato
= &HFFFF6347~&
' _RGB32(255,99,71) CONST TropicalRainForest
= &HFF17806D~&
'_RGB32(23,128,109) CONST Tumbleweed
= &HFFDEAA88~&
'_RGB32(222,170,136) CONST Turquoise
= &HFF40E0D0~&
' _RGB32(64,224,208) CONST TurquoiseBlue
= &HFF77DDE7~&
'_RGB32(119,221,231) CONST UnmellowYellow
= &HFFFFFF66~&
'_RGB32(255,255,102) CONST Violet
= &HFFEE82EE~&
' _RGB32(238,130,238) CONST VioletBlue
= &HFF324AB2~&
'_RGB32(50,74,178) CONST VioletRed
= &HFFF75394~&
'_RGB32(247,83,148) CONST VividTangerine
= &HFFFFA089~&
'_RGB32(255,160,137) CONST VividViolet
= &HFF8F509D~&
'_RGB32(143,80,157) CONST Wheat
= &HFFF5DEB3~&
' _RGB32(245,222,179) CONST White
= &HFFFFFFFF~&
' _RGB32(255,255,255) CONST Whitesmoke
= &HFFF5F5F5~&
' _RGB32(245,245,245) CONST WildBlueYonder
= &HFFA2ADD0~&
'_RGB32(162,173,208) CONST WildStrawberry
= &HFFFF43A4~&
'_RGB32(255,67,164) CONST WildWatermelon
= &HFFFC6C85~&
'_RGB32(252,108,133) CONST Wisteria
= &HFFCDA4DE~&
'_RGB32(205,164,222) CONST Yellow
= &HFFFFFF00~&
' _RGB32(255,255,0) CONST YellowGreen
= &HFF9ACD32~&
' _RGB32(154,205,50) CONST YellowOrange
= &HFFFFAE42~&
'_RGB32(255,174,66)
TYPE Window_Type
'Type 100000 Defined
AS INTEGER 'has this particular object been defined, or freed yet? LinksTo
AS STRING * 1024 'What this object is anchored to LinksFrom
AS STRING * 1024 'What links to this object and is anchored to it Background
AS _INTEGER64 'is it a color, or an image handle?
TYPE Button_Type
'Type 200000 Defined
AS INTEGER 'has this particular object been defined, or freed yet? Background
AS _INTEGER64 'is it a color, or an image handle?
TYPE Caption_Type
'Type 300000 Defined
AS INTEGER 'has this particular object been defined, or freed yet? LinksTo
AS STRING * 1024 'What this object is anchored to Background
AS _INTEGER64 'is it a color, or an image handle? ' Font AS Font_Type
DisplayScreen = CreateScreen(1024, 720) 'This creates a screen for us. Think of it as DisplayScreen = _NEWIMAGE(1024,720,32)
SetScreen DisplayScreen 'This sets the screen we created as the active display. Think of this as SCREEN DisplayScreen
SetBackground DisplayScreen, SkyBlue
SetBorder DisplayScreen, 5, Silver
MainWindow = CreateWindow(DisplayScreen, 100, 100, 400, 400)
'Marble = _LOADIMAGE("marble.jpg", 32)
SetBackground MainWindow, Violet
SetBorder MainWindow, 5, Gold
MainWindowCaption = CreateCaption(MainWindow, 0, 0, 400, 30)
SetBorder MainWindowCaption, 5, Gold
SetText MainWindowCaption, "A Window"
UpdateScreen
Display = Windows(0).Defined 'the active screen when we want to draw to
DrawWindow Display
lf$ = Windows(Display).LinksFrom
CASE 1 'it's a whole window which we want to display _PUTIMAGE (Windows
(n
).Left
, Windows
(n
).Top
)-STEP(Windows
(n
).Wide
, Windows
(n
).High
), Windows
(n
).Defined
CASE 2 'it's a caption which we want to display 'copy/paste from the window code here later.
Windows
(num
).Border.
Width = Wide
Windows
(num
).Border.
Color = Kolor
DrawWindow num 'We need to redraw the window
Captions
(num
).Border.
Width = Wide
Captions
(num
).Border.
Color = Kolor
p
= _CV(LONG, Captions
(num
).LinksTo
) Windows(num).Background = Background
DrawWindow num 'We need to redraw the window
Captions(num).Background = Background
p
= _CV(LONG, Captions
(num
).LinksTo
) CASE 1 'It's a window. Windows don't have a text property Captions(num).Text = Text$
p
= _CV(LONG, Captions
(num
).LinksTo
)
FOR i
= 1 TO 100 'only one screen can be active at a time. Windows(i).Visible = False
Windows(i).Active = False
Windows(0).Defined = num
Windows(num).Visible = True
Windows(num).Active = True
Handle
= TempHandle
MOD 100000 w = Windows(Handle).Wide: h = Windows(Handle).High
_DEST Windows
(Handle
).Defined
CASE IS < 0 'it's an image handle which we want to use for the background _PUTIMAGE (0, 0)-(w
, h
), Windows
(Handle
).Background
CASE 0 'we just want a transparent background CASE IS > 0 'it's a color fill background LINE (0, 0)-(w
, h
), Windows
(Handle
).Background
, BF
LINE (0 + i
, 0 + i
)-(w
- i
, h
- i
), Windows
(Handle
).Border.
Color, B
lf$ = Windows(Handle).LinksFrom
CASE 1 'it's a whole window which we want to display _PUTIMAGE (Windows
(n
).Left
, Windows
(n
).Top
)-STEP(Windows
(n
).Wide
, Windows
(n
).High
), Windows
(n
).Defined
CASE 2 'it's a caption which we want to display DrawCaption n
x = Captions(n).Left: y = Captions(n).Top
w = Captions(n).Wide: h = Captions(n).High
'SELECT CASE Captions(n).Background
' CASE IS < 0 'it's an image handle which we want to use for the background
' _PUTIMAGE (x, y)-STEP(w, h), Captions(n).Background
' CASE 0 'we just want a transparent background
' CASE IS > 0 'it's a color fill background
' LINE (x, y)-STEP(w, h), Captions(n).Background, BF
'END SELECT
'FOR j = 0 TO Captions(n).Border.Width - 1
' LINE (x + j, y + j)-(w - j, h - j), Captions(n).Border.Color, B
'NEXT
'text$ = _TRIM$(Captions(n).Text)
x = Captions(n).FontHandle
FOR i
= 1 TO 100 'first 100 windows are reserved for screens IF i
> 100 THEN ERROR 5:
PRINT "Program can not have more than 100 screens in memory at a single time!":
END CreateScreen = 100000 + i
Windows(i).Top = 0
Windows(i).Left = 0
Windows(i).Wide = x
Windows(i).High = y
Windows(i).LinksTo = ""
Windows(i).LinksFrom = ""
Windows(i).Visible = False
Windows(i).Active = False
FOR i
= 101 TO WindowCount
'check for an open spot where we may have freed a past window
'windows 1 to 100 are for screens which we might create (they're basically full screen windows)
IF i
> WindowCount
THEN WindowCount
= i
Windows
(i
).Defined
= _NEWIMAGE(Wide
, High
, 32) Windows
(i
).LinksTo
= _MK$(LONG, Anchor
MOD 100000) 'This is what we link to Windows(i).LinksFrom = "" 'and nothing is linking to a new window, at the moment
Windows
(Anchor
MOD 100000).LinksFrom
= _TRIM$(Windows
(Anchor
MOD 100000).LinksFrom
) + _MK$(LONG, 100000 + i
) 'And this lets the other window know we're linked to it. Windows(i).Top = Top
Windows(i).Left = Left
Windows(i).Wide = Wide
Windows(i).High = High
Windows(i).Visible = True 'we default to being visible and active
Windows(i).Active = True
Windows
(i
).Border.
Width = 0 Windows
(i
).Border.
Color = 0 CreateWindow = 100000 + i
FOR i
= 1 TO CaptionCount
'check for an open spot where we may have freed a past window
'windows 1 to 100 are for screens which we might create (they're basically full screen windows)
IF i
> CaptionCount
THEN CaptionCount
= i
Captions
(i
).Defined
= _NEWIMAGE(Wide
, High
, 32) Captions
(i
).LinksTo
= _MK$(LONG, Anchor
) 'This is what we link to CASE 1 'we're linking this to a window Windows
(Anchor
MOD 100000).LinksFrom
= _TRIM$(Windows
(Anchor
MOD 100000).LinksFrom
) + _MK$(LONG, 200000 + i
) DrawWindow Anchor
Captions(i).Top = Top
Captions(i).Left = Left
Captions(i).Wide = Wide
Captions(i).High = High
Captions(i).Visible = True 'we default to being visible and active
Captions(i).Active = True
Captions
(i
).Border.
Width = 0 Captions
(i
).Border.
Color = 0 Captions(i).Background = Black 'default to a solid black background
Captions(i).FontHandle = 16
Captions(i).FontColor = White
Captions(i).FontBackground = 0
Captions(i).Text = ""
CreateCaption = 200000 + i