gtk2 intf: change BorderStyle for nested forms: do not recreatewnd

git-svn-id: trunk@25373 -
This commit is contained in:
mattias 2010-05-13 16:36:17 +00:00
parent 6634dfe6aa
commit 0f03af74d5

View File

@ -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];