![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
Join Date: Jan 2005
Posts: 110
Rep Power: 4
![]() |
Resizing windows problem.
Hi, I want to know how I can stop the window from being resized when the window gets too small, I don't want the window to get any smaller than the height of 1000. I tried detecting when it was 1000 or less and moving it to the same height of 1000 but that just looked really weird. Any ideas?
thanks |
|
|
|
|
|
#2 | |
|
Newbie
Join Date: Jul 2005
Posts: 14
Rep Power: 0
![]() |
Quote:
------------ If formname.height < 1000 then formname.height = 1000 end if
__________________
NanoKube ======== The Original NanoKube |
|
|
|
|
|
|
#3 |
|
Hobbyist Programmer
Join Date: Jan 2005
Posts: 110
Rep Power: 4
![]() |
woo that works!
thanks ^^ any way to stop the flickering? |
|
|
|
|
|
#4 |
|
Newbie
Join Date: Jul 2005
Posts: 14
Rep Power: 0
![]() |
Your welcome ^.^ And the cause of the flickering is the constant timer going on and on [if you put a low interval], which is why I would recomend the form_resize event
__________________
NanoKube ======== The Original NanoKube |
|
|
|
|
|
#5 |
|
Hobbyist Programmer
Join Date: Jan 2005
Posts: 110
Rep Power: 4
![]() |
i did it in the resize event, but the flickering is still there o.o
any ideas? thanks ![]() |
|
|
|
|
|
#6 |
|
Newbie
Join Date: Jul 2005
Posts: 14
Rep Power: 0
![]() |
Hm. Do you also have a timer? And also, does it flicker when you resize the form, or all the time/
__________________
NanoKube ======== The Original NanoKube |
|
|
|
|
|
#7 |
|
Hobbyist Programmer
Join Date: Jan 2005
Posts: 110
Rep Power: 4
![]() |
nope, doesnt have a timer. it doesnt flicker all the time just when the form is being resized to lower than 1000, its not really a flicker just the arrow keeps dragging and u can see the window being resized and set back really quickly. anyway to just specify the x and y max and min values so it will just not let the form be resized past the values.?
thanks for the help ![]() |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|