Page 1 of 2

Graphics not showing on window

Posted: Thu Mar 25, 2021 11:28 pm
by stevylake
Occasionally a graphic doesn't show on a window, particularly small dialog windows, because I think it the window creation doesn't appear to have time to process the image.

I have tried putting a delay in the code but this doesn't work.

Is there command I can use to give the window time to fully draw?

Thanks

Re: Graphics not showing on window

Posted: Thu Mar 25, 2021 11:49 pm
by mk-soft
Do not draw directly on the window. This is no longer supported by OS. Use a CanvasGadget,

Re: Graphics not showing on window

Posted: Thu Mar 25, 2021 11:57 pm
by BarryG
stevylake wrote:Occasionally a graphic doesn't show on a window, particularly small dialog windows
We'd need to see your code, otherwise we can only assume it's an error you've made.

Re: Graphics not showing on window

Posted: Thu Mar 25, 2021 11:58 pm
by stevylake
mk-soft wrote:Do not draw directly on the window. This is no longer supported by OS. Use a CanvasGadget,
I am not drawing as such. It is a normal window with an image gadget.

Re: Graphics not showing on window

Posted: Thu Mar 25, 2021 11:59 pm
by RASHAD
Can you post any workable snippet so we can help ?

Re: Graphics not showing on window

Posted: Fri Mar 26, 2021 1:46 am
by netmaestro
I posted an image telling how to do it but it won't show :shock:

Re: Graphics not showing on window

Posted: Fri Mar 26, 2021 2:17 am
by RASHAD
Hi NM
I am glad you are back active as usual to correct the behavior of some members and to correct some false answers about Windows :)

Re: Graphics not showing on window

Posted: Fri Mar 26, 2021 4:16 am
by netmaestro
Always glad to see my friend RASHAD on the boards!

Re: Graphics not showing on window

Posted: Fri Mar 26, 2021 4:50 am
by RASHAD
@NM
Stay tuned
With the new movement of Fred and Co. we will be definitely in need for you and the other talented forum members

Re: Graphics not showing on window

Posted: Fri Mar 26, 2021 5:10 am
by netmaestro
I've been gone, what is the new movement of fred & co?

Re: Graphics not showing on window

Posted: Fri Mar 26, 2021 5:24 am
by RASHAD

Re: Graphics not showing on window

Posted: Fri Mar 26, 2021 5:40 am
by TI-994A
netmaestro wrote:...what is the new movement of fred & co?
More specifically...

> PureBasic and increased varieties of CPU (new blog post)

Re: Graphics not showing on window

Posted: Fri Mar 26, 2021 1:56 pm
by blueb
netmaestro wrote:I've been gone, what is the new movement of fred & co?
Why were you gone? Did you slip and fall in the BERESHEIT? :mrgreen:

Re: Graphics not showing on window

Posted: Fri Mar 26, 2021 6:05 pm
by netmaestro
Too ill to get off the couch for six months, but I'm on the mend now so I can troll all you guys again :twisted:

Re: Graphics not showing on window

Posted: Fri Mar 26, 2021 8:11 pm
by netmaestro
Fred wrote: For the past 8 months, we decided to focus on a new high-level back-end for PureBasic: the C language.
I've been waiting for this to emerge, it was only a matter of time. Excellent direction chosen by the team! :idea:

PS. You scared the crap out of me RASHAD I thought maybe Fred had gone to live with the pygmies or something!