DeMoN wrote:
1) GIF images
I'd like to let users import gif images but i want to leave the gif's transparancy at default. So if a user imports a fully transparant image , the image should be transparant in opus aswell.
If the GIF file has been correctly saved with a palette transparency, this transparency will be preserved when the image is shown. However, please ensure that you have not enabled the 'Transparent' checkbox in the Image properties as this will override the palette transparency and cause the image background to be shown.
DeMoN wrote:
2) Top and bottom
I have a script that generates clones from an image each time a users presses a button. Problem is that the newer created clones will be behind the older ones. Is there a function or a method to have the newer created clones above the older ones?
I have tested this in Opus Pro 2.81 and Opus Pro 04 (4.21) and the clone always appears in front of the original object. The help file confirms this behaviour:
Opus Help File wrote:
The clone will appear on the page over the top of the original Object
If you want the clone to appear BEHIND the source object, you will need to use something like the following:
Code:
clone = Image.CloneObject()
clone.SetLayer(-1)
DeMoN wrote:
3) Database refresh + page refresh
Im loading all sort of products from a database and let users select them through scrollboxes. Problem is that i have created features that will allow them to create , edit and delete the products. Allthough this works perfectly as i can see them changed in my access database, it wont show up on opus while running. How can i refresh the database while my pub is running and how do i refresh the page properly so the scrollbox will be refreshed properly too?
The easiest way to achieve this would be to use a script function for the original database query, then simply call this function at the end of the create, edit and delete actions. Ideally, these actions would also be script functions.
I have provided below a link to a publication which uses script functions to search the database, show records and display the next and previous 5 records. You will see that the SearchDB(), Next() and Previous() functions all contain a call to the ShowRecords() function to refresh the record set.
I hope this helps. Please do not hesitate to contact me if you have any further queries.
Kind regards,