|
Post by lightcalamar on Apr 2, 2017 0:34:48 GMT -8
On page 124 gdBook widget slider or another e.j progress to be horizontal To be possible rotate and appear vertical? Thanls.
|
|
|
Post by jamesbowman on Apr 3, 2017 11:28:11 GMT -8
Yes, the slider widget is "smart" about its direction, using "w" and "h" to decide orientation:
So a horizontal slider is 200x10:
GD.cmd_slider(16, 16, 200, 10, 0, value, 1023);
and a vertical one is 10x200:
GD.cmd_slider(16, 16, 10, 200, 0, value, 1023);
|
|
|
Post by lightcalamar on Apr 4, 2017 5:44:50 GMT -8
Exactly I look for this, not knowing how to do. Now look good with your code. Before; After; Thanks you James!
|
|