Cor Nouws wrote:
Hi,
I've a dialog, and add controls with the code.
Now I also want to remove control with the code.
What I've got is this:
oDlgModel.removeByName("controlName")
oContrl = oDocDlg.getControl("controlName")
oDocDlg.removeControl(oContrl)
Result:
- control does not exist on the model
( oDocDlg.getModel.getByName("controlName").Text
gives noSuchElementFound exception )
- but control is still visible.
So I miss how to remove the control from the view, or how to refresh
teh view.
Any suggestion?
just make the control not-visible is a option
oContrl = oDocDlg.getControl("controlName")
ccontroll.setvisible(false)
i supose you have to "dispose" first te object ???
ocontrl.dispose
oDocDlg.removeControl(oContrl)
hope it helps a bit
fernand
Thanks,
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]