Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 19th, 2005, 4:36 AM   #1
cloud-
Hobbyist Programmer
 
Join Date: Jan 2005
Posts: 110
Rep Power: 4 cloud- is on a distinguished road
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
cloud- is offline   Reply With Quote
Old Jul 25th, 2005, 4:43 PM   #2
NanoKube
Newbie
 
NanoKube's Avatar
 
Join Date: Jul 2005
Posts: 14
Rep Power: 0 NanoKube is on a distinguished road
Quote:
Originally Posted by cloud-
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
Hm...try timers ^_^ like something along these lines. Or you could also do it in the Form_Resize event :
------------
If formname.height < 1000 then
formname.height = 1000
end if
__________________
NanoKube
========
The Original NanoKube
NanoKube is offline   Reply With Quote
Old Jul 27th, 2005, 10:01 AM   #3
cloud-
Hobbyist Programmer
 
Join Date: Jan 2005
Posts: 110
Rep Power: 4 cloud- is on a distinguished road
woo that works!
thanks ^^
any way to stop the flickering?
cloud- is offline   Reply With Quote
Old Jul 27th, 2005, 11:11 AM   #4
NanoKube
Newbie
 
NanoKube's Avatar
 
Join Date: Jul 2005
Posts: 14
Rep Power: 0 NanoKube is on a distinguished road
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
NanoKube is offline   Reply With Quote
Old Jul 27th, 2005, 12:02 PM   #5
cloud-
Hobbyist Programmer
 
Join Date: Jan 2005
Posts: 110
Rep Power: 4 cloud- is on a distinguished road
i did it in the resize event, but the flickering is still there o.o
any ideas?
thanks
cloud- is offline   Reply With Quote
Old Jul 28th, 2005, 7:15 AM   #6
NanoKube
Newbie
 
NanoKube's Avatar
 
Join Date: Jul 2005
Posts: 14
Rep Power: 0 NanoKube is on a distinguished road
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
NanoKube is offline   Reply With Quote
Old Jul 28th, 2005, 12:47 PM   #7
cloud-
Hobbyist Programmer
 
Join Date: Jan 2005
Posts: 110
Rep Power: 4 cloud- is on a distinguished road
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
cloud- is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:22 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC