From f4b4816f4c7d08d51b8c21317595d5a366c95b17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Fri, 11 Feb 2011 22:16:43 +0000 Subject: [PATCH] [GB.DB.FORM] * BUG: Use the Proxy property in data bound controls. [GB.DESKTOP] * BUG: Fix the reading of big X11 properties. git-svn-id: svn://localhost/gambas/trunk@3554 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- TODO | 1 + comp/src/gb.db.form/.lang/.pot | 12 ++++++------ comp/src/gb.db.form/.src/DataBrowser.class | 1 + comp/src/gb.db.form/.src/DataCombo.class | 1 + comp/src/gb.db.form/.src/DataControl.class | 2 ++ comp/src/gb.db.form/.src/DataView.class | 2 ++ examples/examples/Misc/Notepad/.icon.png | Bin 4338 -> 4354 bytes examples/examples/Misc/Notepad/.project | 4 ++-- examples/examples/Video/MoviePlayer/.project | 2 +- gb.desktop/src/gb.desktop/.settings | 4 ++-- gb.desktop/src/gb.desktop/.src/Form1.class | 7 +++++++ gb.desktop/src/gb.desktop/.src/Form1.form | 10 ++++++++-- gb.desktop/src/x11.c | 9 +++++++-- 13 files changed, 40 insertions(+), 15 deletions(-) diff --git a/TODO b/TODO index 5c2d79a0c..0f79f8ff3 100644 --- a/TODO +++ b/TODO @@ -45,6 +45,7 @@ GUI RELATED STUFF - Keep ListView.SelectAll(Boolean) for compatibility. - Remove ScreenShot() method. - Fix infinite loop when clicking with the right mouse button in an iconview. +- Clean up gb.db.form component. Use the Proxy property in controls. DESKTOP COMPONENT diff --git a/comp/src/gb.db.form/.lang/.pot b/comp/src/gb.db.form/.lang/.pot index ca7b2cd09..b8ca6bdb1 100644 --- a/comp/src/gb.db.form/.lang/.pot +++ b/comp/src/gb.db.form/.lang/.pot @@ -10,11 +10,11 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: DataControl.class:83 DataView.class:354 +#: DataControl.class:83 DataView.class:356 msgid "True" msgstr "" -#: DataControl.class:84 DataView.class:354 +#: DataControl.class:84 DataView.class:356 msgid "False" msgstr "" @@ -30,19 +30,19 @@ msgstr "" msgid "You must fill all mandatory fields." msgstr "" -#: DataView.class:516 +#: DataView.class:518 msgid "Unable to save value." msgstr "" -#: DataView.class:518 +#: DataView.class:520 msgid "Incorrect value." msgstr "" -#: DataView.class:673 +#: DataView.class:675 msgid "Unable to save record." msgstr "" -#: DataView.class:815 +#: DataView.class:817 msgid "Unable to delete record." msgstr "" diff --git a/comp/src/gb.db.form/.src/DataBrowser.class b/comp/src/gb.db.form/.src/DataBrowser.class index be9f53121..9714350a2 100644 --- a/comp/src/gb.db.form/.src/DataBrowser.class +++ b/comp/src/gb.db.form/.src/DataBrowser.class @@ -19,6 +19,7 @@ Private $hForm As FBrowser Public Sub _new() $hForm = New FBrowser(Me) + Me.Proxy = $hForm.DataView End diff --git a/comp/src/gb.db.form/.src/DataCombo.class b/comp/src/gb.db.form/.src/DataCombo.class index e2a0199fb..2cf6dbfff 100644 --- a/comp/src/gb.db.form/.src/DataCombo.class +++ b/comp/src/gb.db.form/.src/DataCombo.class @@ -36,6 +36,7 @@ Public Sub _new() $hCtrl = New ComboBox(Me) As "ComboBox" Me._AutoResize = True + Me.Proxy = $hCtrl '$hCtrl.ReadOnly = TRUE End diff --git a/comp/src/gb.db.form/.src/DataControl.class b/comp/src/gb.db.form/.src/DataControl.class index bc903de18..46db00347 100644 --- a/comp/src/gb.db.form/.src/DataControl.class +++ b/comp/src/gb.db.form/.src/DataControl.class @@ -111,6 +111,8 @@ Private Sub CreateControl() $hCtrl.Background = If(bReadOnly, Color.ButtonBackground, Color.Default) If bFocus Then $hCtrl.SetFocus + Me.Proxy = $hCtrl + End diff --git a/comp/src/gb.db.form/.src/DataView.class b/comp/src/gb.db.form/.src/DataView.class index 6fc964787..045af83bf 100644 --- a/comp/src/gb.db.form/.src/DataView.class +++ b/comp/src/gb.db.form/.src/DataView.class @@ -62,6 +62,8 @@ Private $iRowNewRecord As Integer = -1 Public Sub _new() $hCtrl = New TableView(Me) As "TableView" + Me.Proxy = $hCtrl + $hTimer = New Timer As "TableView" $hCreateTimer = New Timer As "CreateTimer" $hCtrl.Header = TableView.Both diff --git a/examples/examples/Misc/Notepad/.icon.png b/examples/examples/Misc/Notepad/.icon.png index 3153210292b304352976f4db167197f4be88e33f..82337577094784f48da246065c958e5ba9d56534 100644 GIT binary patch delta 24 ecmeyQ*rYT;g_ot+$uool2x>S|IyNd^6aWBOU