With a bit of luck I've done a "Full Screen" Form... Here's the recipe:
1. Make a New Form ;
2. Set to "false" all "BorderIcons";
3. Set the "FormStyle" to "fsStayOnTop";
4. Set the "BorderStyle" to "bsNone";
5. Put a Button in the form and put the following code in the OnClick event of the Button:
Ok. Run the app and press the Button... If you hit again the Button the Form appears only Maximized but not Full Screen... I've a BCB 6... This is bug of a feature?
Leonardo Mattioli
Chief Program Manager
Z Forge snc -
1. Make a New Form ;
2. Set to "false" all "BorderIcons";
3. Set the "FormStyle" to "fsStayOnTop";
4. Set the "BorderStyle" to "bsNone";
5. Put a Button in the form and put the following code in the OnClick event of the Button:
Code:
int h, w;
w = GetSystemMetrics(SM_CXMAXIMIZED);
h = GetSystemMetrics(SM_CYMAXIMIZED);
Width = w;
Height = h;
Left = -4;
Top = -4;
WindowState = wsMaximized;
Ok. Run the app and press the Button... If you hit again the Button the Form appears only Maximized but not Full Screen... I've a BCB 6... This is bug of a feature?
![[infinity] [infinity] [infinity]](/data/assets/smilies/infinity.gif)
Leonardo Mattioli
Chief Program Manager
Z Forge snc -