mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 09:00:35 +02:00
gtk2 intf: change BorderStyle for nested forms: do not recreatewnd
git-svn-id: trunk@25373 -
This commit is contained in:
parent
6634dfe6aa
commit
0f03af74d5
@ -290,9 +290,15 @@ begin
|
||||
|
||||
if (WidgetInfo^.FormBorderStyle <> Ord(AFormBorderStyle)) then
|
||||
begin
|
||||
if (AForm.Parent <> nil) or (AFormBorderStyle <> bsNone) then
|
||||
RecreateWnd(AForm)
|
||||
else
|
||||
if (AForm.Parent<>nil) then
|
||||
begin
|
||||
// a nested form
|
||||
// at the moment the gtk interface does not support any border for this
|
||||
end else if (AFormBorderStyle <> bsNone) then
|
||||
begin
|
||||
// the borderstyle can be only set on creation
|
||||
RecreateWnd(AForm);
|
||||
end else
|
||||
begin
|
||||
// TODO: set window hint WindowType := FormStyleMap[AFormBorderStyle];
|
||||
Resizable := FormResizableMap[AFormBorderStyle];
|
||||
|
Loading…
Reference in New Issue
Block a user