Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - Form controls
Form controls
 
   NeoOffice Forum Index -> NeoOffice Releases
View previous topic :: View next topic  
Author Message
tays01s
Sentinel


Joined: Jun 06, 2009
Posts: 24

PostPosted: Sun Jun 07, 2009 7:31 am    Post subject: Form controls

I'm new to assigning macros to eg. buttons. The macro works, but how do I get it work at the push of the button. I've specified 'button events' 'key' or 'mouse button' released, but macro doesn't work. The button properties are quite daunting cf Excel.X.

Stephen
Back to top
narf
The Anomaly


Joined: Jan 21, 2007
Posts: 1075

PostPosted: Sun Jun 07, 2009 8:17 am    Post subject:

There is some information on assigning a button to a macro in the following NeoWiki article:

http://neowiki.neooffice.org/index.php/Using_Macros#Assigning_a_Shortcut_Key_to_a_Macro

Do the steps in the NeoWiki article work for you? If not, can you tell us the specific steps you tried and the results you got?

--fran
Back to top
tays01s
Sentinel


Joined: Jun 06, 2009
Posts: 24

PostPosted: Sun Jun 07, 2009 11:57 am    Post subject: Form controls

These were the steps I took:

1. View>Toolbars>Form controls> then added a button' to the Calc sheet.

2. R-clicked Calc expecting to find 'add macro' which there wasn't so clicked 'control>events> and tried adding my macro to both 'button release' and 'mouse button release'. But this achieved nothing.

Stephen
Back to top
narf
The Anomaly


Joined: Jan 21, 2007
Posts: 1075

PostPosted: Sun Jun 07, 2009 12:16 pm    Post subject:

The final step is to quit Design mode by clicking on the little triangle in the top right of the toolbar.

Can you try that and let us know if that allows you to execute the macro that you assigned to the button?

--fran
Back to top
tays01s
Sentinel


Joined: Jun 06, 2009
Posts: 24

PostPosted: Sun Jun 07, 2009 1:27 pm    Post subject: form controls

Started to try that out then had a crash. After the crash the button_macro worked. So I tried again, same problem. When I left (or right) click the button, format handles appears instead of the button being active. Equally, if I close the file, re-open, the button has become active+ macro works, but Right clicking doesn't permit me to change settings.

Incidentally, after clicking the little triange the dialogue expands in size; what should it look like when 'activated'.

Thanks,
Stephen
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Sun Jun 07, 2009 5:44 pm    Post subject: Re: form controls

tays01s wrote:
Started to try that out then had a crash. After the crash the button_macro worked. So I tried again, same problem. When I left (or right) click the button, format handles appears instead of the button being active. Equally, if I close the file, re-open, the button has become active+ macro works, but Right clicking doesn't permit me to change settings.


There are two modes in NeoOffice when working with form controls: design mode and regular mode. I sense that you are trying to do regular mode actions when in design mode and vice versa. So let me explain what you can do in each mode.

Whenin design mode, you can change the form control settings like size, title, macros assigned to it, etc. but the form control will not respond to any mouse or key events. In regular mode, the form control will respond to mouse and key events, but you cannot change any settings.

The mode that you are in when the reopen the file is whatever mode you were in when you saved the file. The idea is that when you are finished editing the settings of form controls, you switch from design mode to regular mode and save the file. Then, when you or anyone else opens the file, they will be in regular mode.

Hope that helps,

Patrick
Back to top
tays01s
Sentinel


Joined: Jun 06, 2009
Posts: 24

PostPosted: Sun Jun 07, 2009 10:39 pm    Post subject: Form controls

Completely correct! This is a v. useful forum.
Thanks,
Stephen
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Releases All times are GMT - 7 Hours
Page 1 of 1

 
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
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.