On Tue, 2012-04-10 at 23:12 -0700, avamk wrote:
It looks amazing now, and the functionality is great. I am especially glad
that it will work in Linux, Mac, and Windows!
Were you going to write an explanation for the code, or just the form?
Either way, if you can start a draft, I can help word smith it (probably by
asking you questions about it).
I think this is so useful, perhaps it can be integrated into the standard
LibreOffice Base macro set???
Not likely - it's too specific to a particular use case.
Ok - so I put a little time into this today, the updated ODB file once
In the basic script did a little refactoring, so it is not quite as ugly
as it was and added the ability to save the image control display
settings into the database record, per image link, and then decode that
and set the image control appropriately as you move through the record
Three things are left un-done and maybe they should be, as something to
be added by the final user:
1 - when a new record is created, if the user clicks on an image control
setting (scale mode / bckground color) the values are encoded and
written to the record in memory, since the image link is not a required
field the user could store this, which doesn't really make a lot of
2 - When the saved image control settings are read back the image
control is updated, but not the displayed value for the three scale mode
checkbox controls or the background color list box.
3 - Setting the image control background to Transparent just doesn't
work - don't now why, setting the value to EMPTY should equal 'Default'
and that should be Transparent, IIRC... but maybe someone can figure
Also - changed the UI of the form a little.
- The datacontrol (textbox) for the stored image link is again
displayed, but as read only. You still use the File Selector to update
Guess that's it really then for the basic script stuff.
So the hard part, for me at least, is left which is explaining how this
I've got a fair bit of time today, so can work on that - any help with
that is always welcome.
Last but not least - Drag n Drop - you know we could add that to the
form. It requires diving a bit deeper into the API, as one needs to
create runtime listeners for events (not the same as filling in slots no
the control property editor at design time), not today - but it is
something that can be done with scripting also.
View this message in context:
Sent from the Users mailing list archive at Nabble.com.
For unsubscribe instructions e-mail to: firstname.lastname@example.org
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
Impressum (Legal Info)
: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (MPLv2
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our trademark policy