[ wxwindows-Bugs-1729564 ] wxGTK 2.8.4, wxDialog, Centre,
client and size incorrect
SourceForge.net
noreply at sourceforge.net
Sat Jun 23 05:22:47 PDT 2007
Bugs item #1729564, was opened at 2007-06-01 18:41
Message generated for change (Comment added) made by vadz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1729564&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: Pending
Resolution: None
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.
----------------------------------------------------------------------
>Comment By: Vadim Zeitlin (vadz)
Date: 2007-06-23 14:22
Message:
Logged In: YES
user_id=71618
Originator: NO
The TLW size related bugs should be fixed in current HEAD, please let us
know if they are not. I don't think we can fix this in 2.8 in a backwards
compatible way though.
I don't know about wxDC::SetDeviceOrigin(), this probably merits a
separate bug report.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1729564&group_id=9863
More information about the wx-dev
mailing list