Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Interfaces Pgadmin Hackers > Re: Enabling SQ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 41 of 48 Topic 3654 of 4873
Post > Topic >>

Re: Enabling SQL text field in the SQL tab of object

by guillaume@[EMAIL PROTECTED] (Guillaume Lelarge) Aug 30, 2008 at 06:52 PM

This is a multi-part message in MIME format.
--------------040603010006070302070403
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Dave Page a écrit :
> On Wed, Aug 27, 2008 at 9:10 AM, Guillaume Lelarge
> <guillaume@[EMAIL PROTECTED]
> wrote:
> 
>> It seems at the right place to me. There are three columns on this tab:
>> first one for the labels, second one for the text box, and third one
for
>>  static texts showing current values.
> 
> Oh, yes - of course. I wonder if we should give the static text boxes
> a thin border so it's obviously they are there, even when empty? At
> the moment it just looks odd.
> 

I tried many things but didn't manage to get a border, thin or fat.
Perhaps wa can just put an N/A text on each static box? See attached
patch.


-- 
Guillaume.
 http://www.postgresqlfr.org
 http://dalibo.com

--------------040603010006070302070403
Content-Type: text/x-patch;
 name="dlgTable.patch"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline;
 filename="dlgTable.patch"

Index: pgadmin/dlg/dlgTable.cpp
===================================================================
--- pgadmin/dlg/dlgTable.cpp	(révision 7450)
+++ pgadmin/dlg/dlgTable.cpp	(copie de travail)
@[EMAIL PROTECTED]
 -970,6 +970,19 @[EMAIL PROTECTED]
         stFactorAnCurr->SetLabel(NumToStr((tableAnlFactor == -1) ?
settingAnlFactor : tableAnlFactor));
         stVacDelayCurr->SetLabel(NumToStr((tableCostDelay == -1) ?
settingCostDelay : tableCostDelay));
         stVacLimitCurr->SetLabel(NumToStr((tableCostLimit == -1) ?
settingCostLimit : tableCostLimit));
+        
+        if (stBaseVacCurr->GetLabel().Length() == 0)
+            stBaseVacCurr->SetLabel(wxT("N/A"));
+        if (stBaseAnCurr->GetLabel().Length() == 0)
+            stBaseAnCurr->SetLabel(wxT("N/A"));
+        if (stFactorVacCurr->GetLabel().Length() == 0)
+            stFactorVacCurr->SetLabel(wxT("N/A"));
+        if (stFactorAnCurr->GetLabel().Length() == 0)
+            stFactorAnCurr->SetLabel(wxT("N/A"));
+        if (stVacDelayCurr->GetLabel().Length() == 0)
+            stVacDelayCurr->SetLabel(wxT("N/A"));
+        if (stVacLimitCurr->GetLabel().Length() == 0)
+            stVacLimitCurr->SetLabel(wxT("N/A"));
 
         if (connection->BackendMinimumVersion(8, 2))
         {
Index: pgadmin/ui/dlgTable.xrc
===================================================================
--- pgadmin/ui/dlgTable.xrc	(révision 7450)
+++ pgadmin/ui/dlgTable.xrc	(copie de travail)
@[EMAIL PROTECTED]
 -349,7 +349,7 @[EMAIL PROTECTED]
                 </object>
                 <object class="sizeritem">
                   <object class="wxStaticText" name="stBaseVacCurr">
-                    <label></label>
+                    <label>N/A</label>
                   </object>
                  
<flag>wxALIGN_CENTER_VERTICAL|wxTOP|wxLEFT|wxRIGHT</flag>
                   <border>4</border>
@[EMAIL PROTECTED]
 -369,7 +369,7 @[EMAIL PROTECTED]
                 </object>
                 <object class="sizeritem">
                   <object class="wxStaticText" name="stBaseAnCurr">
-                    <label></label>
+                    <label>N/A</label>
                   </object>
                  
<flag>wxALIGN_CENTER_VERTICAL|wxTOP|wxLEFT|wxRIGHT</flag>
                   <border>4</border>
@[EMAIL PROTECTED]
 -389,7 +389,7 @[EMAIL PROTECTED]
                 </object>
                 <object class="sizeritem">
                   <object class="wxStaticText" name="stFactorVacCurr">
-                    <label></label>
+                    <label>N/A</label>
                   </object>
                  
<flag>wxALIGN_CENTER_VERTICAL|wxTOP|wxLEFT|wxRIGHT</flag>
                   <border>4</border>
@[EMAIL PROTECTED]
 -409,7 +409,7 @[EMAIL PROTECTED]
                 </object>
                 <object class="sizeritem">
                   <object class="wxStaticText" name="stFactorAnCurr">
-                    <label></label>
+                    <label>N/A</label>
                   </object>
                  
<flag>wxALIGN_CENTER_VERTICAL|wxTOP|wxLEFT|wxRIGHT</flag>
                   <border>4</border>
@[EMAIL PROTECTED]
 -429,7 +429,7 @[EMAIL PROTECTED]
                 </object>
                 <object class="sizeritem">
                   <object class="wxStaticText" name="stVacDelayCurr">
-                    <label></label>
+                    <label>N/A</label>
                   </object>
                  
<flag>wxALIGN_CENTER_VERTICAL|wxTOP|wxLEFT|wxRIGHT</flag>
                   <border>4</border>
@[EMAIL PROTECTED]
 -449,7 +449,7 @[EMAIL PROTECTED]
                 </object>
                 <object class="sizeritem">
                   <object class="wxStaticText" name="stVacLimitCurr">
-                    <label></label>
+                    <label>N/A</label>
                   </object>
                  
<flag>wxALIGN_CENTER_VERTICAL|wxTOP|wxLEFT|wxRIGHT</flag>
                   <border>4</border>
@[EMAIL PROTECTED]
 -469,7 +469,7 @[EMAIL PROTECTED]
                 </object>
                 <object class="sizeritem">
                   <object class="wxStaticText" name="stFreezeMinAgeCurr">
-                    <label></label>
+                    <label>N/A</label>
                   </object>
                  
<flag>wxALIGN_CENTER_VERTICAL|wxTOP|wxLEFT|wxRIGHT</flag>
                   <border>4</border>
@[EMAIL PROTECTED]
 -489,7 +489,7 @[EMAIL PROTECTED]
                 </object>
                 <object class="sizeritem">
                   <object class="wxStaticText" name="stFreezeMaxAgeCurr">
-                    <label></label>
+                    <label>N/A</label>
                   </object>
                   <flag>wxALIGN_CENTRE_VERTICAL|wxALL</flag>
                   <border>4</border>

--------------040603010006070302070403
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0


-- 
Sent via pgadmin-hackers mailing list (pgadmin-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers

--------------040603010006070302070403--
 




 48 Posts in Topic:
Enabling SQL text field in the SQL tab of object dialog
guillaume@[EMAIL PROTECTE  2007-07-31 10:35:53 
Re: Enabling SQL text field in the SQL tab of object
dpage@[EMAIL PROTECTED]   2007-07-31 11:35:11 
Re: Enabling SQL text field in the SQL tab of object
guillaume@[EMAIL PROTECTE  2008-06-14 16:01:29 
Re: Enabling SQL text field in the SQL tab of object dialog
dpage@[EMAIL PROTECTED]   2008-06-14 21:09:07 
Re: Enabling SQL text field in the SQL tab of object
guillaume@[EMAIL PROTECTE  2008-06-14 22:33:10 
Re: Enabling SQL text field in the SQL tab of object
guillaume@[EMAIL PROTECTE  2008-06-16 21:58:19 
Re: Enabling SQL text field in the SQL tab of object dialog
dpage@[EMAIL PROTECTED]   2008-06-18 09:53:03 
Re: Enabling SQL text field in the SQL tab of object
guillaume@[EMAIL PROTECTE  2008-06-20 01:48:55 
Re: Enabling SQL text field in the SQL tab of object
guillaume@[EMAIL PROTECTE  2008-06-20 14:09:14 
Re: Enabling SQL text field in the SQL tab of object
guillaume@[EMAIL PROTECTE  2008-07-01 12:52:22 
Re: Enabling SQL text field in the SQL tab of object dialog
dpage@[EMAIL PROTECTED]   2008-07-09 12:40:56 
Re: Enabling SQL text field in the SQL tab of object
guillaume@[EMAIL PROTECTE  2008-08-26 19:44:53 
Re: Enabling SQL text field in the SQL tab of object dialog
dpage@[EMAIL PROTECTED]   2008-08-28 08:29:16 
Re: Enabling SQL text field in the SQL tab of object
guillaume@[EMAIL PROTECTE  2008-08-28 09:56:50 
Re: Enabling SQL text field in the SQL tab of object dialog
dpage@[EMAIL PROTECTED]   2008-07-09 11:54:42 
Re: Enabling SQL text field in the SQL tab of object
guillaume@[EMAIL PROTECTE  2008-07-09 13:31:13 
Re: Enabling SQL text field in the SQL tab of object dialog
dpage@[EMAIL PROTECTED]   2008-08-28 08:13:23 
Re: Enabling SQL text field in the SQL tab of object
guillaume@[EMAIL PROTECTE  2008-08-28 09:23:08 
Re: Enabling SQL text field in the SQL tab of object dialog
dpage@[EMAIL PROTECTED]   2008-06-16 21:12:58 
Re: Enabling SQL text field in the SQL tab of object dialog
dpage@[EMAIL PROTECTED]   2008-06-16 21:11:42 
Re: Enabling SQL text field in the SQL tab of object
guillaume@[EMAIL PROTECTE  2008-06-16 22:34:33 
Re: Enabling SQL text field in the SQL tab of object dialog
dpage@[EMAIL PROTECTED]   2008-06-16 21:40:51 
Re: Enabling SQL text field in the SQL tab of object
guillaume@[EMAIL PROTECTE  2008-06-17 00:07:04 
Re: Enabling SQL text field in the SQL tab of object dialog
dpage@[EMAIL PROTECTED]   2008-06-20 13:36:26 
Re: Enabling SQL text field in the SQL tab of object dialog
dpage@[EMAIL PROTECTED]   2008-06-17 08:45:27 
Re: Enabling SQL text field in the SQL tab of object
guillaume@[EMAIL PROTECTE  2008-06-17 09:59:19 
Re: Enabling SQL text field in the SQL tab of object dialog
dpage@[EMAIL PROTECTED]   2008-06-17 09:02:07 
Re: Enabling SQL text field in the SQL tab of object
guillaume@[EMAIL PROTECTE  2008-06-17 23:51:30 
Re: Enabling SQL text field in the SQL tab of object dialog
dpage@[EMAIL PROTECTED]   2008-07-09 08:41:16 
Re: Enabling SQL text field in the SQL tab of object
guillaume@[EMAIL PROTECTE  2008-07-09 10:18:25 
Re: Enabling SQL text field in the SQL tab of object dialog
dpage@[EMAIL PROTECTED]   2008-07-01 16:17:49 
Re: Enabling SQL text field in the SQL tab of object
guillaume@[EMAIL PROTECTE  2008-07-05 12:32:39 
Re: Enabling SQL text field in the SQL tab of object
guillaume@[EMAIL PROTECTE  2008-07-09 01:07:37 
Re: Enabling SQL text field in the SQL tab of object dialog
dpage@[EMAIL PROTECTED]   2008-08-26 20:54:45 
Re: Enabling SQL text field in the SQL tab of object
guillaume@[EMAIL PROTECTE  2008-08-26 23:50:14 
Re: Enabling SQL text field in the SQL tab of object
guillaume@[EMAIL PROTECTE  2008-08-27 10:10:54 
Re: Enabling SQL text field in the SQL tab of object
guillaume@[EMAIL PROTECTE  2008-08-28 01:15:51 
Re: Enabling SQL text field in the SQL tab of object dialog
dpage@[EMAIL PROTECTED]   2008-08-30 21:59:05 
Re: Enabling SQL text field in the SQL tab of object
guillaume@[EMAIL PROTECTE  2008-08-30 23:10:32 
Re: Enabling SQL text field in the SQL tab of object dialog
dpage@[EMAIL PROTECTED]   2008-08-27 11:03:00 
Re: Enabling SQL text field in the SQL tab of object
guillaume@[EMAIL PROTECTE  2008-08-30 18:52:58 
Re: Enabling SQL text field in the SQL tab of object dialog
dpage@[EMAIL PROTECTED]   2008-08-28 09:12:14 
Re: Enabling SQL text field in the SQL tab of object
guillaume@[EMAIL PROTECTE  2008-08-30 18:28:56 
Re: Enabling SQL text field in the SQL tab of object dialog
dpage@[EMAIL PROTECTED]   2008-08-30 20:48:41 
Re: Enabling SQL text field in the SQL tab of object dialog
dpage@[EMAIL PROTECTED]   2008-08-30 20:50:33 
Re: Enabling SQL text field in the SQL tab of object
guillaume@[EMAIL PROTECTE  2008-08-30 22:28:05 
Re: Enabling SQL text field in the SQL tab of object dialog
dpage@[EMAIL PROTECTED]   2008-08-30 21:29:27 
Re: Enabling SQL text field in the SQL tab of object
guillaume@[EMAIL PROTECTE  2008-08-30 22:44:29 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 18:13:59 CST 2008.