Liberty BASIC Community Forum
« Problems with Graphicbox »

Welcome Guest. Please Login or Register.
Jan 22nd, 2018, 6:09pm


Rules|Home|Help|Search|Recent Posts|Notification


« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Problems with Graphicbox  (Read 141 times)
Angelo2449
New Member
Image


member is offline

Avatar




PM


Posts: 22
xx Problems with Graphicbox
« Thread started on: Nov 29th, 2017, 4:34pm »

Hi guys,
I realize a drawing in the graphicbox, if I minimize the window, its contents disappear.
What can I do to keep it?
Thank you.
User IP Logged

tsh73
Board Moderator

member is offline

Avatar

Anatoly (real name)


PM

Gender: Male
Posts: 1732
xx Re: Problems with Graphicbox
« Reply #1 on: Nov 30th, 2017, 12:45am »

Read help on "flush"
(in Graphic commands)

EDIT
Code:
nomainwin
WindowWidth = 500
open "no FLUSH - contents DISAPPEAR on minimise/restore" for graphics as #gr
#gr "trapclose [1]"
#gr "down"
#gr "home; circle 100"
wait

[1]
close #gr

open "FLUSH - contents STAY on minimise/restore" for graphics as #gr
#gr "trapclose [2]"
#gr "down"
#gr "home; circle 100"
#gr "FLUSH" 'Makes all the difference!
wait

[2]
close #gr

end

 
« Last Edit: Nov 30th, 2017, 12:52am by tsh73 » User IP Logged

damned Dog in the Manger
Angelo2449
New Member
Image


member is offline

Avatar




PM


Posts: 22
xx Re: Problems with Graphicbox
« Reply #2 on: Nov 30th, 2017, 2:04pm »

Hi Gender,
I have this code :
Code:
    graphicbox #graph.gra, 30, 10, 900, 660
    ...........
    ...........
    open "Grafica - Restituzione del Rilievo" for window as #graph
    #graph, "font courier_new 10 16 bold"
    #graph, "trapclose [quit.GraphUno]"
    #graph.gra, "enable"
    ...........
    ...........
    #graph.gra, "FLUSH"
    ...........
    ...........
    wait
 

if I minimize the window, the graph in> gra.gra < disappears
Thank You
User IP Logged

tsh73
Board Moderator

member is offline

Avatar

Anatoly (real name)


PM

Gender: Male
Posts: 1732
xx Re: Problems with Graphicbox
« Reply #3 on: Nov 30th, 2017, 2:14pm »

make sure your program really executes line with FLUSH.
Like, add NOTICE
Code:
#graph.gra, "FLUSH"
NOTICE "just made FLUSH"
 
User IP Logged

damned Dog in the Manger
Angelo2449
New Member
Image


member is offline

Avatar




PM


Posts: 22
xx Re: Problems with Graphicbox
« Reply #4 on: Nov 30th, 2017, 11:15pm »

Thanks Gender,
now my graphics work!
I made a trivial mistake or rather I made an omission, I did not insert 'flush' at every variation of the graphics!
It is never too late to learn!
I have another question, I can ask here or it is better to do another tread?
Thank you.
User IP Logged

tsh73
Board Moderator

member is offline

Avatar

Anatoly (real name)


PM

Gender: Male
Posts: 1732
xx Re: Problems with Graphicbox
« Reply #5 on: Dec 1st, 2017, 12:26am »

New question better be asked in another thread.
So thread title stays relevant.
User IP Logged

damned Dog in the Manger
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Rules|Home|Help|Search|Recent Posts|Notification

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls