PDA

View Full Version : Quick one...



rhosk
10-13-2005, 01:27 PM
Is there a way to inhibit the "restore" button once an application is maximized? I'm having a heck of a time with masks, etc...not AMS's fault, just trying to prevent a restore once it's max'd on the screen. I also have Flash loading inside Web Objects, and whew, do they get messed up after a restore.

Corey
10-13-2005, 01:30 PM
Hmmm, I'm not sure on the restore issue but just FWIW there's a couple different scaling options available when you publish Flash which pertain to the way in which the Flash will react when resized within a browser, i.e. "Stretch to fit", etc... I'm not sure if that helps but it might in some cases, worth experimenting with for a minute anyhow. FWIW you can also set that option in Dreamweaver or your HTML code, it's not neccesary to re-publish per se. :yes

rhosk
10-13-2005, 01:42 PM
Yeah, I know all about those features, thanks. I just now realized that my masks aren't resizing (blocking the flash with some weird patterns - I thought it was just a refresh/redraw problem). Is there an 'object reference' for a mask?

And if there's an action to inhibit the restore, that would still fix some problems.

Worm
10-13-2005, 01:59 PM
Ron, I'm stumbling over what you want. Do you want the window to be resizable, but once it is maximixed, it becomes non-resizable?

rhosk
10-13-2005, 02:19 PM
Yes. I just think that it would solve a few of my problems. The masks ARE resizing, but not really to scale for some reason.

Sort of like: get the user's resolution - max the window (scaling everything nicely), then hold it there. As you've probably assumed, I'm using Adam's resize template, which works really nice, but as soon as I started adding masked web objects....

My template is medium (with menu), which I figured was an optimum resolution to initially design everything. If I go the route of just sizing the template to a specific resolution, then I'm backing up. This audience is probably still mostly 800x600 (I prefer 1024x768 for the past few years). This design works great for those 2, and probably larger is not a problem.

Do you have a solution (trick up your sleeve by chance)?

Worm
10-13-2005, 09:49 PM
You could try something like this. In AMS, set the window to be resizable so the On Resize event will fire, then use the code below to make the window non-sizable

I'd put it in the On Show


--Maximize the window
Window.Maximize(Application.GetWndHandle())
--change the window to a non-sizable window type
nLong = DLL.CallFunction(_SystemFolder.."\\User32.dll", "SetWindowLongA", Application.GetWndHandle()..",-16,348782592", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)

rhosk
10-14-2005, 04:59 AM
You could not imagine how sweet that works/looks. It even gets rid of the task bar, which is a plus :yes I thought that that wasn't possible with XP. I have to say that this ties in perfectly with the resize template. Exactly what I needed Worm, thanks for looking into it. Hope it wasn't too much trouble.

Corey
10-14-2005, 05:09 AM
Dang, that *is* sweet. :yes

Worm
10-14-2005, 05:19 AM
Glad I could help :yes

Worm
10-14-2005, 07:32 AM
I just read through my posts:

maximixed

What the heck is that?


Note to self:
Google Toolbar has a spell check tool, use it

rhosk
10-14-2005, 08:24 AM
I just read through my posts:

maximixed

What the heck is that?


Note to self:
Google Toolbar has a spell check tool, use it


LOL. This is a combination of maximize and "mix it up", in other words, have a few drinks, but don't overdo it :D

OR

2. (verb) - mix it up as long as you can without creating butter
3. (noun) - a new kool-aid flavor
4. (adjective) - a new kind of dance

I think it should be added to the dictionary this year.

Worm
10-14-2005, 08:36 AM
Well, it's almost right, really.

It's a maximized window in mixed window type (sizable, to non-sizable)

See, I knew what I was talking about...