This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
cb-legacy-dev/Samples/tcptest/wxsmith/tcptestframe.wxs
2023-11-18 17:56:10 +01:00

456 lines
21 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<wxsmith>
<object class="wxFrame" name="tcptestFrame">
<title>TCP Client/Server</title>
<bg>wxSYS_COLOUR_BTNFACE</bg>
<minsize>340,320</minsize>
<extra_code>// This code will set a smaller font if Win 3.11 is detected:&#x0A;int majorVer; int minorVer;&#x0A;wxGetOsVersion(&amp;majorVer, &amp;minorVer);&#x0A;if (minorVer == 30 || majorVer == 30 || majorVer == 3)&#x0A;{&#x0A; wxFont thisFont(8,wxFONTFAMILY__DEFAULT,wxFONTSTYLE__NORMAL,wxFONTWEIGHT__NORMAL,false,wxEmptyString,wxFONTENCODING__DEFAULT);&#x0A; SetFont(thisFont);&#x0A;}</extra_code>
<id_arg>0</id_arg>
<style>wxDEFAULT_FRAME_STYLE|wxFULL_REPAINT_ON_RESIZE</style>
<object class="wxBoxSizer" variable="BoxSizer1" member="no">
<object class="sizeritem">
<object class="wxPanel" name="ID_PANEL1" variable="Panel1" member="yes">
<size>286,334</size>
<object class="wxBoxSizer" variable="BoxSizer2" member="no">
<orient>wxVERTICAL</orient>
<object class="sizeritem">
<object class="wxNotebook" name="ID_NOTEBOOK1" variable="Notebook1" member="yes">
<object class="notebookpage">
<object class="wxPanel" name="ID_PANEL3" variable="Panel3" member="yes">
<object class="wxBoxSizer" variable="BoxSizer4" member="no">
<orient>wxVERTICAL</orient>
<object class="sizeritem">
<object class="wxPanel" name="ID_PANEL2" variable="Panel2" member="yes">
<size>330,191</size>
<object class="wxBoxSizer" variable="BoxSizer3" member="no">
<object class="sizeritem">
<object class="wxPanel" name="ID_PANEL5" variable="Panel5" member="yes">
<size>58,36d</size>
<object class="wxBoxSizer" variable="BoxSizer7" member="no">
<orient>wxVERTICAL</orient>
<object class="sizeritem">
<object class="wxStaticText" name="ID_STATICTEXT3" variable="LabelCount1" member="yes">
<label>Client count: 0</label>
<size>56,8d</size>
<style>wxST_NO_AUTORESIZE</style>
</object>
<flag>wxALIGN_LEFT</flag>
</object>
<object class="spacer">
<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
<border>5</border>
<size>20,1</size>
</object>
<object class="sizeritem">
<object class="wxStaticText" name="ID_STATICTEXT4" variable="StaticText4" member="yes">
<label>Port</label>
<size>38,8d</size>
<style>wxST_NO_AUTORESIZE</style>
</object>
<flag>wxALIGN_LEFT</flag>
<border>5</border>
</object>
<object class="sizeritem">
<object class="wxTextCtrl" name="ID_TEXTCTRL2" variable="PortSrvText1" member="yes">
<value>3000</value>
<size>30,-1d</size>
<style>wxBORDER_SIMPLE</style>
</object>
<flag>wxTOP|wxBOTTOM</flag>
</object>
<object class="sizeritem">
<object class="wxButton" name="ID_BUTTON1" variable="BtnOpenSrv" member="yes">
<label>Open server</label>
<handler function="OnBtnOpenSrvClick1" entry="EVT_BUTTON" />
</object>
<flag>wxTOP|wxEXPAND</flag>
<border>8</border>
</object>
<object class="sizeritem">
<object class="wxButton" name="ID_BUTTON2" variable="BtnCloseSrv" member="yes">
<label>Close server</label>
<handler function="OnBtnCloseSrvClick" entry="EVT_BUTTON" />
</object>
<flag>wxTOP|wxBOTTOM|wxEXPAND</flag>
<border>4</border>
</object>
</object>
</object>
<flag>wxALL|wxEXPAND</flag>
<border>5</border>
</object>
<object class="sizeritem">
<object class="wxPanel" name="ID_PANEL6" variable="Panel6" member="yes">
<object class="wxBoxSizer" variable="BoxSizer5" member="no">
<orient>wxVERTICAL</orient>
<object class="sizeritem">
<object class="wxStaticText" name="ID_STATICTEXT1" variable="StaticText1" member="yes">
<label>Client list</label>
<size>45,8d</size>
<style>wxST_NO_AUTORESIZE</style>
</object>
<flag>wxALL|wxALIGN_LEFT</flag>
<border>5</border>
</object>
<object class="sizeritem">
<object class="wxListBox" name="ID_LISTBOX1" variable="ListBox1" member="yes">
<default>-1</default>
<style>wxBORDER_SIMPLE</style>
</object>
<flag>wxALL|wxEXPAND</flag>
<border>5</border>
<option>1</option>
</object>
<object class="sizeritem">
<object class="wxButton" name="ID_BUTTON8" variable="BtnDropClient" member="yes">
<label>Drop client</label>
<handler function="OnBtnDropClientClick" entry="EVT_BUTTON" />
</object>
<flag>wxALL|wxALIGN_LEFT</flag>
<border>4</border>
</object>
</object>
</object>
<flag>wxALL|wxEXPAND</flag>
<option>1</option>
</object>
<object class="sizeritem">
<object class="wxPanel" name="ID_PANEL7" variable="Panel7" member="yes">
<size>360,172</size>
<object class="wxBoxSizer" variable="BoxSizer6" member="no">
<orient>wxVERTICAL</orient>
<object class="sizeritem">
<object class="wxStaticText" name="ID_STATICTEXT2" variable="StaticText2" member="yes">
<label>Log</label>
<size>61,8d</size>
<style>wxST_NO_AUTORESIZE</style>
</object>
<flag>wxALL|wxALIGN_LEFT</flag>
<border>5</border>
</object>
<object class="sizeritem">
<object class="wxTextCtrl" name="ID_TEXTCTRL1" variable="LogSrv1" member="yes">
<style>wxTE_MULTILINE|wxTE_READONLY|wxBORDER_SIMPLE</style>
</object>
<flag>wxALL|wxEXPAND</flag>
<border>5</border>
<option>1</option>
</object>
</object>
</object>
<flag>wxALL|wxEXPAND</flag>
<option>2</option>
</object>
</object>
</object>
<flag>wxALL|wxEXPAND</flag>
<border>5</border>
<option>1</option>
</object>
<object class="sizeritem">
<object class="wxPanel" name="ID_PANEL4" variable="Panel4" member="yes">
<size>646,79</size>
<object class="wxBoxSizer" variable="BoxSizer8" member="no">
<object class="sizeritem">
<object class="wxPanel" name="ID_PANEL8" variable="Panel8" member="yes">
<size>68,26d</size>
<object class="wxBoxSizer" variable="BoxSizer9" member="no">
<orient>wxVERTICAL</orient>
<object class="sizeritem">
<object class="wxTextCtrl" name="ID_TEXTCTRL3" variable="TextSendSrv1" member="yes">
<value>Message</value>
<style>wxBORDER_SIMPLE</style>
</object>
<flag>wxEXPAND</flag>
</object>
<object class="sizeritem">
<object class="wxPanel" name="ID_PANEL10" variable="Panel10" member="yes">
<object class="wxBoxSizer" variable="BoxSizer10" member="no">
<object class="sizeritem">
<object class="wxCheckBox" name="ID_CHECKBOX1" variable="CheckBinarySrv" member="yes">
<label>Binary mode (send a number)</label>
<size>119,8d</size>
<handler function="OnCheckBinarySrvClick" entry="EVT_CHECKBOX" />
</object>
<flag>wxTOP|wxBOTTOM|wxRIGHT|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
<border>5</border>
<option>1</option>
</object>
<object class="sizeritem">
<object class="wxSpinCtrl" name="ID_SPINCTRL1" variable="SpinCtrlSrv1" member="yes">
<value>12345</value>
<min>-32737</min>
<max>32737</max>
<size>80,-1d</size>
<enabled>0</enabled>
<style>wxBORDER_SIMPLE</style>
</object>
<flag>wxTOP|wxBOTTOM|wxLEFT|wxALIGN_CENTER_VERTICAL</flag>
<border>5</border>
</object>
</object>
</object>
<flag>wxALL|wxEXPAND</flag>
<option>1</option>
</object>
</object>
</object>
<flag>wxBOTTOM|wxLEFT|wxRIGHT|wxEXPAND</flag>
<border>4</border>
<option>1</option>
</object>
<object class="sizeritem">
<object class="wxPanel" name="ID_PANEL9" variable="Panel9" member="yes">
<size>139,95</size>
<object class="wxBoxSizer" variable="BoxSizer11" member="no">
<orient>wxVERTICAL</orient>
<object class="sizeritem">
<object class="wxButton" name="ID_BUTTON3" variable="BtnSrvSendAll" member="yes">
<label>Send to all</label>
<minsize>48,13d</minsize>
<handler function="OnBtnSrvSendAllClick" entry="EVT_BUTTON" />
</object>
<flag>wxEXPAND</flag>
</object>
<object class="sizeritem">
<object class="wxButton" name="ID_BUTTON4" variable="BtnSrvSendSel" member="yes">
<label>Send to sel</label>
<minsize>48,13d</minsize>
<handler function="OnBtnSrvSendSelClick" entry="EVT_BUTTON" />
</object>
<flag>wxTOP|wxEXPAND</flag>
<border>4</border>
</object>
</object>
</object>
<flag>wxLEFT|wxEXPAND</flag>
<border>2</border>
</object>
</object>
</object>
<flag>wxALL|wxEXPAND</flag>
<border>5</border>
</object>
</object>
</object>
<label>Server</label>
</object>
<object class="notebookpage">
<object class="wxPanel" name="ID_PANEL12" variable="Panel12" member="yes">
<object class="wxBoxSizer" variable="BoxSizer12" member="no">
<orient>wxVERTICAL</orient>
<object class="sizeritem">
<object class="wxPanel" name="ID_PANEL13" variable="Panel13" member="yes">
<size>330,191</size>
<object class="wxBoxSizer" variable="BoxSizer13" member="no">
<object class="sizeritem">
<object class="wxPanel" name="ID_PANEL14" variable="Panel14" member="yes">
<size>58,36d</size>
<object class="wxBoxSizer" variable="BoxSizer14" member="no">
<orient>wxVERTICAL</orient>
<object class="sizeritem">
<object class="wxStaticText" name="ID_STATICTEXT5" variable="StaticText3" member="yes">
<label>Address</label>
<size>56,8d</size>
<style>wxST_NO_AUTORESIZE</style>
</object>
<flag>wxBOTTOM|wxALIGN_LEFT</flag>
<border>5</border>
</object>
<object class="sizeritem">
<object class="wxTextCtrl" name="ID_TEXTCTRL7" variable="TextClientHost1" member="yes">
<value>127.0.0.1</value>
<size>30,-1d</size>
<style>wxBORDER_SIMPLE</style>
</object>
<flag>wxTOP|wxBOTTOM|wxEXPAND</flag>
</object>
<object class="sizeritem">
<object class="wxStaticText" name="ID_STATICTEXT6" variable="StaticText5" member="yes">
<label>Port</label>
<size>38,8d</size>
<style>wxST_NO_AUTORESIZE</style>
</object>
<flag>wxALIGN_LEFT</flag>
<border>5</border>
</object>
<object class="sizeritem">
<object class="wxTextCtrl" name="ID_TEXTCTRL4" variable="TextClientPort1" member="yes">
<value>3000</value>
<size>30,-1d</size>
<style>wxBORDER_SIMPLE</style>
</object>
<flag>wxTOP|wxBOTTOM</flag>
</object>
<object class="sizeritem">
<object class="wxButton" name="ID_BUTTON5" variable="BtnClientConn" member="yes">
<label>Connect</label>
<handler function="OnBtnClientConnClick" entry="EVT_BUTTON" />
</object>
<flag>wxTOP|wxEXPAND</flag>
<border>8</border>
</object>
<object class="sizeritem">
<object class="wxButton" name="ID_BUTTON6" variable="BtnClientDisconn" member="yes">
<label>Disconnect</label>
<handler function="OnBtnClientDisconnClick" entry="EVT_BUTTON" />
</object>
<flag>wxTOP|wxBOTTOM|wxEXPAND</flag>
<border>4</border>
</object>
</object>
</object>
<flag>wxALL|wxEXPAND</flag>
<border>5</border>
</object>
<object class="sizeritem">
<object class="wxPanel" name="ID_PANEL16" variable="Panel16" member="yes">
<size>360,172</size>
<object class="wxBoxSizer" variable="BoxSizer16" member="no">
<orient>wxVERTICAL</orient>
<object class="sizeritem">
<object class="wxStaticText" name="ID_STATICTEXT8" variable="StaticText7" member="yes">
<label>Log</label>
<size>61,8d</size>
<style>wxST_NO_AUTORESIZE</style>
</object>
<flag>wxALL|wxALIGN_LEFT</flag>
<border>5</border>
</object>
<object class="sizeritem">
<object class="wxTextCtrl" name="ID_TEXTCTRL5" variable="LogClient1" member="yes">
<style>wxTE_MULTILINE|wxTE_READONLY|wxBORDER_SIMPLE</style>
</object>
<flag>wxALL|wxEXPAND</flag>
<border>5</border>
<option>1</option>
</object>
</object>
</object>
<flag>wxALL|wxEXPAND</flag>
<option>2</option>
</object>
</object>
</object>
<flag>wxALL|wxEXPAND</flag>
<border>5</border>
<option>1</option>
</object>
<object class="sizeritem">
<object class="wxPanel" name="ID_PANEL17" variable="Panel17" member="yes">
<size>646,79</size>
<object class="wxBoxSizer" variable="BoxSizer17" member="no">
<object class="sizeritem">
<object class="wxPanel" name="ID_PANEL18" variable="Panel18" member="yes">
<size>68,26d</size>
<object class="wxBoxSizer" variable="BoxSizer18" member="no">
<orient>wxVERTICAL</orient>
<object class="sizeritem">
<object class="wxTextCtrl" name="ID_TEXTCTRL6" variable="TextSendClient1" member="yes">
<value>Message</value>
<style>wxBORDER_SIMPLE</style>
</object>
<flag>wxEXPAND</flag>
</object>
<object class="sizeritem">
<object class="wxPanel" name="ID_PANEL19" variable="Panel19" member="yes">
<object class="wxBoxSizer" variable="BoxSizer19" member="no">
<object class="sizeritem">
<object class="wxCheckBox" name="ID_CHECKBOX2" variable="CheckBinaryClient" member="yes">
<label>Binary mode (send a number)</label>
<size>119,8d</size>
<handler function="OnCheckBinaryClientClick" entry="EVT_CHECKBOX" />
</object>
<flag>wxTOP|wxBOTTOM|wxRIGHT|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
<border>5</border>
<option>1</option>
</object>
<object class="sizeritem">
<object class="wxSpinCtrl" name="ID_SPINCTRL2" variable="SpinCtrlClient1" member="yes">
<value>12345</value>
<min>-32737</min>
<max>32737</max>
<size>80,-1d</size>
<enabled>0</enabled>
<style>wxBORDER_SIMPLE</style>
</object>
<flag>wxTOP|wxBOTTOM|wxLEFT|wxALIGN_CENTER_VERTICAL</flag>
<border>5</border>
</object>
</object>
</object>
<flag>wxALL|wxEXPAND</flag>
<option>1</option>
</object>
</object>
</object>
<flag>wxBOTTOM|wxLEFT|wxRIGHT|wxEXPAND</flag>
<border>4</border>
<option>1</option>
</object>
<object class="sizeritem">
<object class="wxPanel" name="ID_PANEL20" variable="Panel20" member="yes">
<size>139,95</size>
<object class="wxBoxSizer" variable="BoxSizer20" member="no">
<orient>wxVERTICAL</orient>
<object class="sizeritem">
<object class="wxButton" name="ID_BUTTON7" variable="BtnClientSend" member="yes">
<label>Send</label>
<minsize>48,13d</minsize>
<handler function="OnBtnClientSendClick" entry="EVT_BUTTON" />
</object>
<flag>wxEXPAND</flag>
</object>
</object>
</object>
<flag>wxLEFT|wxEXPAND</flag>
<border>2</border>
</object>
</object>
</object>
<flag>wxALL|wxEXPAND</flag>
<border>5</border>
</object>
</object>
</object>
<label>Client</label>
</object>
</object>
<flag>wxALL|wxEXPAND</flag>
<border>5</border>
<option>1</option>
</object>
</object>
</object>
<flag>wxALL|wxEXPAND</flag>
<option>1</option>
</object>
</object>
<object class="wxMenuBar" variable="MenuBar1" member="no">
<object class="wxMenu" variable="Menu1" member="no">
<label>&amp;File</label>
<object class="wxMenuItem" name="idMenuQuit" variable="MenuItem1" member="no">
<label>Quit</label>
<accel>Alt-F4</accel>
<help>Quit the application</help>
<handler function="OnQuit" entry="EVT_MENU" />
</object>
</object>
<object class="wxMenu" variable="Menu2" member="no">
<label>Help</label>
<object class="wxMenuItem" name="idMenuAbout" variable="MenuItem2" member="no">
<label>About</label>
<accel>F1</accel>
<help>Show info about this application</help>
<handler function="OnAbout" entry="EVT_MENU" />
</object>
</object>
</object>
<object class="wxStatusBar" name="ID_STATUSBAR1" variable="StatusBar1" member="yes">
<fields>1</fields>
<widths>-1</widths>
<styles>wxSB_NORMAL</styles>
</object>
</object>
</wxsmith>