View Full Version : maximize window
mgokkaya
02-15-2007, 08:30 AM
when i choose standart style from settings then i can maximize the window and everything on the windows automaticly gets bigger and fits the window...
BUT
when i choose bordered style and try to maximize then it maximize but images and buttons and web object vs... doesnt get bigger stay at original size and it looks really bad...
CAN SOMEONE HELP ME PLEASE ???
THANKS
dvnvitinh
02-15-2007, 09:33 AM
Thanks you, you can give minimize for me
mgokkaya
02-15-2007, 10:52 AM
does anybody know how to do it ???
Put this in your On Preload
Resize_OnPreLoad();
bFirstRun = true;
Resize_OnSize(Window.GetSize(Application.GetWndHan dle()).Width, Window.GetSize(Application.GetWndHandle()).Height) ;
mgokkaya
02-15-2007, 11:37 AM
Thanks Worm It Worked
mgokkaya
02-15-2007, 11:46 AM
But Right End Part Of The Window Is Not Fully Resizing... Like 0,5 Cm Missing ...
Why ???
not sure... post a example for me to look at and I'll see what I can do.
mgokkaya
02-15-2007, 11:52 AM
I Am Using The Project In The Post...
I see what you're saying now. Id guess it has something to do with the ratios in the resize code, but that's a guess. I don't have the time to delve into that code at the moment, maybe someone else has some spare ticks on their clock.
mgokkaya
02-16-2007, 06:34 AM
I Can Maximize The Window But How Can I Turn Back To Original Size ???
mgokkaya
02-16-2007, 06:58 AM
Application.Restore()
I HAVE 1 BUTTON FOR 2 CODES
MAXIMIZE AND RESTORE
HOW WILL I DO IT WORM ???
THANKS
mgokkaya
02-16-2007, 07:21 AM
i managed it with button visibility
here's another way
add to On Preload
bMaximized = false;
In your button On Click
if bMaximized then
Window.Restore(Application.GetWndHandle());
else
Window.Maximize(Application.GetWndHandle());
end
bMaximized = not bMaximized;
mgokkaya
02-16-2007, 07:27 AM
here's another way
add to On Preload
bMaximized = false;
In your button On Click
if bMaximized then
Window.Restore(Application.GetWndHandle());
else
Window.Maximize(Application.GetWndHandle());
end
bMaximized = not bMaximized;
THANKS ALOT WORM U R THE BEST
TJ_Tigger
02-16-2007, 09:17 AM
THANKS ALOT WORM U R THE BEST
We need that on a T-Shirt. :yes
<Bad Pun>Tee Hee</Bad Pun>
mgokkaya
02-17-2007, 10:36 AM
here's another way
add to On Preload
bMaximized = false;
In your button On Click
if bMaximized then
Window.Restore(Application.GetWndHandle());
else
Window.Maximize(Application.GetWndHandle());
end
bMaximized = not bMaximized;
when i minimize window and after i maximize it again, screen goes funny...
can u please have a look WORM
jaclee
04-26-2008, 01:50 PM
A bit belated, but after using search, the coding from Worm is the exact answer to my problem
many thanks.....
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.