<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Documentation – Managing Controls with Golang via C&#43;&#43;</title>
    <link>https://docs.aspose.com/cells/go-cpp/managing-controls/</link>
    <description>Recent content in Managing Controls with Golang via C&#43;&#43; on Documentation</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    
	  <atom:link href="https://docs.aspose.com/cells/go-cpp/managing-controls/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Gocpp: Update ActiveX ComboBox Control with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/update-activex-combobox-control/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/update-activex-combobox-control/</guid>
      <description>
        
        
        &lt;h2 id=&#34;possible-usage-scenarios&#34;&gt;&lt;strong&gt;Possible Usage Scenarios&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;You can read or write the values of ActiveX ComboBox Control using Aspose.Cells. Please access the ActiveX Control via &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/activexcontrol/&#34;&gt;Shape.ActiveXControl&lt;/a&gt; property and check its type via &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/activexcontrolbase/gettype/&#34;&gt;ActiveXControl.GetType()&lt;/a&gt; property. It should return &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/controltype/&#34;&gt;ControlType.ComboBox&lt;/a&gt; value, and then typecast it into &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/comboboxactivexcontrol/&#34;&gt;ComboBoxActiveXControl&lt;/a&gt; object to read or modify its various properties.&lt;/p&gt;
&lt;p&gt;Please download the &lt;a href=&#34;5115124.xlsx&#34;&gt;sample excel file&lt;/a&gt; used in the following sample code.&lt;/p&gt;
&lt;h2 id=&#34;update-activex-combobox-control&#34;&gt;&lt;strong&gt;Update ActiveX ComboBox Control&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The following screenshot shows the effect of the sample code on the &lt;a href=&#34;5115124.xlsx&#34;&gt;sample excel file&lt;/a&gt;. As you can see, the ActiveX ComboBox value has been updated to &amp;ldquo;This is combo box control&amp;rdquo;.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style=&#34;text-align:left&#34;&gt;&lt;img src=&#34;update-activex-combobox-control_1.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;/table&gt;
&lt;h2 id=&#34;sample-code&#34;&gt;&lt;strong&gt;Sample Code&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The following sample code updates the value of ActiveX ComboBox Control present inside the &lt;a href=&#34;5115124.xlsx&#34;&gt;sample excel file&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-UpdateActivexComboboxControl.go&#34;&gt;&lt;/script&gt;

&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/go?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Gocpp: Add ActiveX Controls using Aspose.Cells with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/add-activex-controls-using-aspose-cells/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/add-activex-controls-using-aspose-cells/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

&lt;p&gt;You can add ActiveX controls with Aspose.Cells using the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/shapecollection/addactivexcontrol/&#34;&gt;&lt;strong&gt;ShapeCollection::AddActiveXControl()&lt;/strong&gt;&lt;/a&gt; method. This method takes a parameter &lt;a href=&#34;https://reference.aspose.com/cells/cpp/aspose.cells.drawing.activexcontrols/controltype/&#34;&gt;&lt;strong&gt;ControlType&lt;/strong&gt;&lt;/a&gt; which specifies the type of ActiveX control to be added inside a worksheet. It has the following values:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;ControlType::CheckBox&lt;/li&gt;
&lt;li&gt;ControlType::ComboBox&lt;/li&gt;
&lt;li&gt;ControlType::CommandButton&lt;/li&gt;
&lt;li&gt;ControlType::Image&lt;/li&gt;
&lt;li&gt;ControlType::Label&lt;/li&gt;
&lt;li&gt;ControlType::ListBox&lt;/li&gt;
&lt;li&gt;ControlType::RadioButton&lt;/li&gt;
&lt;li&gt;ControlType::ScrollBar&lt;/li&gt;
&lt;li&gt;ControlType::SpinButton&lt;/li&gt;
&lt;li&gt;ControlType::TextBox&lt;/li&gt;
&lt;li&gt;ControlType::ToggleButton&lt;/li&gt;
&lt;li&gt;ControlType::Unknown&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Once you have added the ActiveX control inside the shape collection, you can access the ActiveX control object via the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/shape/getactivexcontrol/&#34;&gt;&lt;strong&gt;Shape::get_ActiveXControl()&lt;/strong&gt;&lt;/a&gt; method and set its various properties.&lt;/p&gt;

&lt;/div&gt;

&lt;p&gt;The following sample code adds a Toggle Button ActiveX Control using Aspose.Cells for C++.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-AddActivexControlsUsingAsposeCells.go&#34;&gt;&lt;/script&gt;


      </description>
    </item>
    
    <item>
      <title>Gocpp: Remove ActiveX Control with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/remove-activex-control/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/remove-activex-control/</guid>
      <description>
        
        
        &lt;h2 id=&#34;remove-activex-control&#34;&gt;&lt;strong&gt;Remove ActiveX Control&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Aspose.Cells provides the ability to remove ActiveX Control from workbooks. For this, the API provides the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/shape/removeactivexcontrol/&#34;&gt;&lt;strong&gt;Shape.RemoveActiveXControl&lt;/strong&gt;&lt;/a&gt; method. The following code snippet demonstrates the use of the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/shape/removeactivexcontrol/&#34;&gt;&lt;strong&gt;Shape.RemoveActiveXControl&lt;/strong&gt;&lt;/a&gt; method to remove ActiveX Control.&lt;/p&gt;
&lt;h2 id=&#34;sample-code&#34;&gt;&lt;strong&gt;Sample Code&lt;/strong&gt;&lt;/h2&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-RemoveActivexControl.go&#34;&gt;&lt;/script&gt;


      </description>
    </item>
    
  </channel>
</rss>
