Показать сообщение отдельно
Старый 14.01.2005, 09:41   #2  
AlexUnik is offline
AlexUnik
Участник
 
199 / 22 (1) +++
Регистрация: 01.06.2004
Адрес: Королёв
Если я не ошибаюсь, в форме складских проводок есть нечто подобное при нажатии кнопки Print:
void clicked()
{
menuFunction menuFunction;
args args = new args();

switch (inventJournalTable.journalType)
{
case InventJournalType::Transfer:
menuFunction = new menufunction(menuitemoutputStr(InventJournalTransTransfer), menuitemtype::Output);
break;
case InventJournalType::TagCounting:
menuFunction = new menufunction(menuitemoutputStr(InventJournalTrans_Tag), menuitemtype::Output);
break;
default:
menuFunction = new menufunction(menuitemoutputStr(inventJournalTrans), menuitemtype::Output);
break;
}
args.caller(element);
args.record(inventJournalTable);
args.menuItemName(menuFunction.name());
args.menuItemType(menuFunction.type());
menuFunction.run(args);
}