🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.clx.components.using
5 messages
5 total messages Started by FrankW Wed, 26 Oct 2005 18:31
setting max width and height of Tform
#165
Author: FrankW
Date: Wed, 26 Oct 2005 18:31
6 lines
1241 bytes
Hi,
In VCL,  we can use wm_GetMinMaxInfo in a form to control the max width and 
height of a form, how to do this in CLX? using the wm_GetMinMaxInfo will 
make the program Windows specific, any other approach that works in Delphi 
and Kylix in the same time?
Thanks. 
Re: setting max width and height of Tform
#166
Author: theo
Date: Wed, 26 Oct 2005 17:23
11 lines
1456 bytes
FrankW schrieb:
> Hi,
> In VCL,  we can use wm_GetMinMaxInfo in a form to control the max width and 
> height of a form, how to do this in CLX? using the wm_GetMinMaxInfo will 
> make the program Windows specific, any other approach that works in Delphi 
> and Kylix in the same time?
> Thanks. 
> 
> 

What's wrong with TForm.Constraints ?
Re: setting max width and height of Tform
#168
Author: theo
Date: Thu, 27 Oct 2005 09:49
14 lines
1540 bytes
FrankW schrieb:
> Hi Theo,
> 
> thanks for the tip, constraints works, but it does not position the form at 
> screen center, always at 0,0 when maximize, anyway to force it to be at 
> center? thanks.
> 

This doesn't seem like a very good idea to me.
What do you actually want to do?

If you don't want the user to resize the window, make 
TForm.BorderStyle:=fbsSingle
or so...
Re: setting max width and height of Tform
#167
Author: FrankW
Date: Thu, 27 Oct 2005 17:18
17 lines
1684 bytes
Hi Theo,

thanks for the tip, constraints works, but it does not position the form at 
screen center, always at 0,0 when maximize, anyway to force it to be at 
center? thanks.

"theo" <nospam@for.me> wrote in message 
news:435fb8b5$1@newsgroups.borland.com...
> FrankW schrieb:
>> Hi,
>> In VCL,  we can use wm_GetMinMaxInfo in a form to control the max width 
>> and height of a form, how to do this in CLX? using the wm_GetMinMaxInfo 
>> will make the program Windows specific, any other approach that works in 
>> Delphi and Kylix in the same time?
>> Thanks.
>
> What's wrong with TForm.Constraints ? 
Re: setting max width and height of Tform
#169
Author: FrankW
Date: Fri, 28 Oct 2005 03:00
23 lines
1699 bytes
what i like to do is:

The main form is maximized, when user open a sdi form and maximized it, i 
don't want it to occupy the entire screen, at least leave a frame of the 
main form.

"theo" <nospam@for.me> wrote in message 
news:43609fc7$1@newsgroups.borland.com...
> FrankW schrieb:
>> Hi Theo,
>>
>> thanks for the tip, constraints works, but it does not position the form 
>> at screen center, always at 0,0 when maximize, anyway to force it to be 
>> at center? thanks.
>>
>
> This doesn't seem like a very good idea to me.
> What do you actually want to do?
>
> If you don't want the user to resize the window, make 
> TForm.BorderStyle:=fbsSingle
> or so...
> 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads