Typeeditor dialog

Posted by: thomas44 on 8 September 2017, 2:41 pm EST

  • Posted 8 September 2017, 2:41 pm EST

    hi all !



    in the v5 i am trying to show the celltype dialog like in the designer...

     i did my own gallery on a ribbon for the celltypes,  but when i show the dialog using

    <font color="#008000" size="2" face="Consolas"><font color="#008000" size="2" face="Consolas"><font color="#008000" size="2" face="Consolas">

    FarPoint.Win.Spread.Design.ExternalDialogs.CellTypeEditor(FpSpread1)

    <font color="#cc6666">=>the combobox is always on Barcode (the first item) and i can't change it by code.</font>

    <font color="#000000"></font> 

    <font color="#000000">and if i try this : </font>

    <font size="2" face="Consolas"></font>

    <font color="#008000" size="2" face="Consolas"><font color="#008000" size="2" face="Consolas"><font color="#008000" size="2" face="Consolas">Dim test As New FarPoint.Win.Spread.Design.CellTypeDlgV3(FpSpread1)</font></font></font>

    <font color="#008000" size="2" face="Consolas"><font color="#008000" size="2" face="Consolas"><font color="#008000" size="2" face="Consolas">test.Show()</font></font></font>

    <font color="#ff99ff">the control is always empty (no items in the combobox of celltypes)</font>

    <font color="#000000">i just want to force which celltype must be selected on the load... like in designer</font>

    <font color="#000000">Thanks for help.</font>

    <font color="#008000" size="2" face="Consolas"><font color="#008000" size="2" face="Consolas"><font color="#008000" size="2" face="Consolas"></font></font></font></font></font></font>
  • Replied 8 September 2017, 2:41 pm EST

    Hello,

    We are working on your query. We will get back to you soon.

    Thanks,

    Manpreet

  • Replied 8 September 2017, 2:41 pm EST

    Hello,

    There is a CellTypeIndex property on the CellTypeDlgV3 object you could set to have the correct celltype loaded in the combobox. There is also another method you would need to call to load the celltypes in the combobox.

     Public rm As System.Resources.ResourceSet = Nothing 

    <span class="Apple-tab-span" style="white-space:pre;"> </span>Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

    <span class="Apple-tab-span" style="white-space:pre;"> </span>If (rm Is Nothing) Then

    <span class="Apple-tab-span" style="white-space:pre;"> </span>FarPoint.Win.Spread.Design.LoadResourceManagerForStrings()

    <span class="Apple-tab-span" style="white-space:pre;"> </span>End If


    <span class="Apple-tab-span" style="white-space:pre;"> </span>Dim cte As FarPoint.Win.Spread.Design.CellTypeDlgV3 = New FarPoint.Win.Spread.Design.CellTypeDlgV3(FpSpread1)

    <span class="Apple-tab-span" style="white-space:pre;"> </span>cte.CellTypeIndex = 5

    <span class="Apple-tab-span" style="white-space:pre;"> </span>cte.Show()


    <span class="Apple-tab-span" style="white-space:pre;"> </span>End Sub

     

  • Replied 8 September 2017, 2:41 pm EST

    it works ! thanks.
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels