Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » While loop, sleep
Re: While loop, sleep [message #60254 is a reply to message #60253] Thu, 26 October 2023 09:03 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3443
Registered: August 2008
Senior Veteran
Hi Sniffgriff

Waiting for a button click is very simple, and you don't have to do any looping.
There is a very clear example in Examples/Button.
The program waits, but without spending CPU, and when you click on a button, a text is changed.
You can replace that action with whatever you want.


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Java Script
Next Topic: How do I write string_view to Cout() without copying to a String?
Goto Forum:
  


Current Time: Sat Aug 23 20:01:28 CEST 2025

Total time taken to generate the page: 0.03553 seconds