2012年5月5日星期六

How to selection multi line on dialog

static void THK_dialogSelectionMultiLine(Args _args)
{
    Dialog              dialog = new Dialog();
    DialogField         dlg;
    str                 vendAccount;
    boolean             retValue;
    ;
   
    dlg = dialog.addField(typeId(VendAccount));
    dlg.fieldControl().displayLength(100);
    dlg.fieldControl().LimitText(500);
    dlg.fieldControl().LookupButton(2);
    dlg.fieldControl().replaceOnLookup(Noyes::No);
    dlg.fieldControl().mandatory(true);
    //dlg.THK_mandatory(true);
    //dlg.THK_replaceOnLookup(false);
    retValue = dialog.run();
   
    if(retValue)
    {
        vendAccount = dlg.value();
        //do something else
        info(vendAccount);
    }
}

没有评论:

发表评论