UpdateGadget

Just starting out? Need help? Post your questions and find answers here.
User avatar
rndrei
Enthusiast
Enthusiast
Posts: 182
Joined: Thu Dec 28, 2023 9:04 pm

UpdateGadget

Post by rndrei »

How to update Gadget?Is there a type of team like UpdateGadget()?
User avatar
Caronte3D
Addict
Addict
Posts: 1370
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: UpdateGadget

Post by Caronte3D »

What do you mean with: "update"?
Ex: If you want to update a TextGadget, use: SetGadgetText
If you mean another thing explain more :D
User avatar
rndrei
Enthusiast
Enthusiast
Posts: 182
Joined: Thu Dec 28, 2023 9:04 pm

Re: UpdateGadget

Post by rndrei »

I need to update to the Repeat Until cycle!?
User avatar
Mindphazer
Enthusiast
Enthusiast
Posts: 487
Joined: Mon Sep 10, 2012 10:41 am
Location: Savoie

Re: UpdateGadget

Post by Mindphazer »

You need to process the event to have graphical refresh, if that's what you mean.
Use WaitWindowEvent
MacBook Pro 16" M4 Pro - 24 Gb - MacOS 15.4.1 - Iphone 15 Pro Max - iPad at home
...and unfortunately... Windows at work...
User avatar
Demivec
Addict
Addict
Posts: 4281
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: UpdateGadget

Post by Demivec »

rndrei wrote: Thu Apr 10, 2025 1:30 pm I need to update to the Repeat Until cycle!?
Yes.
User avatar
rndrei
Enthusiast
Enthusiast
Posts: 182
Joined: Thu Dec 28, 2023 9:04 pm

Re: UpdateGadget

Post by rndrei »

Mindphazer wrote: Thu Apr 10, 2025 1:59 pm You need to process the event to have graphical refresh, if that's what you mean.
Use WaitWindowEvent
Understood!
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4991
Joined: Sun Apr 12, 2009 6:27 am

Re: UpdateGadget

Post by RASHAD »

Maybe
I am not sure about Linux :)
1- If you want to update the position use "ResizeGadget()"
2- If you want to refresh the look use "HideGadget(?,0)"
Egypt my love
Post Reply