OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Keeping a push button pressed

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
nvgishere
General User
General User


Joined: 10 Feb 2010
Posts: 38

PostPosted: Thu Mar 25, 2010 11:03 pm    Post subject: Keeping a push button pressed Reply with quote

Hi

I have a macro "RUN" attached to the push button "RUN".
This macro "RUN" processes data for 15 minutes.

I want to keep this push button pressed while the macro "RUN" is in process.

So that no one is enabled to press the push button
while the macro is processing the data.

Can anyone help me in getting this done?
Back to top
View user's profile Send private message
nvgishere
General User
General User


Joined: 10 Feb 2010
Posts: 38

PostPosted: Sun Mar 28, 2010 9:18 am    Post subject: Reply with quote

Can the properties of buttons be activated / controlled using macros?

To show the activity with which a pushbutton is related,
can a macro be written to keep the pushbutton "low" ? ie can it be kept pressed?
Back to top
View user's profile Send private message
hanya
Super User
Super User


Joined: 04 May 2005
Posts: 543
Location: Japan

PostPosted: Sun Mar 28, 2010 9:26 am    Post subject: Reply with quote

Set Toggle property of the button model to True. And you can get the state of the button from State property, not pushed: 0 and 1 for pushed.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group