If I press 3rd button, I wnat to activate 3 more buttons on Panel2!
If I press 2nd button, I want to activate 2 more buttons on Panel2!

 Code:
$System = CreateObject("KiXtart.System")

Break on
If Not $System
  $ = MessageBox("KiXforms Not Initiated. This Script Will Now Close.", "Error", 16)
  Quit()
EndIf

;~~< Form1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Form1 = $System.Form()
$Form1.Text = "Nick"
$Form1.SysMenu = 0

;~~< SplitContainer1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$SplitContainer1 = $Form1.Controls.SplitContainer()
$SplitContainer1.Location = 0, 0
$SplitContainer1.Size = 292, 271
$SplitContainer1.BackColor = "Red"
$SplitContainer1.SplitterDistance = 121
$SplitContainer1.Panel1.BackColor = 192, 255, 255
$SplitContainer1.Panel1.Size = 121, 271
$SplitContainer1.Panel1.Location = 0, 0

;~~< 1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$1 = $SplitContainer1.Panel1.Controls.Button('Button')
$1.Size = 92, 23
$1.Text = "1"
$1.Location = 10, 10
;$1.OnClick = "SwitchForms('Open1')"

;~~< 2 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$2 = $SplitContainer1.Panel1.Controls.Button('Button')
$2.Size = 92, 23
$2.Text = "2"
$2.Location = 10, 40
;$2.OnClick = "SwitchForms('Open2')"

;~~< 3 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$3 = $SplitContainer1.Panel1.Controls.Button('Button')
$3.Size = 92, 23
$3.Text = "3"
$3.Location = 10, 70
;$3.OnClick = "SwitchForms('Open3')"

;~~< Exit >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Exit = $SplitContainer1.Panel1.Controls.Button('Button')
$Exit.Size = 92, 23
$Exit.Text = "Exit"
$Exit.Location = 13, 230
$Exit.OnClick = "ExitForms()"

$SplitContainer1.Panel2.BackColor = 128, 255, 128
$SplitContainer1.Panel2.Size = 167, 271
$SplitContainer1.Panel2.Location = 125, 0
$SplitContainer1.Panel2.Cursor = $System.CursorStyle.Arrow
$SplitContainer1.Panel2.TabStop = -1

$Form1.Show
$Form1.Center

While $Form1.Visible 
 $=Execute($Form1.DoEvents) 
Loop 


Function ExitForms()
Quit()
EndFunction