Kent Olsson schrieb:
I agree, but for forms I have to write one extra line for each
QxTextField to look good:
var txtTF = new QxTextField();
textTF.setVerticalAlignment("middle");
This last line could be unnecessary, by changing the default value. When
do you use left and top for a QxTextField? It does not look nice...
Yes there is currently no way around this. I thought before you want to
change the default vertical children align of the QxVerticalBoxLayout.
But in the above you want to change the vertical align of a text field.
The default values for each QxWidgets verticalAlignment and
horizontalAlignment are null, not top or left. But the most layouts will
default to left/top.
To change the default value, just for the reason that it is useful for
the usage in forms (and save you one line) is in my opinion not a good
reason.
Probably you can help you in your applications, if you create a new
class QxFormTextField, that inherits from QxTextField and sets the
verticalAlign to middle.
Sebastian
Kent
On Sat, 2005-12-03 at 13:04 +0100, Sebastian Werner wrote:
Kent Olsson schrieb:
I think it would be good to have vertical align set to "middle" as
default. It makes code shorter when creating forms.
Left and Top alignments are the fastest. Also there are some widgets
which inherits from this layout and then we must change it also there. I
think left or top alignments as default are the best.
To create form there will be in the next days the new QxGridLayout
(renderer) ready, which is IMHO, for the most typical forms, the better
choice.
Sebastian
Kent
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel