Hi,
as already mentioned, I'm not that firm with the multiplatform demands.
Anyway here is my suggest working on ubuntu gnome.
Regards
Steffen
-------- Original-Nachricht --------
Betreff: dlgEditGridOptions
Datum: Thu, 19 Aug 2010 21:56:08 +0200
Von: Steffen Kuhn <[email protected]>
An: [email protected]
Hi,
on Ubuntu 10.04 with gonome running there is an issue with
rightSize = lstSortCols->GetClientSize().GetWidth()-leftSize;
line 87.
lstSortCols->GetClientSize().GetWidth() isn't determined correct so that
columne 2 is added behind column 1.
See the result as pictrure attached.
I'm not so deep into this that I can deliver patch meeting the
multiplatform demands.
diff --git a/pgadmin/dlg/dlgEditGridOptions.cpp b/pgadmin/dlg/dlgEditGridOptions.cpp
index 8ab4f2a..1275c74 100644
--- a/pgadmin/dlg/dlgEditGridOptions.cpp
+++ b/pgadmin/dlg/dlgEditGridOptions.cpp
@@ -85,6 +85,8 @@ dlgEditGridOptions::dlgEditGridOptions(frmEditGrid *win, pgConn *conn, const wxS
int leftSize = 140, rightSize;
leftSize = ConvertDialogToPixels(wxPoint(leftSize, 0)).x;
rightSize = lstSortCols->GetClientSize().GetWidth()-leftSize;
+ if (rightSize < leftSize)
+ rightSize = leftSize + 1;
lstSortCols->InsertColumn(0, _("Column name"), wxLIST_FORMAT_LEFT, leftSize);
lstSortCols->InsertColumn(1, _("Sort order"), wxLIST_FORMAT_LEFT, rightSize);
--
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers