Issue 107258 - css::awt::XWindow::setPosSize() doesn't restore maximized window state
Summary: css::awt::XWindow::setPosSize() doesn't restore maximized window state
Status: CONFIRMED
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: current
Hardware: PC Windows, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-27 08:14 UTC by zhangxiaofei.ooo
Modified: 2013-01-29 21:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description zhangxiaofei.ooo 2009-11-27 08:14:13 UTC
REM  *****  BASIC  *****

Declare Function ShowWindow Lib "user32" _
    (ByVal lHwnd As Long, _
    ByVal lCmdShow As Long) As Boolean

Sub Main
	w = ThisComponent.CurrentController.Frame.ContainerWindow
	ShowWindow(w.getWindowHandle(dimarray(), 1), 3) ' maximize the window
	ShowWindow(w.getWindowHandle(dimarray(), 1), 6) ' minimize the window
	w.setPosSize(0, 0, 100, 100, 15)

End Sub

running the macro above results in the window with a normal size and a maximized
state in the mean time.
Comment 1 philipp.lohmann 2009-11-27 09:54:53 UTC
passing to the toolkit owner; isn't there a maximize method for that like in vcl ?