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++ Library support » LineEdit, EditFields, DocEdit » LineEdit error [BUG]
LineEdit error [BUG] [message #18512] Mon, 06 October 2008 04:02 Go to next message
amando1957 is currently offline  amando1957
Messages: 57
Registered: November 2007
Location: Wien/Vienna/Viden
Member
Hello folks,

I've tried my first CtrlLib project with a LineEdit, and got this error:
D:\upp\MyApps/ctrlLib_t/ctrlLib_t.lay:5: error: 'class Upp::LineEdit' has no member named 
	'MaxChars'


It showed the *.lay with the marked the line:
ITEM(LineEdit, lineEdit, MaxChars(64).SetFont(StdFontZ(16)).SetFrame(NullFrame()).Tip(t_("hinweis")).LeftPosZ(32, 148).TopPosZ(4, 24))

Indeed 'MaxChars' is not to find in the "CtrlLib\TextEdit.h".

While in "EditCtrl.h" its looking like this:
EditField& MaxChars(int mc)              { maxlen = mc; return *this; }

So, maybe LineEdit needs the same one?

Further I won't get back the graphic editor now, Sad

Martin

[Updated on: Wed, 08 October 2008 20:57]

Report message to a moderator

Re: LineEdit error [message #18517 is a reply to message #18512] Mon, 06 October 2008 09:20 Go to previous messageGo to next message
mr_ped is currently offline  mr_ped
Messages: 825
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
Ctrl+T - switch to graphics/text
("Edit / Edit as Text", or "Edit / Edit using the designer", both do show only when you edit lay or iml file).

And while editing IML in designer mode, the Ctrl+T does switch something about transparency, so you have to use menu.
(to Mirek: ^^^ clash of hotkeys, but I'm not sure what's the correct solution here, maybe to drop "Ctrl+T" text from menu and keep this mode without hotkey for text edit?)

About the MaxChars member, sorry, no idea. You should probably add the same thing as EditField has, if it makes any sense in context of LineEdit internal members.

Uh, why is it "LineEdit" vs "EditField" (Edit is first or second)? IMHO not pretty.
Re: LineEdit error [message #18525 is a reply to message #18517] Mon, 06 October 2008 21:28 Go to previous message
amando1957 is currently offline  amando1957
Messages: 57
Registered: November 2007
Location: Wien/Vienna/Viden
Member
Ahoj, mr_ped,

I've taken a EditField instead, and its fine now.
Thanks for your effort.

Martin
Previous Topic: writing from write to left
Next Topic: LineEdit and menu
Goto Forum:
  


Current Time: Thu Mar 28 09:24:17 CET 2024

Total time taken to generate the page: 0.01129 seconds