W
Hi, ALL,I have a "template" dialog which will be used to display 3 different sets of data from the DB.My problem is following:1. If I retrieve the data in the caller than I will waste 2 parameters.2. If I retrieve the data in the dialog constructor and there will be an error during retrieval I might end up with the memory leak.What is the way to resolve this to the best solution?Thank you.Statistics: Posted by ONEEYEMAN — Thu Nov 12, 2026 9:19 pm
W
Nice work!Statistics: Posted by ollydbg23 — Tue Nov 10, 2026 9:59 am
W
Thank you very much. A lot of hard work from the wxWidgets team has gone into this as well; it would have been quite difficult to pull off without it. If I had had to build the UI from scratch for each platform myself, I wouldn't have got anywhere near this far Statistics: Posted by szigand — Tue Nov 10, 2026 8:45 am
W
Looks very professional, good job Statistics: Posted by doublemax — Tue Nov 10, 2026 6:19 am
W
Hi everyone,I would like to introduce my multi-platform remote desktop project, which I have built from the ground up over many years and have just made public. I used several open-source libraries for it, and for the main user interface, wxWidgets seemed like a great fit thanks to its internal architecture and broad platform support. Although I used very few native widgets, wxWidgets provides a really good API for drawing custom components, and its mouse and keyboard event handling works…
W
Hi,What is the main monitor - 1 or 2?But you still didn't explain why it is so important.Also as I said - you can't control window position/size under Wayland...Besides - what do you think will happen when the user will move that window to another monitor?Thank you.Statistics: Posted by ONEEYEMAN — Thu Oct 29, 2026 1:05 am
W
Generally speaking, it may be better to use FileNameToURL():https://docs.wxwidgets.org/3.2/classwx_ ... e6b08a9615Statistics: Posted by PB — Wed Oct 28, 2026 7:18 pm
W
Do you really have to open the default browser? If you just want to show a HTML page, you could use a wxFrame with a wxWebView. Then you had total control over everything.Statistics: Posted by doublemax@work — Wed Oct 28, 2026 2:29 pm
W
Hi,when end user works on dual monitor exe triggered in monitor 2 and excepting in on same screen but it was updated in monitor 1.So i need to update position.wxLaunchDefaultBrowser(strHTMLFilePath);wxMessageBox(strHTMLFilePath);const wxString browserWindowTitle =wxT(L"Google - Google Chrome");// Find the monitor containing this dialog.int monitorIndex = wxDisplay::GetFromWindow(this);if (monitorIndex == wxNOT_FOUND)monitorIndex = 0;wxDisplay display(static_cast<unsigned…
W
Hi,On top of doublemax reply - why do you want to do that?Does it really matter where the external program will show?Thank you.Statistics: Posted by ONEEYEMAN — Wed Oct 28, 2026 12:09 pm
W
First you should check if the window title you're looking for is actually correct.Statistics: Posted by doublemax@work — Wed Oct 28, 2026 11:40 am
W
HiIts an external monitor could be extending the primary one. I have not checked in sample display.Also i tried this codeCode: [b]bool MWModelSummaryReportDialog::PositionBrowserWindow(const wxString& windowTitle,const wxRect& targetArea){if (windowTitle.IsEmpty())return false;wxMessageBox(windowTitle);#ifdef WINDOWSHWND browserWindow = ::FindWindowW(NULL,windowTitle.wc_str());if (!browserWindow){wxMessageBox("browser window");return false;}if (::IsIconic(browserWindow)…
W
I don't think you can control the window position when using wxLaunchDefaultBrowser, it's a separate application.Statistics: Posted by doublemax@work — Wed Oct 28, 2026 8:00 am
W
HiThere are couple of possible configurations.Your external monitor could be extending the primary one or it could duplicate it.What do you want to do in both cases?Also - did you look at display sample?Thank you.Statistics: Posted by ONEEYEMAN — Wed Oct 28, 2026 6:46 am
W
Hi,I need to know other than Wayland is it possible to setposition. If so, update sample code for positioning wxLaunchDefaultBrowser in respective monitor.Thanks,Sivaranjani.Statistics: Posted by sivaranjani — Wed Oct 28, 2026 6:19 am
W
Hi,Under Linux - if you are using Wayland - it's not possible.Thank you.Statistics: Posted by ONEEYEMAN — Wed Oct 28, 2026 5:33 am