Page 1 of 1

As I hide or leave visible dictionary by code

Posted: Thu Jan 03, 2008 3:36 pm
by pca
1 .- As I hide or leave visible dictionary by code
2 .- Do not allow hide the dictionary

Thanks

As I hide or leave visible dictionary by code

Posted: Fri Jan 04, 2008 8:44 am
by Brendan
Is it that you wish to stop user from closing the Dictionary Panel when they click on the X ?

As I hide or leave visible dictionary by code

Posted: Fri Jan 04, 2008 8:57 am
by pca
yes

Thanks you

As I hide or leave visible dictionary by code

Posted: Fri Jan 04, 2008 9:12 am
by Brendan
stiDesignerControl1 is my Designer control on a form. You can replace this with your own Designer class instance.

Code: Select all

Stimulsoft.Report.Design.Panels.StiDictionaryPanelService dict = Stimulsoft.Report.Design.Panels.StiDictionaryPanelService.GetService(stiDesignerControl1);

//Load Dictionary Panel if it was Closed
dict.Init(stiDesignerControl1);

//Listen for Closing Event
dict.DockingControl.Closing += new CancelEventHandler(DockingControl_Closing);

Code: Select all

void DockingControl_Closing(object sender, CancelEventArgs e)
{
    //Cancel Dictionary Panel from Closing
    e.Cancel = true;
}