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  |
 |
forlano
Messages: 1207 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
|
|
|
|
|
Goto Forum:
Current Time: Fri Apr 25 13:17:07 CEST 2025
Total time taken to generate the page: 0.00491 seconds
|