Bryan1
 Guru
 Joined: 22/02/2006 Location: AustraliaPosts: 1900 |
| Posted: 02:35am 05 May 2026 |
Copy link to clipboard |
 Print this post |
|
Ok next bit of fun Working off the Advanced Graphics Manual example got the radio button working but it just goes to a blank screen
OPTION EXPLICIT OPTION DEFAULT NONE option console serial Colour RGB(white), rgb (black) const X_position = 1, X_goleft = 2, X_goright = 3, X_boundryleft = 4 const X_boundryright = 5, Y_position = 6, Y_goin = 7, Y_goout = 8 const Y_boundryin = 9, Y_boundryout = 10 Const Z_position = 9, Z_goup = 10, Z_godown = 11, Z1 = 24 const Z_boundaryup = 12, Z_boundarydown = 13, X1 = 22, Y1 = 23 const AENABLE = 14, XSTEP = 15, XDIR = 16, YSTEP = 17, YDIR = 18 const ZSTEP = 19, ZDIR = 20, PAGE_1TITLE = 21, ysetup = 23, Z0 = 35 const page_1 = 27, xsetup = 25, zsetup = 26, ver = 32, X0 = 33 const page_2 = 28, page_3 = 29, page_4 = 30, page_6 = 31, Y0 = 34 cls backlight 50
font 1,2 : gui caption PAGE_1TITLE, "MMBasic Surface Grinder", 70, 20 gui caption ver, " Version 0.001", 100, 40 GUI radio X1,"X Axis", 350, 160, 10, rgb(red) gui radio Y1,"Y Axis", 350, 210, 10, rgb(red) gui radio Z1,"Z Axis", 350, 260, 10, rgb(red) gui displaybox X_position, 60, 90, 140, 30, rgb(white) ctrlval(1) = "0.000"'Str$(Peek(stepper x),-4,4) gui button X0,"X",0,80,50,50, rgb(white) gui displaybox Y_position, 60, 130, 140,30, rgb(white) ctrlval(6) = "0.000" ' Str$(Peek(stepper y),-4,4) gui button Y0, "Y", 0,120,50,50, rgb(white) gui displaybox Z_position, 60, 170, 140, 30, rgb(white) ctrlval(9) = "0.000" ' Str$(Peek(stepper z),-4,4)) gui button Z0, "Z", 0, 160, 50, 50, rgb(white) gui page 1, 2, 3, 4 gui interrupt TOUCHDOWN
do
loop
sub TOUCHDOWN
if touch(ref) = 22 then GUI page 2 'X1
if touch(ref) = 23 then gui page 3 'Y1
if touch(ref) = 24 then gui page 4 'Z1 end sub gui setup 2 font 1,2 gui caption xsetup,"X Axis Config",60,20,, rgb(green) Gui setup 3 font 1,2 Gui caption ysetup,"Y Axis Config",60,20,, rgb(green) gui setup 4 font 1,2 gui caption zsetup,"Z Axis Config",60,20,, rgb(green)
It has me beat why this isn't working |