PDA

View Full Version : Example: Objects Stay Put - Intrigued


Intrigued
10-30-2006, 06:31 PM
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/ObjectsStayPut-AMS6-Intrigued.apz

Intrigued
12-04-2006, 08:50 PM
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.

Daniel TM
12-06-2006, 01:27 PM
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

Intrigued
12-06-2006, 01:42 PM
Good deal Daniel_TM. I'm glad that code helped get the "coding juices" flowing.

:yes

Daniel TM
12-07-2006, 06:10 AM
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.

Daniel TM
12-11-2006, 02:06 PM
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.

Intrigued
12-11-2006, 03:43 PM
Well, time for your wet noodle whipping. You know the rules here.

:p