Thursday, April 14, 2022

17-Microwave Tools Menus

In this post, the main menu will be setup using the Expander menu pattern. The component menu will be setup using custom drop down menu.

Main Menu

Add the following widgets to the panelMainMenu
  • Add a label
    • Text: Microwave Tools
    • Autosize: False
    • Font Size: 12
    • ForeColor: Red
    • Size: 144, 69
    • TextAlign: MiddleCenter
  • Add a button below the label
    • Text: Circuit
    • Name: btnCircuit
    • FlatStyle: Flat
    • FlatAppearance
      • BorderColor: Black
      • BorderSize: 1
      • MouseOverBackColor: BlueViolet
  • Add a flow layout panel
    • Name: panelCircuitSubmenu
    • Size: 146,134
    • Visible: False
  • Copy Circuit Button and paste a copy into panelCircuitSubmenu
    • BackColor: 64,64,64
    • Margin: 0,0,0,0
    • Text: New
    • Name: btnNew
  • Copy & paste a copy of btnNew below New button
    • Text: Load
    • Name: btnLoad
  • Copy & paste a copy of btnOpen below Open button
    • Text: Store
    • Name: btnStore
  • Copy & paste a copy of btnStore below Store button
    • Text: Analyze
    • Name: btnAnalyze
  • Copy & paste Circuit button below the panelCircuitSubmenu
    • Text: Wire Mode
    • Name: btnWireMode

Component Menu

  • Copy & paste Circuit button into the panelCompMenu
    • Text: Lumped
    • Name: btnLumped
    • TextAlign: MiddleCenter
  • Copy & paste Lumped button next to the Lumped button
    • Text: Ideal
    • Name: btnIdeal
  • Copy & paste Ideal button next to the Ideal button
    • Text: Microstrip
    • Name: btnMicrostrip
  • Copy & paste Microstrip button next to the Microstrip button
    • Text: RLC
    • Name: btnRLC
  • Add a new flow layout panel below the Lumped button
    • Name: panelLumpedSubmenu
    • FlowDirection: TopDown
    • Location: 153, 42
    • Size: 140, 165
  • Copy & paste the New button to the panelLumpedSubmenu
    • Text: RES
    • Name: btnRES
    • Width: 140,165
  • Copy & paste the RES button below the RES button
    • Text: IND
    • Name btnIND
  • Copy & paste the IND button below the IND button
    • Text: CAP
    • Name: btnCAP
  • Add a new flow layout panel below the Ideal button and add 3 buttons for InPort, OutPort, Ground
    • Panel Name: panelIdealSubmenu
  • Add a new flow layout panel below the Microstrip button and add 3 buttons for MLIN, MCROS, MTEE
    • Panel Name: panelMicrostripSubmenu
  • Be sure to set the Text and Name for all buttons
This completes the initial setup of the User Interface Window. The source code for this post can be found on GitHub.

The MainForm in the VS2019 designer should be similar to the image below.





No comments:

Post a Comment

34-Microwave Tools with Analysis (Series Final Post)

In this final blog post, I have integrated Y-Matrix analysis into the Microwave Tools project. This version has addition Lumped, Ideal, Micr...