Indigo Rose Software
  #1  
Old 10-30-2006
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,059
Example: Objects Stay Put - Intrigued

I thought I would create a very basic example of how to not only have image (and Hotspot for this example) objects "stay put" where you want them when the Window of the application is resized, but also I have incorporated into this example the guideline that the application window not be allowed any less of a width that 595 (which will keep it so that the three buttons (Image and Hotspot objects) be shown at all times. No limits are set on the Height of the project.

Here is the exported project file:

http://www.amsuser.com/ams/examples/...-Intrigued.apz
__________________
Intrigued
www.amsuser.com
Reply With Quote
  #2  
Old 12-04-2006
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,059
Update (took place back when I posted, but thought I should update this post):

I have set a Height limit. so that the window still shows the objects on the Page.
__________________
Intrigued
www.amsuser.com
Reply With Quote
  #3  
Old 12-06-2006
Daniel TM's Avatar
Daniel TM Daniel TM is offline
Forum Member
 
Join Date: Oct 2005
Location: Brazil - Belo Horizonte
Posts: 118
Hi Intrigued, As soon as I saw that the window kept on redrawing itself only once it's size would reach the minimum size that you decided I knew it like that! I went directly to the On Size event of the page and I took away those final if statements and I added a function to the On Preload event that determines the minimum width and heigh, I couldve put maximum width and height restrictions too but since you didn't, I didn't. Here's an update, check it out.
Note:
Min.X = Minimum width
Min.Y = Minimum height
Attached Files
File Type: apz ObjectsStayPut-AMS6-Intrigued.apz (24.7 KB, 152 views)
Reply With Quote
  #4  
Old 12-06-2006
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,059
Good deal Daniel_TM. I'm glad that code helped get the "coding juices" flowing.

__________________
Intrigued
www.amsuser.com
Reply With Quote
  #5  
Old 12-07-2006
Daniel TM's Avatar
Daniel TM Daniel TM is offline
Forum Member
 
Join Date: Oct 2005
Location: Brazil - Belo Horizonte
Posts: 118
I got that function from the help documentation, you can also configure the maximum width and height by using Max.X and Max.Y the same way I used Min.X and Min.Y.
Reply With Quote
  #6  
Old 12-11-2006
Daniel TM's Avatar
Daniel TM Daniel TM is offline
Forum Member
 
Join Date: Oct 2005
Location: Brazil - Belo Horizonte
Posts: 118
I would like to correct something I said myself, it's not Min.X, Min.Y, Max.X nor Max.Y, it's MinX, MinY, MaxX and MaxY. Sorry bout that.
Reply With Quote
  #7  
Old 12-11-2006
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,059
Well, time for your wet noodle whipping. You know the rules here.

__________________
Intrigued
www.amsuser.com
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting objects to stay hidden on startup ams6 Rain AutoPlay Media Studio 6.0 7 11-10-2006 04:14 AM
ObjectsStayPut - AMS6 - Resizing - Intrigued Intrigued AutoPlay Media Studio 6.0 3 11-09-2006 05:09 PM
Function: Show/Hide All Objects of a Specific Type Brett AutoPlay Media Studio 5.0 Examples 0 05-10-2004 03:29 PM
Applying Changes to Multiple Objects Desmond AutoPlay Media Studio 5.0 Examples 0 10-03-2003 04:07 PM


All times are GMT -6. The time now is 05:31 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software