Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Propose a slight change to DropCoice/WithDropChoice
Re: Propose a slight change to DropCoice/WithDropChoice [message #19083 is a reply to message #19012] |
Mon, 10 November 2008 23:25   |
|
How Can I use it?
My Code:
//.Lay:
LAYOUT(ProjectDetailLayout, 340, 200)
ITEM(Label, dv___0, SetLabel(t_("Nomenclature Name")).LeftPosZ(4, 80).TopPosZ(4, 19))
ITEM(WithDropChoice<EditInt>, PRD_NomenclID, MaxChars(50).LeftPosZ(84, 56).TopPosZ(4, 19))
ITEM(DropChoice, Pp, LeftPosZ(100, 56).TopPosZ(104, 15))
ITEM(Label, dv___3, SetLabel(t_("Description")).LeftPosZ(4, 80).TopPosZ(32, 19))
ITEM(EditString, PRD_NomenclAdditionDesc, HSizePosZ(84, 8).TopPosZ(32, 19))
ITEM(Label, dv___5, SetLabel(t_("Quantity")).LeftPosZ(4, 80).TopPosZ(60, 19))
ITEM(EditInt, PRD_Quantity, LeftPosZ(84, 80).TopPosZ(60, 19))
ITEM(Button, ok, SetLabel(t_("OK")).RightPosZ(76, 64).BottomPosZ(8, 24))
ITEM(Button, cancel, SetLabel(t_("Cancel")).RightPosZ(8, 64).BottomPosZ(8, 24))
ITEM(EditString, PRD_NomenclID1, SetEditable(false).WantFocus(false).RightPosZ(8, 188).TopPosZ(4, 19))
END_LAYOUT
//And Code:
ProjectDetailDlg1::ProjectDetailDlg1() {
CtrlLayoutOKCancel(*this, t_("Edit Project Item "));
ctrls
(PRD_NOMENCLID, PRD_NomenclID)
(PRD_NOMENCLADDITIONDESC, PRD_NomenclAdditionDesc)
(PRD_QUANTITY, PRD_Quantity)
;
NomenclDisplayLookup();
PRD_NomenclID.Clear();
PRD_NomenclID.WhenSelect <<THISBACK(ChildLostFocus);
PRD_NomenclID.SetDisplay(Single<DisplayNomencl>());
SQL * Select(NOM_ID, NOM_NAME).From(NOMENCL).OrderBy(NOM_NAME);
while(SQL.Fetch())
PRD_NomenclID.AddList(SQL[NOM_ID]);//,SQL[NOM_NAME]);
Pp.SetDisplay(Single<DisplayNomencl>());
SQL * Select(NOM_ID, NOM_NAME).From(NOMENCL).OrderBy(NOM_NAME);
while(SQL.Fetch())
Pp.Add(SQL[NOM_ID]);
PRD_NomenclID.SetLineCy(PRD_NomenclID.GetSize().cy+2);
// <====I try to use this point PRD.NomenclID.DropWidth(35);
}
Compiler write
error: ‘class Upp::WithDropChoice<Upp::EditMinMax<int, Upp::ConvertInt> >’ has no
member named ‘DropWidth’
Maybe I don't understand about width of WithDropChoice<>..
Please HELP!!!
SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}
|
|
|
Goto Forum:
Current Time: Fri Jul 18 07:23:56 CEST 2025
Total time taken to generate the page: 0.04172 seconds
|