Search found 1176 matches

by T-Rex
Mon Aug 05, 2019 2:51 pm
Forum: C++ Development
Topic: Restrict mouse pointer to area of GLCanvas
Replies: 2
Views: 75

Re: Restrict mouse pointer to area of GLCanvas

There are dedicated platform-specific functions for this:
https://docs.microsoft.com/en-us/window ... clipcursor
https://www.x.org/archive/X11R6.8.2/doc ... ter.3.html (+confine_in)

You could create a wrapper class with #ifdef'ed logic for this.
by T-Rex
Mon Aug 05, 2019 10:30 am
Forum: C++ Development
Topic: [wxMSW[3.0.3] Convert plain text to html text
Replies: 4
Views: 96

Re: [wxMSW[3.0.3] Convert plain text to html text

You probably could use libhtmlcxx and HTML::decode_entities function.
by T-Rex
Thu Jul 25, 2019 3:06 pm
Forum: C++ Development
Topic: Combining title bar and menu bar into one (on Windows)?
Replies: 6
Views: 159

Re: Combining title bar and menu bar into one (on Windows)?

The feature you asking about is very platform-specific and does not come out of the box with wxWidgets. You probably will need to implement the custom platform-specific solution using native APIs.

Another example here.
by T-Rex
Thu May 23, 2019 9:59 am
Forum: C++ Development
Topic: Window layout question
Replies: 5
Views: 199

Re: Window layout question

I think that it should be possible with wxAUI art classes:
https://docs.wxwidgets.org/3.0/classwx_ ... r_art.html
https://docs.wxwidgets.org/3.0/classwx_aui_tab_art.html

But anyway will take some time to implement.
by T-Rex
Thu Apr 25, 2019 11:36 am
Forum: C++ Development
Topic: Issue in Capturing Screenshot using wxGraphicsContext
Replies: 17
Views: 432

Re: Issue in Capturing Screenshot using wxGraphicsContext

Post some source code maybe? So that we could see whether there is a problem in screen capturing logic.
by T-Rex
Mon Apr 15, 2019 12:49 pm
Forum: C++ Development
Topic: Memory data sharing between two applications
Replies: 5
Views: 226

Re: Memory data sharing between two applications

You could check wxConnection and related classes and their implementation and implement something similar at Qt app's side (in general, you will need to put the header with signature at the beginning of the message).
by T-Rex
Wed Mar 20, 2019 12:32 pm
Forum: C++ Development
Topic: Writing to binary file crashes application
Replies: 6
Views: 195

Re: Writing to binary file crashes application

You probably should call Flush() and Close() for output file and Close() for input file instead of calling the descructor manually. I dont understand this. I have 2 wxFileDialog components which I use ShowModal() and GetPath(). I didn't explicitly define any global variables for them. Your file dial...
by T-Rex
Wed Dec 26, 2018 3:51 pm
Forum: Compiler / Linking / IDE Related
Topic: Compile WxWidgets for the BeagleBone Black
Replies: 2
Views: 218

Re: Compile WxWidgets for the BeagleBone Black

Your question is too general. Most likely you will not receive the complete answer. Would be better if you try to cross-compile by yourself and then came back here with specific problem. There is a Wiki guide for cross-compilation. If you have the toolkit for compilation of ARM apps on your desktop ...
by T-Rex
Fri Nov 30, 2018 9:24 am
Forum: C++ Development
Topic: wxAuiNotebook: How to auto scroll to last opened one
Replies: 3
Views: 425

Re: wxAuiNotebook: How to auto scroll to last opened one

Pretty sure that the code below can be improved much, but looks like it does what you want. wxAuiTabCtrl * GetTabCtrl(wxWindow * parent) { for (auto node = parent->GetChildren().GetFirst(); node; node = node->GetNext()) { if (!node->GetData()) continue; if (node->GetData()->IsKindOf(CLASSINFO(wxAuiT...
by T-Rex
Mon Nov 19, 2018 9:59 am
Forum: C++ Development
Topic: secondary thread accessing gui functions
Replies: 2
Views: 129

Re: secondary thread accessing gui functions

Since reading from wxListCtrl means also usage of GUI-related functionality, it's also not recommended because you may get into race conditions while accessing the UI control from both threads (UI and worker). If you want to send some data to the worker thread, you could probably use wxMessageQueue ...
by T-Rex
Sat Nov 17, 2018 2:04 pm
Forum: C++ Development
Topic: about wxVector
Replies: 3
Views: 657

Re: about wxVector

This is because it's not permitted to erase the iterator inside the loop if this iterator is used as loop's parameter. You should iterate by index then or re-assign the value of `i` while erasing . Just Google for the relevant example. https://stackoverflow.com/questions/596162/can-you-remove-elemen...
by T-Rex
Thu Nov 01, 2018 2:35 pm
Forum: C++ Development
Topic: Internationalisation
Replies: 22
Views: 1263

Re: Internationalisation

https://wxwidgets.info/wxtranslation/

It's for older versions of wxWidgets and may require soma minor changes in the source code, but gives the idea of how to make .mo files work in your app.
by T-Rex
Sat Sep 22, 2018 10:46 am
Forum: General Development
Topic: Tool to find memory leaks
Replies: 18
Views: 1459

Re: Tool to find memory leaks

You should be able to download the Debug Symbols for Windows DLLs from within Visual Studio https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/debugger-download-symbols https://docs.microsoft.com/en-us/windows/desktop/dxtecharts/debugging-with-symbols#using-the-microsoft-symbol-serve...
by T-Rex
Mon Sep 17, 2018 11:14 am
Forum: General Development
Topic: Tool to find memory leaks
Replies: 18
Views: 1459

Re: Tool to find memory leaks

Visual Leak Detector worked fine for me in VS
by T-Rex
Fri Sep 14, 2018 10:44 am
Forum: wxWidgets Development (Russian)
Topic: как в DEB пакет всунуть ярлык на рабочем столе
Replies: 7
Views: 1498

Re: как в DEB пакет всунуть ярлык на рабочем столе

Можно внутри скрипта попробовать сделать source с файла ~/.config/user-dirs.dirs юзера, который сделал sudo. там должна быть куча XDG_* переменных