FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Borland Builder Form Size like Desktop





gaudi
Hello,

i use the Borland Builder C++ and i like to make my Form
as big as the Desktop is.
Maybe with different Bordersizes.

This shut be able in the IDE and at Runtime.


Thanks
gaudi
i found the solution by my self


Quote:
Form1->BorderStyle= bsNone;
Form1->Left = 0;
Form1->Top = 0;
//Form1->Width = Screen->Width ;
//Form1->Height = Screen->Height -31;


txtFormHeight->Text = Form1->Height;

SystemParametersInfo(SPI_GETWORKAREA, 0, &rWorkArea, 0);
txtWorkArea->Text = rWorkArea.Height();
Form1->Height = rWorkArea.Height();
Form1->Width = rWorkArea.Width();

PosTopLeft->Left = 0;
PosTopLeft->Top= 0 ;

PosDownLeft->Left = 0;
PosDownLeft->Top= Form1->Height - PosDownLeft->Height ;

PosTopRight->Left = Form1->Width - PosTopRight->Width ;
PosTopRight->Top= 0 ;

PosDownRight->Left = Form1->Width - PosDownRight->Width ;
PosDownRight->Top= Form1->Height - PosDownRight->Height ;
Animal
gaudi wrote:
i found the solution by my self


-close-
Related topics
Can games grow beyond the hard-core set?
Basic HTML Introduction
751 Useful Windows XP Files
What do you use Laptop or Desktop?
Easily create forms and many other stuff without much knowle
C++, simple things???
[Help] Compilando en C
DLL
Wheel Mouse with Borland Builder C++
I Love You!
200frih$ for taking a screenshot! [got it!]
[script] Validar formularios de forma dinamica con AJAX...
Why is my form field value truncated?
Explain what the Holy Spirit is???
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Computers -> Software

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.