I am making a GUI in exFormBuilder, and in my wxGridSizer, one element from my left…
- User
I am making a GUI in exFormBuilder, and in my wxGridSizer, one element from my left side, doesn't expand correctly when the window is resized, help me fix it.
Left side
-
wxBitmapButton row: 0 column: 0 rowspan: 1 colspan: 1
-
wxBitmapButton row: 0 column: 1 rowspan: 1 colspan: 1
-
wxChoice size: 298; 31 row: 1 column: 0 rowspan: 1 colspan: 2 flag: wxALL, wxLEFT
-
wxSearchCtrl size: 298; 31 row: 2 column: 0 rowspan: 1 colspan: 2 flag: wxLEFT, wxTOP
-
wxListBox (shift starting position down when the window is bigger or maximized, so it ends lower than it should instead of increasing size): Size: 298; 361 row: 3 column: 0 rowspan: 4 colspan: 2 flag: wxALL, wxEXPAND
Right side: Expand correctly
-
wxTextCtrl Size: 603; 70 row: 0 column: 4 rowspan: 4 colspan: 1 flag: wxALL, wxEXPAND
-
wxTextCtrl Size: 603; 370 row: 4 column: 4 rowspan: 3 colspan: 1 flag: wxALL, wxEXPAND
-
- Assistant
- User
Well I manage to fix that problem, and changed the wxTextCtrl from the right, to an wxRichTextCtrl. And I generated the code as usual, and when I try to compile the autogenerated code gave me an error:
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: obj/Debug/src/Views.o: in function
FrameMainView::FrameMainView(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long)': /home/.../Views.cpp:75:(.text+0xf74): undefined reference towxRichTextCtrl::wxRichTextCtrl(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long, wxValidator const&, wxString const&)' collect2: error: ld returned 1 exit status Process terminated with status 1 (0 minute(s), 2 second(s)) 2 error(s), 0 warning(s) (0 minute(s), 2 second(s))the generated code looks like this:
// Views.h
#include <wx/richtext/richtextctrl.h>
class FrameMainView : public wxFrame { private:
protected: //... wxRichTextCtrl* richTextChatBox;// Views.cpp
FrameMainView::FrameMainView( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style ) { //... richTextChatBox = new wxRichTextCtrl( panelMain, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 603,370 ), wxTE_AUTO_URL|wxTE_READONLY|wxVSCROLL ); richTextChatBox->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_INFOTEXT ) );
- Assistant
- User
OK I found out looking in the yast software, and found several libraries that I can input as a Link Library in codeblocks and compile, but there is one that fails the compilation:
Works: wx_baseu-3.1 wx_gtk3u_core-3.1 wx_gtk3u_html-3.1 wx_baseu_net-3.1 wx_gtk3u_aui-3.1 wx_gtk3u_propgrid-3.1 wx_gtk3u_ribbon-3.1 wx_gtk3u_richtext-3.1 wx_gtk3u_stc-3.1 wx_gtk3u_xrc-3.1
Error: wx_gtk3u_media-3.1
Why could that be? I know for a fact that I have it installed since all the rest works perfectly. What could be the error? Maybe I made a typo or something?
- Assistant
- User
I don't know for a fact if it exist or not, but I found it as a dependency in another package, the wx-config output doesn't show it but also many of the others that compile correctly aren't found either, like wx_gtk3u_propgrid-3.1 or wx_gtk3u_ribbon-3.1.
wx-config --libs -L/usr/local/lib64 -pthread -lwx_gtk3u_xrc-3.1 -lwx_gtk3u_html-3.1 -lwx_gtk3u_qa-3.1 -lwx_gtk3u_core-3.1 -lwx_baseu_xml-3.1 -lwx_baseu_net-3.1 -lwx_baseu-3.1
- Assistant