|
|
Home » U++ TheIDE » U++ TheIDE: Layout (Forms) Designer » Layout editor problem with Ctrl &
Layout editor problem with Ctrl & [message #31725] |
Mon, 21 March 2011 16:59  |
 |
koldo
Messages: 3432 Registered: August 2008
|
Senior Veteran |
|
|
Hello all
Using DropTime, if WantFocus and Seconds are unset I get a 'Seconds' : is not a member of 'Upp::Ctrl' error.
This is because as the translated code is WantFocus(false).Seconds(false) , WantFocus does not return a DropTime &.
Is there any solution?
Best regards
Iñaki
|
|
|
Re: Layout editor problem with Ctrl & [message #31727 is a reply to message #31725] |
Mon, 21 March 2011 18:01   |
|
Hi Koldo
I guess the only correct solution is to change CtrlLib/CtrlLib.usc, e.g. like this:ctrl DropTime {
group "Input fields";
GetMinSize() { sz = XMinSize(); sz.cy += 6; return sz; }
GetStdSize() { sz = GetMinSize(); sz.cx *= 15; return sz; }
Frame SetFrame = InsetFrame();
bool SetEditable = true @2 ? "Editable";
bool SelectAll = true;
bool SwapMonthYear = false;
bool Seconds = true;
bool NotNull = false;
bool WantFocus = true;
Text Tip;
//...
}
Actually the same problem applies to other Ctrls as well (I saw it in at least in DropDate, Clock, Calendar).
Honza
|
|
|
|
|
Re: Layout editor problem with Ctrl & [message #32115 is a reply to message #32112] |
Mon, 25 April 2011 17:51   |
|
Hi Koldo
koldo wrote on Mon, 25 April 2011 16:05 | Methods reordered:
- DropTime
- DropDate
- DocEdit
- LineEdit: In addition removed AlignRight(), MaxChars() from .usc
- TabCtrl: In addition removed SetFont() from .usc
All Ok:
- ArrayCtrl
|
Tested all of the mentioned changes. No problems found It should be safe to commit.
Honza
|
|
|
|
Goto Forum:
Current Time: Mon Apr 28 08:37:58 CEST 2025
Total time taken to generate the page: 0.00761 seconds
|
|
|