|
#1
|
||||
|
||||
|
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 |
|
#2
|
||||
|
||||
|
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. |
|
#3
|
||||
|
||||
|
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 |
|
#4
|
||||
|
||||
|
Good deal Daniel_TM. I'm glad that code helped get the "coding juices" flowing.
|
|
#5
|
||||
|
||||
|
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.
|
|
#6
|
||||
|
||||
|
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.
|
|
#7
|
||||
|
||||
|
Well, time for your wet noodle whipping. You know the rules here.
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
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.








Linear Mode

