Search found 14157 matches

by doublemax
Thu Nov 14, 2019 2:19 pm
Forum: C++ Development
Topic: Critical error when calling _("str").mb_str(wxConvUTF8)
Replies: 3
Views: 48

Re: Critical error when calling _("str").mb_str(wxConvUTF8)

I've never used the prebuilt binaries. Can you please try to build wxWidgets from the sources yourself? With the provided VS solution files that is a trivial task. And just for the record: char* pszTmp = (const_cast<char*>((const char*)str.mb_str())); You should not use a pointer returned from wxStr...
by doublemax
Wed Nov 13, 2019 5:34 pm
Forum: C++ Development
Topic: Problems with wxScrolledWindow with wxWidgets 3.1.2
Replies: 4
Views: 75

Re: Problems with wxScrolledWindow with wxWidgets 3.1.2

I'm not aware of any changes between 3.1.2 and 3.1.3 that could explain this. And there is just too much code to read. Please try to create a minimal compilable sample that shows the problem.
by doublemax
Wed Nov 13, 2019 12:01 am
Forum: Component Writing
Topic: TabStop on custom control
Replies: 4
Views: 102

Re: TabStop on custom control

I tried placing the panel in the whole frame, and then using that as parent. I also tried placing a tiny panel in the corner and leaving the parent set as the frame. In both cases, the controls failed to appear. I think we need to see some code now. It's hard to tell what you're doing wrong just by...
by doublemax
Tue Nov 12, 2019 5:06 pm
Forum: Platform Related Issues
Topic: Menus mac
Replies: 2
Views: 71

Re: Menus mac

ONEEYEMAN wrote:
Tue Nov 12, 2019 3:15 pm
First there is an official French section in this forums
It's locked due to low traffic.
by doublemax
Tue Nov 12, 2019 6:26 am
Forum: Platform Related Issues
Topic: The "Hello World" Program
Replies: 2
Views: 65

Re: The "Hello World" Program

much applications launch with the menus of application in the menu bar and no one window need to be open I don't work under OSX, but AFAIK the menu bar of a frame is moved to the menu bar on the screen under OSX. And you need a place to handle the events, so i think you need a frame. What if you ju...
by doublemax
Tue Nov 12, 2019 6:21 am
Forum: Platform Related Issues
Topic: wxHTML cells are 0 width/height with wxGTK3/Linux?
Replies: 3
Views: 67

Re: wxHTML cells are 0 width/height with wxGTK3/Linux?

Please try your html code in a "normal" wxWidgets application first. I'm sure it'll work there. I don't work under Linux, but i have a faint memory that under GTK the size of a window is only known at a later time than under Windows. Which sounds like it could be the cause for your issue. Try lookin...
by doublemax
Mon Nov 11, 2019 9:33 pm
Forum: Platform Related Issues
Topic: wxGTK Accelerators
Replies: 12
Views: 135

Re: wxGTK Accelerators

You can read the table back with wxWindow::GetAcceleratorTable. But i'm not even sure if the menu shortcuts end up in that table.
by doublemax
Mon Nov 11, 2019 6:23 pm
Forum: Platform Related Issues
Topic: wxGTK Accelerators
Replies: 12
Views: 135

Re: wxGTK Accelerators

Are both these code snippets in the same file?

How is MENULOADALL defined?

Is it possible that the _() macro messes the string up?

If all that doesn't help, you'll need to try to create a minimal sample that shows the issue.
by doublemax
Sun Nov 10, 2019 10:53 pm
Forum: C++ Development
Topic: How to disable wxWebview border style ?
Replies: 10
Views: 157

Re: How to disable wxWebview border style ?

wxBORDER_NONE, 0, Remove the 0. virtual bool wxWebView::Create ( wxWindow * parent, wxWindowID id, const wxString & url = wxWebViewDefaultURLStr, const wxPoint & pos = wxDefaultPosition, const wxSize & size = wxDefaultSize, long style = 0, const wxString & name = wxWebViewNameStr )
by doublemax
Sat Nov 09, 2019 4:39 pm
Forum: C++ Development
Topic: wxThread exit vs destructor
Replies: 1
Views: 70

Re: wxThread exit vs destructor

The "official" place for clean-up would be in wxThread::OnExit(). But i can't think of any reason why using the dtor could be a problem.
by doublemax
Fri Nov 08, 2019 8:24 pm
Forum: Platform Related Issues
Topic: wxGTK Accelerators
Replies: 12
Views: 135

Re: wxGTK Accelerators

The "dialogs" sample doesn't use a dedicated wxAcceleratorTable. Try the "printing" sample and then try "CTRL-V" which should open a preview window.
by doublemax
Fri Nov 08, 2019 12:45 pm
Forum: Compiler / Linking / IDE Related
Topic: Compilation fails due to "_imp_"s
Replies: 3
Views: 168

Re: Compilation fails due to "_imp_"s

Looks like all the wxWidgets libraries are missing in the linker settings. This is all described in the link i posted. I still recommend to build wxWidgets and the "minimal" sample that comes with it from scratch before using CodeBlocks. Then you know everything is ok on the compiler and wx side and...