Search found 26 matches

by ebyrob
Tue Mar 13, 2018 2:34 pm
Forum: C++ Development
Topic: Calling wxApp's OnInit when using wxIMPLEMENT_APP_NO_MAIN
Replies: 8
Views: 2438

Re: Calling wxApp's OnInit when using wxIMPLEMENT_APP_NO_MAIN

Awesome guys!!! Definite weight off my mind. I remember reading a lot of samples back when I first did all of this, I think the tutorial I followed wasn't really main-line. I may have skimmed the included DLL tutorial, but it looks definitely worth a re-read if the information in it is that good! Th...
by ebyrob
Mon Mar 12, 2018 8:55 pm
Forum: C++ Development
Topic: Calling wxApp's OnInit when using wxIMPLEMENT_APP_NO_MAIN
Replies: 8
Views: 2438

Re: Calling wxApp's OnInit when using wxIMPLEMENT_APP_NO_MAIN

Wow I didn't really think about this at the time but... I've got a wx app running entirely on a side-thread. Everything I do happens on that single side-thread and, luckily for me, seems to mostly work. I guess this may seem less strange if you realize my entire application is a "DLL plugin" for any...
by ebyrob
Mon Mar 12, 2018 8:06 pm
Forum: General Forum Issues
Topic: Bad Gateway on wxwidgets.org right now
Replies: 3
Views: 1546

Re: Bad Gateway on wxwidgets.org right now

Too slow I guess, probably a good thing. (works now)

Is there a button to delete topic? (and / or a better place to report issues when the normal website is down?)
by ebyrob
Mon Mar 12, 2018 7:47 pm
Forum: C++ Development
Topic: wxGrid popup dialog editing string cell causes crash
Replies: 5
Views: 811

Re: wxGrid popup dialog editing string cell causes crash

Sorry for not replying sooner. It seems to work in 3.1.0 quite splendidly.
by ebyrob
Mon Mar 12, 2018 7:38 pm
Forum: General Forum Issues
Topic: Bad Gateway on wxwidgets.org right now
Replies: 3
Views: 1546

Bad Gateway on wxwidgets.org right now

Trying to go to "www.wxwidgets.org" I'm seeing something like: ERROR 502 - BAD GATEWAY ------ ...=> Web Front-End => Web Back-End... ...clear browser cache... ...Please contact our Live Support... I suppose this isn't the best place to report it, but not sure where else. Could just be my configurati...
by ebyrob
Fri Feb 16, 2018 9:01 pm
Forum: C++ Development
Topic: make a wxDialog resizable
Replies: 4
Views: 2727

Re: make a wxDialog resizable

Thanks! Setting the style in the call to wxDialog() constructor did the trick!
by ebyrob
Fri Feb 16, 2018 7:01 pm
Forum: C++ Development
Topic: make a wxDialog resizable
Replies: 4
Views: 2727

Re: make a wxDialog resizable

I'm having the same problem as the OP on Win7 64-bit Visual Studio 2010 version 3.1.0 of wx. I've got a wxDialog and I'd like to make it re-sizeable, but it won't resize. (wxFrame works fine btw) Here is a full program in one C++ file with the problem: #define WIN32_LEAN_AND_MEAN #define _CRT_SECURE...
by ebyrob
Tue Nov 28, 2017 2:34 pm
Forum: C++ Development
Topic: enable "print current page" in wxPrintDialogData
Replies: 2
Views: 641

Re: enable "print current page" in wxPrintDialogData

This is years late, but: Apparently wxWidgets uses PrintDlg() to show the print dialog, but only PrintDlgEx() can support "current page" selection. In wxWidgets version 3.1.0.0 this is in src\msw\printdlg.cpp line 755: int wxWindowsPrintDialog::ShowModal() { // ... bool ret = (PrintDlg( pd ) != 0); ...
by ebyrob
Mon Nov 13, 2017 10:03 pm
Forum: C++ Development
Topic: Calling wxApp's OnInit when using wxIMPLEMENT_APP_NO_MAIN
Replies: 8
Views: 2438

Re: Calling wxApp's OnInit when using wxIMPLEMENT_APP_NO_MAIN

I'm confused. Doesn't wxEntry() do all of that for you so that:

wxApp* app = new MyApp();
wxApp::SetInstance(app);
wxEntry(argc, argv);

becomes simply:

wxEntry(argc, argv);

Controlled by:
wxIMPLEMENT_APP_NO_MAIN(MyApp);

Of course.
by ebyrob
Thu Sep 29, 2016 8:52 pm
Forum: C++ Development
Topic: wxGrid popup dialog editing string cell causes crash
Replies: 5
Views: 811

Re: wxGrid popup dialog editing string cell causes crash

In this wxGrid I want nothing to pop up at all. I have another wxGrid in my app which is read-only cells where I popup a context menu myself which seems to work fine. I do this by handling EVT_GRID_CELL_RIGHT_CLICK. I was able to get a debug mode diagnostic out of the "grid" sample. I'm on Windows 7...
by ebyrob
Wed Sep 28, 2016 8:38 pm
Forum: C++ Development
Topic: wxGrid popup dialog editing string cell causes crash
Replies: 5
Views: 811

wxGrid popup dialog editing string cell causes crash

I've created a default wxGrid in one of my applications using: m_pMyGrid->CreateGrid(nNumRows, nNumColumns); and m_pMyGrid->SetCellValue("some string", nRow, nColumn); at that point the wxGrid exists on screen with editable cells. If I click on one of the cells, I can highlight the string inside and...