![]() ![]() ' Create the button that will update the stack order.ĪddHandler button1.Click, AddressOf button1_Click Readjust the stack order so that it matches the current orientation. Void ActionsPane_OrientationChanged(object sender, EventArgs e) Void button1_Click(object sender, EventArgs e) Switch the stack order according to the current orientation. Create two more buttons that do nothing. Create the button that will update the stack order.īutton1.Click += new EventHandler(button1_Click) New EventHandler(ActionsPane_OrientationChanged) To run this code, call the InitActionsPane method from the ThisWorkbook_Startup event handler of a document-level project for Excel. When the user changes the orientation of the actions pane by moving the actions pane to a different part of the application window, or the user clicks on a Button control in the actions pane, the Orientation property is used to determine the new value of the StackOrder property. The following code example demonstrates how to create a simple actions pane that automatically adjusts the alignment of its contents.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |