Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 6:43 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Advanced scripts + bugs...
PostPosted: December 14th, 2004, 2:08 pm 
Offline

Joined: November 3rd, 2004, 11:08 am
Posts: 14
Hey everyone i'm having some problems with my publication again...

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.

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?

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?

Many thanks.
Kevin


For this message DeMoN has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Advanced scripts + bugs...
PostPosted: December 14th, 2004, 3:29 pm 
Offline

Joined: October 25th, 2004, 12:27 pm
Posts: 526
Location: Digital Workshop
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,


You do not have the required permissions to view the files attached to this post.

_________________
Robin Garrett
Digital Workshop Technical Support


For this message Robin Garrett has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: December 16th, 2004, 12:02 pm 
Offline

Joined: October 25th, 2004, 1:03 pm
Posts: 74
Location: Sydney Australia
I too have found transparent Gifs to be a frequent problem. It seems to depend on how long Opus has been running for (design time). Closing and opening Opus again fixes it for a while. It also effects the alpha channel in 32 bit PNG's.


For this message SWAN has been thanked by : mackavi


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 75 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group