Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Programming
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Logan" data-source="post: 223159"><p>For my quick simple example, here's the source</p><p></p><p>I created the static text that contains the text you read. In VB this object was called Labels, but the difference is minor enough I'm not really concerned. The properties closely resemble VB also.</p><p></p><p>object Timer1, with a behavior property tweak of 500 period (default: 1000)</p><p>(As per VB, this object property was called Timer1.interval, they changed it to period)</p><p></p><p>(1000 represents the delay before it runs the code, so every 1000ms (1 second) it would run the given event)</p><p></p><p>I created a Progress Bar action. progressbar1 kept it's default values, where justlike VB you have minimum and maximum to set your range of the progress, and also value which is it's current value.</p><p></p><p>The code for Timer1's Action_Sub is:</p><p>[code]</p><p> progressbar1.Value = progressbar1.Value + 5</p><p> if progressbar1.value = 100 then</p><p> progressbar1.value = 0</p><p> end if</p><p>[/code]</p><p></p><p>So what does it do? it simply makes the progress bar progress every half a second by 5%. If the progress gets to 100% it resets it to 0%.</p></blockquote><p></p>
[QUOTE="Logan, post: 223159"] For my quick simple example, here's the source I created the static text that contains the text you read. In VB this object was called Labels, but the difference is minor enough I'm not really concerned. The properties closely resemble VB also. object Timer1, with a behavior property tweak of 500 period (default: 1000) (As per VB, this object property was called Timer1.interval, they changed it to period) (1000 represents the delay before it runs the code, so every 1000ms (1 second) it would run the given event) I created a Progress Bar action. progressbar1 kept it's default values, where justlike VB you have minimum and maximum to set your range of the progress, and also value which is it's current value. The code for Timer1's Action_Sub is: [code] progressbar1.Value = progressbar1.Value + 5 if progressbar1.value = 100 then progressbar1.value = 0 end if [/code] So what does it do? it simply makes the progress bar progress every half a second by 5%. If the progress gets to 100% it resets it to 0%. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Programming
Top