Hi Kushal,
Am 18.11.2010 15:49, schrieb kushal likhi:
hi,
.
thanks, dialog is all showing now.. :)
.
now i need help with action listeners(something wrong in what i did),, what
i did is i inherited the class with the listeners and implemented their
methods, then in the addListener i added keyword (this), (actual code in the
end of the mail for reference).. is this method right?????
.
and how can i get the control from the model?? i tried something,, what i
did is:
(selected statements to show the flow)
mxDialog = Reference< XDialog
(xDialogProvider->createDialog(sXDLPath),UNO_QUERY_THROW);
Reference< XControl> xControl(mxDialog, UNO_QUERY_THROW);
mxModel = Reference< XNameAccess>(xControl->getModel(), UNO_QUERY_THROW);
mxControlContainer = Reference< XControlContainer
(mxDialog,UNO_QUERY_THROW);
Reference< XPropertySet> aListBox(mxModel->getByName(C2U("ListBox1")),
UNO_QUERY_THROW);
mxListBox = Reference< XListBox
(mxControlContainer->getControl(C2U("ListBox1")),UNO_QUERY_THROW);
.
will i get the XListBox using this method??? or any other way??
this should work. I don't know what your problem is, did you try
running your code? And if you tried, what exactly went wrong? Have you
debuged this? And if you not have debuged this, why not?
Regards,
Christian
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]