Vadim Maksimenko
|
The nature of weirdness...
|
Vadim Maksimenko
07/31/2009 2:54 AM
post34987
|
The nature of weirdness...
The nature of weirdness... Going on:
[code]
PhRect_t extent;
PtWidget_t *settings;
PtSetArg(&args[0],Pt_ARG_WINDOW_TITLE,NLS->Title(),0);
PtSetArg(&args[1],Pt_ARG_WINDOW_RENDER_FLAGS,Pt_FALSE,Ph_WM_RENDER_COLLAPSE|Ph_WM_RENDER_MAX|Ph_WM_RENDER_MIN|
Ph_WM_RENDER_MOVE|Ph_WM_RENDER_RESIZE);
PtSetArg(&args[2],Pt_ARG_WINDOW_MANAGED_FLAGS,Pt_FALSE,Ph_WM_COLLAPSE|Ph_WM_MAX|Ph_WM_MENU|Ph_WM_MOVE|Ph_WM_RESIZE);
PtSetArg(&args[3],Pt_ARG_WINDOW_STATE,Pt_TRUE,Ph_WM_STATE_ISMAX);
ZeroMemory(&destroyed,sizeof(PtCallback_t));
destroyed.event_f=&Destroyed;
PtSetArg(&args[4],Pt_CB_DESTROYED,&destroyed,0);
if(!(settings=PtCreateWidget(PtWindow,Pt_NO_PARENT,5,args)))
throw Status("Create settings window");
PtExtentWidget(settings); // Should force extent calculation!!! But it doesn't.
PtWidgetExtent(settings,&extent);
[/code]
The settings window being created as maximized with its final dimensions as 1024x768, but the [b]extent[/b] rectangle
turnes out to be like 0,0,98,22.
What the heck?!
|
|
|