@@ -130,30 +130,30 @@ func DrawStyleEditControls() {
130130 style = int32 (gui .GetStyle (gui .SCROLLBAR , gui .BORDER_WIDTH ))
131131 gui .Label (rl.Rectangle {555 , 195 , 110 , 10 }, "BORDER_WIDTH" )
132132 gui .Spinner (rl.Rectangle {670 , 190 , 90 , 20 }, "" , & style , 0 , 6 , false )
133- gui .SetStyle (gui .SCROLLBAR , gui .BORDER_WIDTH , int64 (style ))
133+ gui .SetStyle (gui .SCROLLBAR , gui .BORDER_WIDTH , gui . PropertyValue (style ))
134134
135135 style = int32 (gui .GetStyle (gui .SCROLLBAR , gui .ARROWS_SIZE ))
136136 gui .Label (rl.Rectangle {555 , 220 , 110 , 10 }, "ARROWS_SIZE" )
137137 gui .Spinner (rl.Rectangle {670 , 215 , 90 , 20 }, "" , & style , 4 , 14 , false )
138- gui .SetStyle (gui .SCROLLBAR , gui .ARROWS_SIZE , int64 (style ))
138+ gui .SetStyle (gui .SCROLLBAR , gui .ARROWS_SIZE , gui . PropertyValue (style ))
139139
140- style = int32 (gui .GetStyle (gui .SCROLLBAR , gui .SLIDER_PADDING ))
141- gui .Label (rl.Rectangle {555 , 245 , 110 , 10 }, "SLIDER_PADDING " )
140+ style = int32 (gui .GetStyle (gui .SCROLLBAR , gui .SCROLL_PADDING ))
141+ gui .Label (rl.Rectangle {555 , 245 , 110 , 10 }, "SCROLL_PADDING " )
142142 gui .Spinner (rl.Rectangle {670 , 240 , 90 , 20 }, "" , & style , 0 , 14 , false )
143- gui .SetStyle (gui .SCROLLBAR , gui .SLIDER_PADDING , int64 (style ))
143+ gui .SetStyle (gui .SCROLLBAR , gui .SCROLL_PADDING , gui . PropertyValue (style ))
144144
145145 style = boolToint32 (gui .CheckBox (rl.Rectangle {565 , 280 , 20 , 20 }, "ARROWS_VISIBLE" , int32Tobool (int32 (gui .GetStyle (gui .SCROLLBAR , gui .ARROWS_VISIBLE )))))
146- gui .SetStyle (gui .SCROLLBAR , gui .ARROWS_VISIBLE , int64 (style ))
146+ gui .SetStyle (gui .SCROLLBAR , gui .ARROWS_VISIBLE , gui . PropertyValue (style ))
147147
148- style = int32 (gui .GetStyle (gui .SCROLLBAR , gui .SLIDER_PADDING ))
148+ style = int32 (gui .GetStyle (gui .SLIDER , gui .SLIDER_PADDING ))
149149 gui .Label (rl.Rectangle {555 , 325 , 110 , 10 }, "SLIDER_PADDING" )
150150 gui .Spinner (rl.Rectangle {670 , 320 , 90 , 20 }, "" , & style , 0 , 14 , false )
151- gui .SetStyle (gui .SCROLLBAR , gui .SLIDER_PADDING , int64 (style ))
151+ gui .SetStyle (gui .SLIDER , gui .SLIDER_PADDING , gui . PropertyValue (style ))
152152
153- style = int32 (gui .GetStyle (gui .SCROLLBAR , gui .SLIDER_WIDTH ))
153+ style = int32 (gui .GetStyle (gui .SLIDER , gui .SLIDER_WIDTH ))
154154 gui .Label (rl.Rectangle {555 , 350 , 110 , 10 }, "SLIDER_WIDTH" )
155155 gui .Spinner (rl.Rectangle {670 , 345 , 90 , 20 }, "" , & style , 2 , 100 , false )
156- gui .SetStyle (gui .SCROLLBAR , gui .SLIDER_WIDTH , int64 (style ))
156+ gui .SetStyle (gui .SLIDER , gui .SLIDER_WIDTH , gui . PropertyValue (style ))
157157
158158 var text string
159159 if gui .GetStyle (gui .LISTVIEW , gui .SCROLLBAR_SIDE ) == gui .SCROLLBAR_LEFT_SIDE {
@@ -162,7 +162,7 @@ func DrawStyleEditControls() {
162162 text = "SCROLLBAR: RIGHT"
163163 }
164164 style = boolToint32 (gui .Toggle (rl.Rectangle {560 , 110 , 200 , 35 }, text , int32Tobool (int32 (gui .GetStyle (gui .LISTVIEW , gui .SCROLLBAR_SIDE )))))
165- gui .SetStyle (gui .LISTVIEW , gui .SCROLLBAR_SIDE , int64 (style ))
165+ gui .SetStyle (gui .LISTVIEW , gui .SCROLLBAR_SIDE , gui . PropertyValue (style ))
166166 //----------------------------------------------------------
167167
168168 // ScrollBar style controls
@@ -172,12 +172,12 @@ func DrawStyleEditControls() {
172172 style = int32 (gui .GetStyle (gui .LISTVIEW , gui .SCROLLBAR_WIDTH ))
173173 gui .Label (rl.Rectangle {555 , 35 , 110 , 10 }, "SCROLLBAR_WIDTH" )
174174 gui .Spinner (rl.Rectangle {670 , 30 , 90 , 20 }, "" , & style , 6 , 30 , false )
175- gui .SetStyle (gui .LISTVIEW , gui .SCROLLBAR_WIDTH , int64 (style ))
175+ gui .SetStyle (gui .LISTVIEW , gui .SCROLLBAR_WIDTH , gui . PropertyValue (style ))
176176
177- style = int32 (gui .GetStyle (gui .DEFAULT , gui .BORDER_WIDTH ))
177+ style = int32 (gui .GetStyle (gui .LISTVIEW , gui .BORDER_WIDTH ))
178178 gui .Label (rl.Rectangle {555 , 60 , 110 , 10 }, "BORDER_WIDTH" )
179179 gui .Spinner (rl.Rectangle {670 , 55 , 90 , 20 }, "" , & style , 0 , 20 , false )
180- gui .SetStyle (gui .DEFAULT , gui .BORDER_WIDTH , int64 (style ))
180+ gui .SetStyle (gui .LISTVIEW , gui .BORDER_WIDTH , gui . PropertyValue (style ))
181181 //----------------------------------------------------------
182182}
183183
0 commit comments