Screen Layout with Labels slow

Paulsche

Well-Known Member
Licensed User
Longtime User
Hi, I previously had my program "HB-fuel consumption" with drawstring text and data in written form, since I now work with Auto Scale I drawString exchanged against labels.

With labels is the screen build visible, is much slower.

Is there a way the screen in the background to build,
so that when showing the form that is immediately?
 

Paulsche

Well-Known Member
Licensed User
Longtime User
On the main page are 33 Labels in Transparent Mode.
Enclosed with the program code.

Maybe you have an idea.
 

Paulsche

Well-Known Member
Licensed User
Longtime User
Yes, with Autoscale.

the get-up of the Labels is visible, a little slow,
There is a possibility of accelerating ?
Build in Background ?

Is it the number of labels the Problem ?
 

eww245

Member
Licensed User
I'm not sure if this is the same issue as you have but this what I've noticed.

When a transparent Label or ImageButton, and an Image paints it can be slow at times

What I see is a white flash. This is when having a dark background.

I try to limit the use of any of those controls, and favor DrawString with a calculation to center it, over a Label.

And DrawImage vs. An Image control.

I havent experimented with AutoScale yet to see if DrawString would still be centered, or as close as it can be.

This is what I use for the X location when centering the Date on a form.
It is very close and used on QVGA.

B4X:
 (Form1.Width/2)- (StrLength(Date(Now))*3)
 

Paulsche

Well-Known Member
Licensed User
Longtime User
The problem is only showing the 33 labels.
I already have all the calculations off.

Is there a way to justify the screen to display only if the labels are
finished up ?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…