mirror of
https://github.com/vapaamies/KolibriOS.git
synced 2024-11-09 17:50:30 +01:00
KolibriOS window styles sorted by value, WS_NO_DRAW and WINDOW_BORDER_SIZE added
This commit is contained in:
parent
e4a5b1e0a6
commit
66f8410294
@ -3,9 +3,6 @@ program Screenshot;
|
|||||||
uses
|
uses
|
||||||
KolibriOS;
|
KolibriOS;
|
||||||
|
|
||||||
const
|
|
||||||
BORDER_SIZE = 5;
|
|
||||||
|
|
||||||
type
|
type
|
||||||
TRGBTriple = packed record
|
TRGBTriple = packed record
|
||||||
Blue: Byte;
|
Blue: Byte;
|
||||||
@ -63,8 +60,8 @@ begin
|
|||||||
|
|
||||||
with ScreenSize do
|
with ScreenSize do
|
||||||
begin
|
begin
|
||||||
WndWidth := BORDER_SIZE * 2 + Width div 2 - 1;
|
WndWidth := WINDOW_BORDER_SIZE * 2 + Width div 2 - 1;
|
||||||
WndHeight := BORDER_SIZE + GetSkinHeight + Height div 2 - 1;
|
WndHeight := WINDOW_BORDER_SIZE + GetSkinHeight + Height div 2 - 1;
|
||||||
WndLeft := (Width - WndWidth) div 2;
|
WndLeft := (Width - WndWidth) div 2;
|
||||||
WndTop := (Height - WndHeight) div 2;
|
WndTop := (Height - WndHeight) div 2;
|
||||||
|
|
||||||
|
@ -245,15 +245,18 @@ type
|
|||||||
const
|
const
|
||||||
INVALID_HANDLE = 0;
|
INVALID_HANDLE = 0;
|
||||||
|
|
||||||
|
WINDOW_BORDER_SIZE = 5; // defined by kernel
|
||||||
|
|
||||||
// Window styles
|
// Window styles
|
||||||
WS_SKINNED_FIXED = $4000000;
|
WS_FIXED = $00000000;
|
||||||
WS_SKINNED_SIZABLE = $3000000;
|
WS_NO_DRAW = $01000000;
|
||||||
WS_FIXED = $0000000;
|
WS_SIZABLE = $02000000;
|
||||||
WS_SIZABLE = $2000000;
|
WS_SKINNED_SIZABLE = $03000000;
|
||||||
|
WS_SKINNED_FIXED = $04000000;
|
||||||
|
WS_CAPTION = $10000000;
|
||||||
|
WS_CLIENT_COORDS = $20000000;
|
||||||
WS_TRANSPARENT_FILL = $40000000;
|
WS_TRANSPARENT_FILL = $40000000;
|
||||||
WS_GRADIENT_FILL = $80000000;
|
WS_GRADIENT_FILL = $80000000;
|
||||||
WS_CLIENT_COORDS = $20000000;
|
|
||||||
WS_CAPTION = $10000000;
|
|
||||||
|
|
||||||
// Caption styles
|
// Caption styles
|
||||||
CAPTION_MOVABLE = $00000000;
|
CAPTION_MOVABLE = $00000000;
|
||||||
|
Loading…
Reference in New Issue
Block a user