[ wxwindows-Bugs-1729602 ] wxGTK 2.8.4, wxDialog, Centre,
client and size incorrect
SourceForge.net
noreply at sourceforge.net
Sun Jun 3 15:34:06 PDT 2007
Bugs item #1729602, was opened at 2007-06-01 19:50
Message generated for change (Settings changed) made by vadz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1729602&group_id=9863
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Duplicate
Priority: 5
Private: No
Submitted By: arst (arst)
Assigned to: Nobody/Anonymous (nobody)
Summary: wxGTK 2.8.4, wxDialog, Centre, client and size incorrect
Initial Comment:
When working with wxGTK (2.8.4) I noticed that dialogs came a bit below the centre of the parent window when shown.
Examining this close, I found the following behaviour:
1 - Dialogs are positioned below the vertical centre line by an offset similar to the dialog caption height.
2 - wxWindow::GetSize reports incorrect size (it returns the client window size, not the full window size) (this is for wxDialog).
3 - wxWindow::GetScreenRect also returns the incorrect size. The (x,y) pair is correct but (width,height) again are client, not window sizes.
Not sure if this just applies to wxDialog or wxWindow in general (but then, someone should have noticed).
Looking closer at the code, I noticed that the offsets for edges and caption are all set to 0 which is obviously wrong.
So wxWindow::GetClientSize and GetSize returns the same.
Another subtler bug:
wxDC::SetDeviceOrigin does not seem to work in wxGTK. I found this out when using a DC for a child window, and offsetting the origin to make it work with paint code for the parent.
Regards
// Arne S.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1729602&group_id=9863
More information about the wx-dev
mailing list