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 » line edit problem in designer
line edit problem in designer [message #3120] Sun, 07 May 2006 22:34 Go to previous message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
With the designer some times I experience problems that provocate the crash of the program. Then I've observed that removing some child from the graphic layout and inserting it directly in the class with Add(ctrl), and setting all its properties, the application works. The last case appeared with line edit just now. Please consider the following layout:
LAYOUT(VegaTab4Layout, 712, 496)
	ITEM(LabelBox, dv___0, SetLabel(t_("View")).LeftPosZ(32, 644).TopPosZ(376, 80))
	ITEM(Button, dv___1, LeftPosZ(484, 68).TopPosZ(424, 19))
	ITEM(Button, dv___2, LeftPosZ(48, 68).TopPosZ(424, 19))
	ITEM(Button, dv___3, LeftPosZ(156, 68).TopPosZ(424, 19))
	ITEM(Button, dv___4, LeftPosZ(272, 68).TopPosZ(424, 19))
	ITEM(Button, dv___5, LeftPosZ(380, 68).TopPosZ(424, 19))
	ITEM(Button, dv___6, LeftPosZ(588, 68).TopPosZ(424, 19))
	ITEM(Button, dv___7, LeftPosZ(484, 68).TopPosZ(396, 19))
	ITEM(Button, dv___8, LeftPosZ(48, 68).TopPosZ(396, 19))
	ITEM(Button, dv___9, LeftPosZ(156, 68).TopPosZ(396, 19))
	ITEM(Button, dv___10, LeftPosZ(272, 68).TopPosZ(396, 19))
	ITEM(Button, dv___11, LeftPosZ(380, 68).TopPosZ(396, 19))
	ITEM(Button, dv___12, LeftPosZ(588, 68).TopPosZ(396, 19))
	ITEM(LineEdit, lineedit, LeftPosZ(32, 644).TopPosZ(20, 348))
END_LAYOUT

with constructor:
VegaTab4::VegaTab4()
{
	CtrlLayout(*this);
	SizePos();
}

provocate the immediate crash of the application. To resolve the problem I need (all other being the same) to delete the line
ITEM(LineEdit, lineedit, LeftPosZ(32, 644).TopPosZ(20, 348))

and use the following constructor
[/code]
and the following constructor
VegaTab4::VegaTab4()
{
	CtrlLayout(*this);
	SizePos();
	Add(lineedit); // code of the previous deleted row
	lineedit.LeftPosZ(32, 644).TopPosZ(20, 348);
}

where I've declared "LineEdit lineedit;" in the class declaration.
Is it normal?

Luigi
 
Read Message
Read Message
Read Message
Previous Topic: Which widget can show text with fixed font?
Next Topic: How to let appear by default the bar in the LineEdit?
Goto Forum:
  


Current Time: Fri Apr 19 21:15:58 CEST 2024

Total time taken to generate the page: 0.06750 seconds