{"id":20697247,"url":"https://github.com/tsnsoft/components_choice_wxwidgets","last_synced_at":"2025-07-03T09:31:35.227Z","repository":{"id":119295838,"uuid":"244329054","full_name":"tsnsoft/components_choice_wxwidgets","owner":"tsnsoft","description":"Компоненты выбора в wxWidgets на С++ в Code::Blocks","archived":false,"fork":false,"pushed_at":"2020-11-04T13:45:24.000Z","size":9508,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-22T20:50:55.713Z","etag":null,"topics":["codeblocks","codeblocks-ide","cpp","example","windows","wxwidgets"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tsnsoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-02T09:20:35.000Z","updated_at":"2022-12-05T08:15:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"76a37154-08a1-4b86-8f56-a71f70e17a66","html_url":"https://github.com/tsnsoft/components_choice_wxwidgets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tsnsoft/components_choice_wxwidgets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsnsoft%2Fcomponents_choice_wxwidgets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsnsoft%2Fcomponents_choice_wxwidgets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsnsoft%2Fcomponents_choice_wxwidgets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsnsoft%2Fcomponents_choice_wxwidgets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsnsoft","download_url":"https://codeload.github.com/tsnsoft/components_choice_wxwidgets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsnsoft%2Fcomponents_choice_wxwidgets/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263300210,"owners_count":23445200,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codeblocks","codeblocks-ide","cpp","example","windows","wxwidgets"],"created_at":"2024-11-17T00:17:18.130Z","updated_at":"2025-07-03T09:31:35.188Z","avatar_url":"https://github.com/tsnsoft.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# components_choice_wxwidgets\nКомпоненты выбора в wxWidgets на С++ в Code::Blocks\n\n![Screenshot](screenshot1.png)\n\nTextCtrl:\n\n![Screenshot](screenshot2.png)\n\n```\n/***************************************************************\n * Name:      components_choice_wxwidgetsMain.cpp\n * Purpose:   Code for Application Frame\n * Author:    Talipov S.N. (talipovsn@gmail.com)\n * Created:   2020-03-02\n * Copyright: Talipov S.N. (https://github.com/tsnsoft)\n * License:\n **************************************************************/\n\n#include \"components_choice_wxwidgetsMain.h\"\n#include \u003cwx/msgdlg.h\u003e\n\n//(*InternalHeaders(components_choice_wxwidgetsFrame)\n#include \u003cwx/artprov.h\u003e\n#include \u003cwx/bitmap.h\u003e\n#include \u003cwx/icon.h\u003e\n#include \u003cwx/image.h\u003e\n#include \u003cwx/intl.h\u003e\n#include \u003cwx/string.h\u003e\n//*)\n\n//helper functions\nenum wxbuildinfoformat\n{\n    short_f, long_f\n};\n\nwxString wxbuildinfo(wxbuildinfoformat format)\n{\n    wxString wxbuild(wxVERSION_STRING);\n\n    if (format == long_f )\n    {\n#if defined(__WXMSW__)\n        wxbuild \u003c\u003c _T(\"-Windows\");\n#elif defined(__UNIX__)\n        wxbuild \u003c\u003c _T(\"-Linux\");\n#endif\n\n#if wxUSE_UNICODE\n        wxbuild \u003c\u003c _T(\"-Unicode build\");\n#else\n        wxbuild \u003c\u003c _T(\"-ANSI build\");\n#endif // wxUSE_UNICODE\n    }\n\n    return wxbuild;\n}\n\n//(*IdInit(components_choice_wxwidgetsFrame)\nconst long components_choice_wxwidgetsFrame::ID_LISTBOX1 = wxNewId();\nconst long components_choice_wxwidgetsFrame::ID_STATICTEXT1 = wxNewId();\nconst long components_choice_wxwidgetsFrame::ID_CHOICE1 = wxNewId();\nconst long components_choice_wxwidgetsFrame::ID_CHECKBOX1 = wxNewId();\nconst long components_choice_wxwidgetsFrame::ID_RADIOBOX1 = wxNewId();\nconst long components_choice_wxwidgetsFrame::ID_BUTTON1 = wxNewId();\nconst long components_choice_wxwidgetsFrame::ID_TEXTCTRL1 = wxNewId();\n//*)\n\nBEGIN_EVENT_TABLE(components_choice_wxwidgetsFrame,wxFrame)\n    //(*EventTable(components_choice_wxwidgetsFrame)\n    //*)\nEND_EVENT_TABLE()\n\ncomponents_choice_wxwidgetsFrame::components_choice_wxwidgetsFrame(wxWindow* parent,wxWindowID id)\n{\n    //(*Initialize(components_choice_wxwidgetsFrame)\n    Create(parent, id, _(\"Компоненты выбора\"), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE, _T(\"id\"));\n    SetClientSize(wxSize(384,323));\n    {\n    \twxIcon FrameIcon;\n    \tFrameIcon.CopyFromBitmap(wxArtProvider::GetBitmap(wxART_MAKE_ART_ID_FROM_STR(_T(\"wxART_TICK_MARK\")),wxART_FRAME_ICON));\n    \tSetIcon(FrameIcon);\n    }\n    ListBox1 = new wxListBox(this, ID_LISTBOX1, wxPoint(40,40), wxSize(136,152), 0, 0, 0, wxDefaultValidator, _T(\"ID_LISTBOX1\"));\n    ListBox1-\u003eSetSelection( ListBox1-\u003eAppend(_(\"C\")) );\n    ListBox1-\u003eAppend(_(\"C++\"));\n    ListBox1-\u003eAppend(_(\"Java\"));\n    ListBox1-\u003eAppend(_(\"C#\"));\n    ListBox1-\u003eAppend(_(\"Python\"));\n    ListBox1-\u003eAppend(_(\"Delphi\"));\n    StaticText1 = new wxStaticText(this, ID_STATICTEXT1, _(\"\\?\\?\\?\"), wxPoint(48,200), wxSize(120,16), 0, _T(\"ID_STATICTEXT1\"));\n    Choice1 = new wxChoice(this, ID_CHOICE1, wxPoint(40,16), wxSize(136,23), 0, 0, 0, wxDefaultValidator, _T(\"ID_CHOICE1\"));\n    Choice1-\u003eSetSelection( Choice1-\u003eAppend(_(\"C\")) );\n    Choice1-\u003eAppend(_(\"C++\"));\n    Choice1-\u003eAppend(_(\"Java\"));\n    Choice1-\u003eAppend(_(\"C#\"));\n    Choice1-\u003eAppend(_(\"Python\"));\n    Choice1-\u003eAppend(_(\"Delphi\"));\n    CheckBox1 = new wxCheckBox(this, ID_CHECKBOX1, _(\"C++\"), wxPoint(240,200), wxDefaultSize, 0, wxDefaultValidator, _T(\"ID_CHECKBOX1\"));\n    CheckBox1-\u003eSetValue(false);\n    wxString __wxRadioBoxChoices_1[6] =\n    {\n    \t_(\"C\"),\n    \t_(\"C++\"),\n    \t_(\"Java\"),\n    \t_(\"C#\"),\n    \t_(\"Python\"),\n    \t_(\"Delphi\")\n    };\n    RadioBox1 = new wxRadioBox(this, ID_RADIOBOX1, _(\"Выбери\"), wxPoint(224,16), wxSize(136,168), 6, __wxRadioBoxChoices_1, 1, 0, wxDefaultValidator, _T(\"ID_RADIOBOX1\"));\n    Button1 = new wxButton(this, ID_BUTTON1, _(\"Выход\"), wxPoint(280,280), wxDefaultSize, 0, wxDefaultValidator, _T(\"ID_BUTTON1\"));\n    TextCtrl1 = new wxTextCtrl(this, ID_TEXTCTRL1, wxEmptyString, wxPoint(40,224), wxSize(136,80), wxTE_MULTILINE|wxTE_READONLY|wxTE_RICH2|wxTE_NOHIDESEL, wxDefaultValidator, _T(\"ID_TEXTCTRL1\"));\n    Center();\n\n    Connect(ID_LISTBOX1,wxEVT_COMMAND_LISTBOX_SELECTED,(wxObjectEventFunction)\u0026components_choice_wxwidgetsFrame::OnListBox1Select);\n    Connect(ID_CHOICE1,wxEVT_COMMAND_CHOICE_SELECTED,(wxObjectEventFunction)\u0026components_choice_wxwidgetsFrame::OnChoice1Select);\n    Connect(ID_CHECKBOX1,wxEVT_COMMAND_CHECKBOX_CLICKED,(wxObjectEventFunction)\u0026components_choice_wxwidgetsFrame::OnCheckBox1Click);\n    Connect(ID_RADIOBOX1,wxEVT_COMMAND_RADIOBOX_SELECTED,(wxObjectEventFunction)\u0026components_choice_wxwidgetsFrame::OnRadioBox1Select);\n    Connect(ID_BUTTON1,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)\u0026components_choice_wxwidgetsFrame::OnQuit);\n    //*)\n    wxCommandEvent e;\n    OnListBox1Select(e);\n}\n\ncomponents_choice_wxwidgetsFrame::~components_choice_wxwidgetsFrame()\n{\n    //(*Destroy(components_choice_wxwidgetsFrame)\n    //*)\n}\n\nvoid components_choice_wxwidgetsFrame::OnQuit(wxCommandEvent\u0026 event) {\n    Close();\n}\n\n\nvoid components_choice_wxwidgetsFrame::OnListBox1Select(wxCommandEvent\u0026 event) {\n    int i = ListBox1 -\u003e GetSelection();\n    wxString s = ListBox1 -\u003e GetString(i);\n    StaticText1 -\u003e SetLabel(s);\n    TextCtrl1 -\u003e AppendText(s+\"\\n\");\n}\n\n\nvoid components_choice_wxwidgetsFrame::OnChoice1Select(wxCommandEvent\u0026 event) {\n    int i = Choice1 -\u003e GetSelection();\n    wxString s = Choice1 -\u003e GetString(i);\n    StaticText1 -\u003e SetLabel(s);\n}\n\nvoid components_choice_wxwidgetsFrame::OnRadioBox1Select(wxCommandEvent\u0026 event) {\n    int k = RadioBox1 -\u003e GetSelection();\n    wxString s = RadioBox1 -\u003e GetString(k);\n    StaticText1 -\u003e SetLabel(s);\n}\n\nvoid components_choice_wxwidgetsFrame::OnCheckBox1Click(wxCommandEvent\u0026 event) {\n    boolean b = CheckBox1 -\u003e GetValue();\n    if (b == true) {\n        StaticText1 -\u003e SetLabel(\"Да!\");\n    } else {\n        StaticText1 -\u003e SetLabel(\"Нет!\");\n    }\n    TextCtrl1 -\u003e Clear();\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsnsoft%2Fcomponents_choice_wxwidgets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsnsoft%2Fcomponents_choice_wxwidgets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsnsoft%2Fcomponents_choice_wxwidgets/lists"}