Search found 85 matches

by RobertSimpson
Thu Nov 15, 2018 1:42 am
Forum: Compiler / Linking / IDE Related
Topic: App built with static lib needs dlls (windows 7)
Replies: 5
Views: 479

Re: App built with static lib needs dlls (windows 7)

I couldn't figure out how to use the query options to list all the configs but I did find the default config: $ wx-config --selected-config msw-unicode-static-3.1 I've installed (built from source) both the default (dynamic) and static versions of wx. I only installed the dynamic version by mistake ...
by RobertSimpson
Wed Nov 14, 2018 5:12 am
Forum: Compiler / Linking / IDE Related
Topic: App built with static lib needs dlls (windows 7)
Replies: 5
Views: 479

Re: App built with static lib needs dlls (windows 7)

Ah you're right. I posted the wrong thing. Below is *my* library, not wx despite the name. It's a static libe because it's a .a file, not a .so file. Building target: libopengl-wx.a Invoking: GCC Archiver ar -r "libopengl-wx.a" ./gl-canvas-wx.o ./gl-extensions.o ./gl-font.o ./gl-graph.o ./gl-graph2d...
by RobertSimpson
Mon Nov 12, 2018 3:59 pm
Forum: Compiler / Linking / IDE Related
Topic: App built with static lib needs dlls (windows 7)
Replies: 5
Views: 479

App built with static lib needs dlls (windows 7)

I have an app which is compiling and running fine under windows 7, 10 (MSVC), Ubuntu 1804 and windows 10 (msys2, gcc). I am now trying to get it to run in windows 7 using msys2 (Eclipse/msys2/gcc). It compiles ok but won't run and it's asking for the following dlls: wxbase311u_gcc_custom.dll wxmsw31...
by RobertSimpson
Tue Oct 23, 2018 6:29 pm
Forum: C++ Development
Topic: SetScrollbar() asserts in GTK build with "this window is not scrollable"
Replies: 3
Views: 416

Re: SetScrollbar() asserts in GTK build with "this window is not scrollable"

Ok thanks. Has anyone considered deleting functions that are not allowed? So e.g. in this case declaring class wxFrame : public wxTopLevelWindow { ... SetScrollbar(int, int, int, int, bool) = delete; }; WX on windows allows a lot of constructs that don't work on linux. Even a warning would have been...
by RobertSimpson
Mon Oct 22, 2018 11:05 pm
Forum: C++ Development
Topic: SetScrollbar() asserts in GTK build with "this window is not scrollable"
Replies: 3
Views: 416

SetScrollbar() asserts in GTK build with "this window is not scrollable"

I have a wxFrame with a vertical scrollbar. It works fine in windows (both native and msys64) but asserts in Ubuntu (GTK build). The line causing the problem is at /src/gtk/window.cpp:5910: wxCHECK_RET( sb, wxT("this window is not scrollable") ); More details: #0 0x00007ffff72a161d in wxWindow::SetS...
by RobertSimpson
Sun Oct 14, 2018 8:14 pm
Forum: Compiler / Linking / IDE Related
Topic: How to use wx-config in Eclipse
Replies: 1
Views: 809

Re: How to use wx-config in Eclipse

After some experimenting, it appears it can be made to work by changing the 'Command Line Pattern' in the linker options to ${COMMAND} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS} ${FLAGS} It is actually mentioned here: https://wiki.wxwidgets.org/Eclipse,_CDT_%26_MingW_%26_MSYS_Setup_Guide (fo...
by RobertSimpson
Sun Oct 14, 2018 5:17 pm
Forum: Compiler / Linking / IDE Related
Topic: How to use wx-config in Eclipse
Replies: 1
Views: 809

How to use wx-config in Eclipse

Not sure if this a WX issue or an Eclipse issue but here goes... I'm running the latest version (2018-09) of Eclipse in windows 10 using msys2 (like MinGW but newer). I have everything compiling but I would like to use wx-config directly in the linker options rather than having to copy-paste. On the...
by RobertSimpson
Sun Oct 14, 2018 4:56 pm
Forum: Compiler / Linking / IDE Related
Topic: Compile error building wxWidgets under msys2
Replies: 3
Views: 872

Re: Compile error building wxWidgets under msys2

Thanks. That fixes it. No other errors.

Rob.
by RobertSimpson
Fri Oct 12, 2018 10:25 pm
Forum: Compiler / Linking / IDE Related
Topic: Compile error building wxWidgets under msys2
Replies: 3
Views: 872

Compile error building wxWidgets under msys2

Just tried compiling under msys2 (not msys) using the instructions here: https://wiki.wxwidgets.org/Eclipse,_CDT_%26_MingW_%26_MSYS_Setup_Guide#Building_and_Configuring_wxWidgets (The only thing modified is the directory names as they are slightly different with msys2 compared with the original MinG...
by RobertSimpson
Thu Sep 07, 2017 1:34 pm
Forum: C++ Development
Topic: wxComboBox: How to clear list without clearing text box
Replies: 3
Views: 434

Re: wxComboBox: How to clear list without clearing text box

No. Really just the functionality of the windows search box. So e.g. if I'm selecting one of a set of names and I type in 'Jo', I would like the list to contain {Joan, Joanne, Joe, John, Jonathan...} and then I can select the one I want. What I have kind of works but I have to manually select the dr...
by RobertSimpson
Thu Sep 07, 2017 12:37 pm
Forum: C++ Development
Topic: wxComboBox: How to clear list without clearing text box
Replies: 3
Views: 434

wxComboBox: How to clear list without clearing text box

I'm trying to implement an auto-drop-down list similar to how the windows search box works. To do this I need to be able to replace the contents of the list without disturbing the textbox. It appears Clear() and Set() all call call Clear() on the text box. The only way I can find to clear the list i...
by RobertSimpson
Sun Oct 30, 2016 11:12 am
Forum: C++ Development
Topic: wxStaticLine as the only object in wxBoxSizer
Replies: 4
Views: 476

Re: wxStaticLine as the only object in wxBoxSizer

Thanks. That was the problem. I think I was assuming that when Add() is called on an object, wxEPAND applies to the object, not the parameter. 'sizer_panel_vert' actually contains many other objects that fixes the width so I didn't see the need to add wxEPAND again. In fact, it didn't make sense to ...
by RobertSimpson
Tue Oct 25, 2016 7:25 am
Forum: C++ Development
Topic: wxStaticLine as the only object in wxBoxSizer
Replies: 4
Views: 476

Re: wxStaticLine as the only object in wxBoxSizer

Isn't wxGROW the same as wxEXPAND? I acutally had wxEXPAND there originally but changed it as the only example I could find used wxGROW.
by RobertSimpson
Mon Oct 24, 2016 11:42 pm
Forum: C++ Development
Topic: wxStaticLine as the only object in wxBoxSizer
Replies: 4
Views: 476

wxStaticLine as the only object in wxBoxSizer

I have a wxPanel with several sizers (wxGridSizer and wxBozSixer). If I add a wxStaticLine to a sizer that contains other objects, it seems to work as expected. However, if I add a new wxBoxSizer and move the wxStaticLine into it (so that the sizer contains the line and nothing else), it's not visib...
by RobertSimpson
Sun Feb 14, 2016 10:29 am
Forum: C++ Development
Topic: wxToggleButton (bitmap, using sizers) not redrawing
Replies: 1
Views: 175

wxToggleButton (bitmap, using sizers) not redrawing

I have a wxPanel with 30+ bitmap buttons. The positioning is all controlled using sizers. Most buttons are simple wxButtons and all behave correctly. I have a few that are wxToggleButtons and some are not being redrawn following changes to the sizer (using wxSizer::Show) or if the main frame is resi...