30 lines
1.1 KiB
C++
30 lines
1.1 KiB
C++
|
#include "websocket_client_form.h"
|
||
|
|
||
|
WebsocketClientForm::WebsocketClientForm(ui::Window* hwnd, string url, uint32_t port, TcpClientLibevent* p)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
WebsocketClientForm::~WebsocketClientForm()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
void WebsocketClientForm::Init()
|
||
|
{
|
||
|
ui::ChildBox::Init();
|
||
|
m_label_1 = dynamic_cast<ui::Label*>(FindSubControl(L"uart_info_label"));
|
||
|
m_rich_edit_1 = dynamic_cast<ui::RichEdit*>(FindSubControl(L"uart_recv_eidt"));
|
||
|
m_rich_edit_2 = dynamic_cast<ui::RichEdit*>(FindSubControl(L"lua_script"));
|
||
|
m_uart_send_edit = dynamic_cast<ui::RichEdit*>(FindSubControl(L"uart_send_edit"));
|
||
|
m_btn_send_data = dynamic_cast<ui::Button*>(FindSubControl(L"btn_send_data"));
|
||
|
m_check_box_2 = dynamic_cast<ui::CheckBox*>(FindSubControl(L"check_time_send"));
|
||
|
m_check_box_3 = dynamic_cast<ui::CheckBox*>(FindSubControl(L"check_hex_send"));
|
||
|
m_check_box_4 = dynamic_cast<ui::CheckBox*>(FindSubControl(L"check_hex_recv"));
|
||
|
m_btn_save_lua = dynamic_cast<ui::Button*>(FindSubControl(L"btn_save_lua"));
|
||
|
m_btn_close_form = dynamic_cast<ui::Button*>(FindSubControl(L"btn_close_uart"));
|
||
|
}
|
||
|
|
||
|
LuaDelegate* WebsocketClientForm::LuaVM()
|
||
|
{
|
||
|
return nullptr;
|
||
|
}
|