|
|
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 ![Go to next message Go to next message](theme/default/images/down.png) |
![](https://www.ultimatepp.org/forums/images/custom_avatars/648.jpg) |
koldo
Messages: 3378 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 ![Go to previous message Go to previous message](theme/default/images/up.png) ![Go to next message Go to next message](theme/default/images/down.png) |
|
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 ![Go to previous message Go to previous message](theme/default/images/up.png) ![Go to next message Go to next message](theme/default/images/down.png) |
|
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: Sat Jul 27 07:03:03 CEST 2024
Total time taken to generate the page: 0.04736 seconds
|
|
|