Search found 13127 matches

by doublemax
Wed Mar 20, 2019 6:05 am
Forum: C++ Development
Topic: FlexGridSizer and control sizing
Replies: 5
Views: 49

Re: FlexGridSizer and control sizing

As the listboxes are in vertical box sizers, they need a proportion > 0 to grow in the vertical direction.

Code: Select all

    sizer8->Add( m_label6, 1, wxEXPAND, 0 );
    sizer8->Add( 5, 5, 0, wxEXPAND, 0 );
    sizer8->Add( m_fields, 1, wxEXPAND, 0 );
by doublemax
Tue Mar 19, 2019 11:34 pm
Forum: C++ Development
Topic: Menu accelerator issue
Replies: 3
Views: 30

Re: Menu accelerator issue

Windows 7, and yes the samples work. I'm at a total loss. I can't think of any obvious reason either. I assume the event handlers work when you invoke the menu items directly? Do you have any key event handlers? Either try to reproduce the issue in a minimal sample or try stripping down your code u...
by doublemax
Tue Mar 19, 2019 10:30 pm
Forum: C++ Development
Topic: Menu accelerator issue
Replies: 3
Views: 30

Re: Menu accelerator issue

Which platform?
Did you check any of the samples that use keyboard shortcuts with "Ctrl"? E.g. the "stc" sample does.
Make a test with wx 3.x. If it works there, it means there was a bug in 2.9.5 that has been fixed by now.
by doublemax
Tue Mar 19, 2019 9:10 pm
Forum: Database Related
Topic: problem with update
Replies: 4
Views: 41

Re: problem with update

wxSQLite3Statement.Bind(...) would have been the most reliable solution, no escaping necessary. Snippet taken from the wxSQLite3 sample: db.ExecuteUpdate("drop table emp;"); db.ExecuteUpdate("create table emp(empno int, empname char(20), salary double);"); tmStart = time(0); db.Begin(); wxSQLite3Sta...
by doublemax
Tue Mar 19, 2019 8:17 pm
Forum: Database Related
Topic: problem with update
Replies: 4
Views: 41

Re: problem with update

I get an exception, when I execute it.
Catch the exception and print out the error message. It will tell you exactly what's wrong.

BTW: How did you convert the RTF to XML?
by doublemax
Tue Mar 19, 2019 6:31 pm
Forum: C++ Development
Topic: reading very old binary file
Replies: 3
Views: 41

Re: reading very old binary file

It's a DBF database file and there are libraries to read them.
https://sourceforge.net/projects/dbase/
by doublemax
Tue Mar 19, 2019 5:58 pm
Forum: C++ Development
Topic: msw.font.no-proof-quality
Replies: 5
Views: 49

Re: msw.font.no-proof-quality

I keep getting exceptions related to "msw.font.no-proof-quality".
What's the exact message and on which operation does it assert?
by doublemax
Tue Mar 19, 2019 4:49 pm
Forum: C++ Development
Topic: Writing to binary file crashes application
Replies: 3
Views: 38

Re: Writing to binary file crashes application

The application runs and works fine when runninng through IDE (CodeBlocks), but when I run it as standalone application (\bin\Release\[name].exe), the application crashes at: The most likely reasons are probably: 1) the file is not found. Check the filepath 2) you don't have write access Also, you ...
by doublemax
Mon Mar 18, 2019 7:31 pm
Forum: C++ Development
Topic: Merging wxWidgets with existing OpenGL app
Replies: 2
Views: 31

Re: Merging wxWidgets with existing OpenGL app

Study the "mfc" sample that comes with wxWidgets. It should be similar to what you want to do.
by doublemax
Mon Mar 18, 2019 6:22 pm
Forum: C++ Development
Topic: FlexGridSizer and control sizing
Replies: 5
Views: 49

Re: FlexGridSizer and control sizing

This works for me: wxPanel *panel = new wxPanel(this, wxID_ANY); wxFlexGridSizer *box = new wxFlexGridSizer(2,1,1); wxListBox *lb1 = new wxListBox(panel, wxID_ANY ); lb1->Append("left 1"); lb1->Append("left 2"); lb1->Append("left 3"); lb1->Append("left 4"); lb1->Append("left 5"); lb1->Append("left 6...
by doublemax
Mon Mar 18, 2019 4:52 pm
Forum: Compiler / Linking / IDE Related
Topic: static monolithic build, is wiki outdated?
Replies: 5
Views: 76

Re: static monolithic build, is wiki outdated?

The advantage is that you only have one lib and you don't have to bother which ones you need and which not.
by doublemax
Mon Mar 18, 2019 4:50 pm
Forum: C++ Development
Topic: How to create such a layout?
Replies: 23
Views: 323

Re: How to create such a layout?

The problem with a custom wxGridRowHeaderRenderer is the scrollbar that appears if you have more columns:
grid.png
grid.png (2.06 KiB) Viewed 101 times
Which doesn't look very nice IMHO.
by doublemax
Mon Mar 18, 2019 4:45 pm
Forum: C++ Development
Topic: FlexGridSizer and control sizing
Replies: 5
Views: 49

Re: FlexGridSizer and control sizing

The second one is initially empty and therefore does not sized to have the same height.
Did you set the wxEXPAND sizer flag when adding this?
by doublemax
Mon Mar 18, 2019 6:49 am
Forum: Compiler / Linking / IDE Related
Topic: static monolithic build, is wiki outdated?
Replies: 5
Views: 76

Re: static monolithic build, is wiki outdated?

I think there are some platform/compiler combinations where this causes problems. But if it works for you, it's fine.
by doublemax
Mon Mar 18, 2019 6:22 am
Forum: C++ Development
Topic: How to create such a layout?
Replies: 23
Views: 323

Re: How to create such a layout?

Hide the column header with "grid->HideColLabels();"
Then you also shouldn't need the CustomCornerHeaderProvider.

Do the lines disappear when you set EnableGridLines(false)?
That would also hide the gridlines in the grid itself, but at least we'll know where they come from.