Graphics not showing on window
Graphics not showing on window
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
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
Do not draw directly on the window. This is no longer supported by OS. Use a CanvasGadget,
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: Graphics not showing on window
We'd need to see your code, otherwise we can only assume it's an error you've made.stevylake wrote:Occasionally a graphic doesn't show on a window, particularly small dialog windows
Re: Graphics not showing on window
I am not drawing as such. It is a normal window with an image gadget.mk-soft wrote:Do not draw directly on the window. This is no longer supported by OS. Use a CanvasGadget,
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Re: Graphics not showing on window
I posted an image telling how to do it but it won't show 

BERESHEIT
Re: Graphics not showing on window
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
I am glad you are back active as usual to correct the behavior of some members and to correct some false answers about Windows

Egypt my love
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Re: Graphics not showing on window
@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
Stay tuned
With the new movement of Fred and Co. we will be definitely in need for you and the other talented forum members
Egypt my love
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Re: Graphics not showing on window
More specifically...netmaestro wrote:...what is the new movement of fred & co?
> PureBasic and increased varieties of CPU (new blog post)
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel 

Re: Graphics not showing on window
Why were you gone? Did you slip and fall in the BERESHEIT?netmaestro wrote:I've been gone, what is the new movement of fred & co?

- It was too lonely at the top.
System : PB 6.21(x64) and Win 11 Pro (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
System : PB 6.21(x64) and Win 11 Pro (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Re: Graphics not showing on window
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 

BERESHEIT
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Re: Graphics not showing on window
I've been waiting for this to emerge, it was only a matter of time. Excellent direction chosen by the team!Fred wrote: For the past 8 months, we decided to focus on a new high-level back-end for PureBasic: the C language.

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