Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 00:26 19 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : GUI SpinBox leaving outline between page switching

Author Message
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1964
Posted: 08:51am 27 Apr 2021
Copy link to clipboard 
Print this post

Just running the latest Firmware V5.07.00b9 on the H7, I believe this is using the latest GUI changes made by Geoff to MM.Basic, apology if I have this wrong.

Every GUI control works perfectly except for the GUI SpinBox, this control leaves the outline of the UP control (triangle) on the screen between page changes. Have I missed a change to this control or is there a bug with the SpinBox?

This is a quick demo of the problem I have, it simply switches twice between the SpinBox GUI Page and a Page with a GUI Button, pauses 2 seconds, then exits    


Option DEFAULT NONE
 Option EXPLICIT
 CLS

 Const Dro_1_CAL_Sbox=67
 Const Dro_2_CAL_Sbox=68
 Const BTOptical_CAL=50
 Dim integer ButTop,But_H,But_W,ButLeft,ButSpace
 
 ButTop=mm.Vres/1.2
 But_H=mm.Vres/6.8
 But_W=mm.Hres/6
 ButLeft=2
 ButSpace=But_W/40

 GUI SETUP 1
 Font 5
 GUI SPINBOX Dro_2_CAL_Sbox,mm.Hres/5,mm.Vres/20,But_W*3.2,But_H*1.2,RGB(WHITE),RGB(BLUE),.00005,0,3
 GUI SPINBOX Dro_1_CAL_Sbox,mm.Hres/3,mm.Vres/3,But_W*3.2,But_H*1.2,RGB(WHITE),RGB(BLUE),.00005,0,3

 GUI SETUP 2
 Font 4
 GUI Button BTOptical_CAL,"Calibrate Fence~~Home Sensor",mm.Hres/8.4,mm.Vres/1.5,But_W*2.5,But_H*2,RGB(WHITE),RGB(BLUE)
 
 Page 1
 pause 2000
 Page 2
 pause 2000
 Page 1
 pause 2000
 Page 2
 pause 2000
 CLS  
END


Mike.
.
EDIT Noticed GUI Button is line wrapping in the Code Box.
.
Edited 2021-04-27 18:54 by KeepIS
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1964
Posted: 08:30pm 27 Apr 2021
Copy link to clipboard 
Print this post

  matherp said  ArmmiteH7V5.07.00b10.zip

Fixes bug in triangle drawing routine that was impacting gui object deletion


Thanks, I use almost every GUI in MM.basic in the main program and everything now runs perfectly.

Mike.
Edited 2021-04-28 08:32 by KeepIS
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025