Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1205
Customising Formula Builder Text and Control View
posted

Hi,

Just a couple of questions about the Formula Builder..

1) Is it possible to change the text in the Form header to something other than "Formula Builder"?

2) Is it possible to hide the full path to the controls in the Operands tab, i.e. instead of displaying Controls->mDataGrid->Band0->MyColumn1 to just have Controls->MyColumn1?

Thanks,

Denis

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    Hi Denis,

    fatherlyons said:
    1) Is it possible to change the text in the Form header to something other than "Formula Builder"?

    Yes. The FormulaBuilderDialog derives from Form. So you can simply set the Text property just like you would for any form. But, of course, there's a catch. :)

    This form localizes it's text, so the Text of the form gets set when the form is displayed. So if you just create a new instance of the FormulaBuilderDialog and set it's Text and then show it, this won't work, because the Text will get overwritten after you set it. So what you can do is create the dialog and hook the Shown event. Then set the text in side the event.

    formulaBuilderDialog.Shown += new EventHandler(formulaBuilderDialog_Shown);


            void formulaBuilderDialog_Shown(object sender, EventArgs e)
            {
                Form form = (Form)sender;
                form.Text = "A";
            }

     

    fatherlyons said:
    2) Is it possible to hide the full path to the controls in the Operands tab, i.e. instead of displaying Controls->mDataGrid->Band0->MyColumn1 to just have Controls->MyColumn1?

    No, there's no way to do this. You should Submit a feature request to Infragistics

Children