View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0024633 | Lazarus | LCL | public | 2013-06-21 20:17 | 2014-01-18 15:08 |
Reporter | wp | Assigned To | Bart Broersma | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.1 (SVN) | ||||
Fixed in Version | 1.1 (SVN) | ||||
Summary | 0024633: Right-align numbers in TSpinEdit and TFloatSpinEdit | ||||
Description | In many applications numerical input fields show the numbers right-aligned. The numerical edit boxes in Lazarus, TSpinEdit and TFloatSpinEdit, are left-aligned only. The functionality for center and right alignment, however, is already available in their ancestor, TCustomEdit. Please, publish the property "Alignment" to make this feature available. | ||||
Additional Information | The attached patch makes the inherited property "Alignment" a published property. | ||||
Tags | No tags attached. | ||||
Fixed in Revision | r41805 | ||||
LazTarget | - | ||||
Widgetset | |||||
Attached Files |
|
|
spin.pp.patch (461 bytes)
Index: spin.pp =================================================================== --- spin.pp (revision 41784) +++ spin.pp (working copy) @@ -68,6 +68,9 @@ property MaxValue: Double read FMaxValue write SetMaxValue; property Value: Double read GetValue write SetValue; property ValueEmpty: Boolean read FValueEmpty write SetValueEmpty default False; + published + // inherited + property Alignment; end; { TFloatSpinEdit } |
|
This won't work with all widgetsets "out of the box", so it must be implemented but I guess that win32 and qt won't have problems. |
|
Please close if OK. |
|
@Zeljan. Tested win32 and gtk2. |
|
Thanks. |
|
I tested with Lazarus 1.1 r41807M FPC 2.7.1 x86_64-linux-qt and it does NOT work (TSpinEdit nor TFloatSpinEdit). I tried the widget in Qt Designer and it is capable to do it. |
|
@Vojtech: please open a new bugreport. This one was about publishing the property. |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-06-21 20:17 | wp | New Issue | |
2013-06-21 20:17 | wp | File Added: spin.pp.patch | |
2013-06-22 09:51 | Bart Broersma | Assigned To | => Bart Broersma |
2013-06-22 09:51 | Bart Broersma | Status | new => assigned |
2013-06-22 10:43 | Zeljan Rikalo | Note Added: 0068427 | |
2013-06-22 17:48 | Bart Broersma | Fixed in Revision | => r41805 |
2013-06-22 17:48 | Bart Broersma | LazTarget | => - |
2013-06-22 17:48 | Bart Broersma | Note Added: 0068438 | |
2013-06-22 17:48 | Bart Broersma | Status | assigned => resolved |
2013-06-22 17:48 | Bart Broersma | Fixed in Version | => 1.1 (SVN) |
2013-06-22 17:48 | Bart Broersma | Resolution | open => fixed |
2013-06-22 17:49 | Bart Broersma | Note Added: 0068439 | |
2013-06-22 17:50 | Bart Broersma | Note Edited: 0068439 | View Revisions |
2013-06-22 18:14 | wp | Note Added: 0068440 | |
2013-06-22 23:20 | Vojtech Cihak | Note Added: 0068445 | |
2013-06-23 11:21 | Bart Broersma | Note Added: 0068451 | |
2014-01-18 15:08 | wp | Status | resolved => closed |