Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 22:26 12 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 : Problem with GUI Displaybox?

Author Message
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1945
Posted: 09:27am 10 May 2019
Copy link to clipboard 
Print this post

ARMmite MMBasic Version 5.05.03 (H7)

Is the a limit to the number of lines in a Displaybox?

After 7, part of 8 is shown, 9 is missing, then ABCD displays.

If more lines are added the lines write past the bottom of the box, but the top remains where it is, so auto centering stops.

Could someone possibility check this for me?

[code]
const A_DBox = 5

dim InfoStr as string

FONT 4
GUI DisplayBox A_DBox,MM.hres/2,MM.Vres/30,MM.HRes/2.2,MM.Vres/1.05,RGB(WHITE),RGB(BLUE)

Infostr="1~2~3~4~5~6~7~8~9~A~B~C~D~E"

CtrlVal(A_DBox) = InfoStr[/code]

NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3308
Posted: 09:27pm 10 May 2019
Copy link to clipboard 
Print this post

There is a limit of 10 lines in the standard code and I assume that Peter retained this in the ARMmite port. This is something that should be documented. I will check the manuals to make sure it is.
Geoff Graham - http://geoffg.net
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1945
Posted: 09:59pm 10 May 2019
Copy link to clipboard 
Print this post

Thanks Geoff.

Mike
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