Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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
koldo is currently offline  koldo
Messages: 3375
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 messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

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 #31743 is a reply to message #31727] Wed, 23 March 2011 11:59 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3375
Registered: August 2008
Senior Veteran
Hello Mirek and Daniel

Like Honza says, perhaps the simplest solution would be to rearrange .usc methods order in every class so that Ctrl methods would be the last.

I have included this in Redmine, bug 49.


Best regards
Iñaki

[Updated on: Wed, 23 March 2011 12:09]

Report message to a moderator

Re: Layout editor problem with Ctrl & [message #32112 is a reply to message #31743] Mon, 25 April 2011 16:05 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3375
Registered: August 2008
Senior Veteran
Hello

Here I enclose you some changes in CtrlLib.usc.

Basically the changes have been:

Methods reordered:
- DropTime
- DropDate
- DocEdit
- LineEdit: In addition removed AlignRight(), MaxChars() from .usc
- TabCtrl: In addition removed SetFont() from .usc

All Ok:
- ArrayCtrl


Please check it and after that I will follow with other fixes.
  • Attachment: CtrlLib.usc
    (Size: 30.95KB, Downloaded 307 times)


Best regards
Iñaki
Re: Layout editor problem with Ctrl & [message #32115 is a reply to message #32112] Mon, 25 April 2011 17:51 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

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 Wink It should be safe to commit.

Honza
Re: Layout editor problem with Ctrl & [message #32119 is a reply to message #32115] Mon, 25 April 2011 20:38 Go to previous message
koldo is currently offline  koldo
Messages: 3375
Registered: August 2008
Senior Veteran
Thank you Honza Smile.

Best regards
Iñaki
Previous Topic: GUI with Menu bar and 5 Labels/Text Boxes
Next Topic: I created new package as empty how do I start adding code?
Goto Forum:
  


Current Time: Sun Jun 23 17:44:28 CEST 2024

Total time taken to generate the page: 0.02453 seconds