Search found 1173 matches

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

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: 259

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: 157

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: 117

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: 155

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: 383

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: 92

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: 603

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: 992

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: 1137

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: 1137

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: 1314

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

Можно внутри скрипта попробовать сделать source с файла ~/.config/user-dirs.dirs юзера, который сделал sudo. там должна быть куча XDG_* переменных
by T-Rex
Tue Sep 11, 2018 12:34 pm
Forum: wxWidgets Development (Russian)
Topic: как в DEB пакет всунуть ярлык на рабочем столе
Replies: 7
Views: 1314

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

Узнать кто вызвал sudo можно через

Code: Select all

sudo who|awk '{print $1}'
by T-Rex
Tue Sep 11, 2018 11:56 am
Forum: wxWidgets Development (Russian)
Topic: как в DEB пакет всунуть ярлык на рабочем столе
Replies: 7
Views: 1314

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

Вопрос, как бы, совсем не по wxWidgets, но https://ubuntuforums.org/showthread.php?t=968399 И там правильно пишут, не надо так делать. Это только в богомерзкой винде за такое руки не отрывают. UPD: https://www.debian.org/doc/manuals/maint-guide/dother.en.html#maintscripts - в постинсталл скрипте мож...