B4J Question Redraw problem before print

Tayfur

Well-Known Member
Licensed User
Longtime User
Hello

I working acouple days with printing.
Printing forms has alot table, list etc.
And I want to re-size & re-location before print.
But. My code not change it.
I think refresh or redraw acitons not complate before print.

I preapre short sample. Label1 & Label2 change left/top/width & heigth.
But never change.
I tried sleep, callsubdelay... I cant solve it. Where is my foulty.
I attached project.
Thanks you for helps.
 

Attachments

  • redraw.zip
    18.6 KB · Views: 294

stevel05

Expert
Licensed User
Longtime User
The Callsubdelayed line should be
B4X:
CallSubDelayed(yzc,"redraw")
CallSubDelayed(yzc,"Printout")

Add the call to Printout to the queue as well so that the redraw completes first.
 
Upvote 0

Tayfur

Well-Known Member
Licensed User
Longtime User
The Callsubdelayed line should be
B4X:
CallSubDelayed(yzc,"redraw")
CallSubDelayed(yzc,"Printout")

Add the call to Printout to the queue as well so that the redraw completes first.

I not add Printout with my trials :)

Thank you for helps @stevel05
 
Upvote 0
Top