Discussion forum about PANORAMIC language
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Discussion forum about PANORAMIC language

Mac, Windows & Android application development with PANORAMIC language
 
HomeHome  SearchSearch  Latest imagesLatest images  RegisterRegister  Log in  
Latest topics
» What happened with the panoramic language ?
by Wed Jan 03, 2024 4:09 pm

» Hello world.
by Wed May 09, 2018 11:53 pm

» Biomorphes de PICKOVER
by Sun Jun 18, 2017 2:33 am

» In less than 10 lines of code
by Fri Jun 16, 2017 5:03 am

» Effect Dopler
by Fri Jun 16, 2017 3:29 am

» SuperEllipse
by Wed Jun 14, 2017 4:01 am

» Plants
by Wed Jun 14, 2017 3:38 am

» Mira's attractor
by Wed Jun 14, 2017 3:30 am

» Triangle of Sierpinski
by Wed Jun 14, 2017 3:22 am

» Esthétique polaire
by Wed Jun 14, 2017 3:16 am

» Butterfly effect : Lorenz equations
by Wed Jun 14, 2017 3:08 am

» Collision detection
by Tue Jun 13, 2017 5:09 am

» The Bees Laline Paull Epub Books
by Mon Oct 10, 2016 8:58 pm

» PANORAMIC for Mac OSX 10 is available
by Tue Aug 09, 2016 6:08 pm

» ide
by Sat Jul 16, 2016 12:27 am

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

 

 How to use progress_bar...

Go down 
2 posters
AuthorMessage
Sbleck




Number of posts : 4
Registration date : 2009-07-14

How to use progress_bar... Empty
PostSubject: How to use progress_bar...   How to use progress_bar... EmptyTue Jul 14, 2009 11:51 pm

Hi,

Here is a sample I made right now, to check one of the graphical features of Panoramic:

Code:

label quit, increment, decrement

sound 5
file_load 5,"c:\windows\media\ding.wav"

left 0,223
top 0,182
width 0,550
height 0,131
caption 0,"Testing progress bar..."
 
progress_bar 1
left 1,24
top 1,25
width 1,210
height 1,35
min 1,0
max 1,100

button 2
left 2,448
top 2,32
caption 2,"&Exit"
on_click 2,quit

button 3
left 3,349
top 3,32
caption 3,"&Add"
on_click 3,increment

button 4
left 4,266
top 4,32
caption 4,"&Minus"
on_click 4,decrement

inactive 4

end

quit:
terminate
return

increment:
if position(1)<100
  position 1, position(1)+1
  active 3
  active 4
else
  play 5
  inactive 3
end_if
return

decrement:
if position(1)>0
  position 1, position(1)-1
  active 3
  active 4
else
  play 5
  inactive 4
end_if
return


It´s fully functional. I´ve used other commands too to demonstrate some usability by activating/inactivating buttons when some conditions are met, also.

Rgds,
Sbleck
Back to top Go down
Jack
Admin
Jack


Number of posts : 99
Registration date : 2007-07-01

How to use progress_bar... Empty
PostSubject: Re: How to use progress_bar...   How to use progress_bar... EmptySun Jul 19, 2009 1:15 pm

Thank you for your contribution.
Back to top Go down
https://panoramic.forumotion.com
Jack
Admin
Jack


Number of posts : 99
Registration date : 2007-07-01

How to use progress_bar... Empty
PostSubject: Re: How to use progress_bar...   How to use progress_bar... EmptyThu Jun 24, 2010 9:47 pm

Sorry mtpl, but your message has no relationship at all with PANORAMIC and I lock the topic.
Back to top Go down
https://panoramic.forumotion.com
Sponsored content





How to use progress_bar... Empty
PostSubject: Re: How to use progress_bar...   How to use progress_bar... Empty

Back to top Go down
 
How to use progress_bar...
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Discussion forum about PANORAMIC language :: Panoramic for Windows :: Source code (snippets)-
Jump to: