Search found 1193 matches

by T-Rex
Thu Mar 22, 2018 10:53 am
Forum: Compiler / Linking / IDE Related
Topic: codeblock + wxwidgets "undefined reference" error
Replies: 2
Views: 1104

Re: codeblock + wxwidgets "undefined reference" error

You probably need to add the wxWidgets JPEG library (the exact name may vary depending on your setup, should be something with `wxjpeg` in the file name) after all other wxWidgets libraries in the list of additional dependencies in your project's linker settings.
by T-Rex
Thu Mar 08, 2018 7:17 pm
Forum: Compiler / Linking / IDE Related
Topic: How do I use wxformbuilder inherited class?
Replies: 6
Views: 940

Re: How do I use wxformbuilder inherited class?

Can you post the implementation of MyFrame1::MyFrame1(...) constructor?
by T-Rex
Wed Mar 07, 2018 9:14 am
Forum: C++ Development
Topic: Screen sharing app
Replies: 4
Views: 487

Re: Screen sharing app

So I would be able to create an area selector like this with wxWidgets ? Yes. Capture the screenshot, show the full screen winow and show this screenshot on this window with the area selector. Would it be cross-platform ? If you make it cross-platform, then, for sure, it will be. When using wxWidge...
by T-Rex
Tue Mar 06, 2018 6:25 pm
Forum: Compiler / Linking / IDE Related
Topic: How do I use wxformbuilder inherited class?
Replies: 6
Views: 940

Re: How do I use wxformbuilder inherited class?

Code: Select all

FkF1 *frame = new FkF1(NULL);
?
by T-Rex
Thu Mar 01, 2018 10:03 am
Forum: C++ Development
Topic: webServer and wxThread, multi threading?
Replies: 2
Views: 435

Re: webServer and wxThread, multi threading?

When you want to handle the POST data, create another thread (I personally think that std::thread could be easier for you) and pass the lambda function there which grabs the outer data by reference. But indeed, you will need to store the POST data somewhere to ensure that it stays alive after your c...
by T-Rex
Wed Feb 28, 2018 9:57 am
Forum: C++ Development
Topic: Connect problem
Replies: 4
Views: 466

Re: Connect problem

You are adding the event handler to your Rect object. When you call Connect() it means like 'when `r` receives the mouse double click event, call the OnDoubleClick method of myFrame'. So, now you have the Rect object which can handle double click events. But you still didn't make the `r` object to r...
by T-Rex
Mon Feb 26, 2018 12:25 pm
Forum: wxWidgets Development (Russian)
Topic: wxDialog c wxRESIZE_BORDER стилем без угловой иконки
Replies: 2
Views: 1616

Re: wxDialog c wxRESIZE_BORDER стилем без угловой иконки

wxDialog dlg(mainWindow, wxID_ANY, wxT("Demo"), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER); wxBoxSizer * sizer = new wxBoxSizer(wxVERTICAL); wxBoxSizer * psizer = new wxBoxSizer(wxVERTICAL); wxPanel * panel = new wxPanel(&dlg); wxTextCtrl * edit = new wxTextCtrl(pan...
by T-Rex
Wed Feb 21, 2018 1:42 pm
Forum: C++ Development
Topic: wxWidgets, private classes and header files
Replies: 2
Views: 433

Re: wxWidgets, private classes and header files

Move the implementation of all methods of Serial class into separate CPP file.
Or, just make them inline (inside the class). You get these errors because you have the implementation of methods and their declaration in the same hader file, which is visible by multiple other source files.
by T-Rex
Wed Feb 21, 2018 9:08 am
Forum: wxWidgets Development (Russian)
Topic: wxShell и wxExecute не любят двойные кавычки в папраметрах
Replies: 7
Views: 1829

Re: wxShell и wxExecute не любят двойные кавычки в папраметрах

В общем, там, наверное, проблема с pause или с концовкой где выдача переадресуется в файл. У меня скачанный openssl с пол-пинка так и не заработал с gost, а настраивать лень и некогда. Но с pause я вижу что оно там в консоль выводит usage, а без pause сразу консольное окно закрывается. Может даже вс...
by T-Rex
Tue Feb 20, 2018 10:12 am
Forum: wxWidgets Development (Russian)
Topic: wxShell и wxExecute не любят двойные кавычки в папраметрах
Replies: 7
Views: 1829

Re: wxShell и wxExecute не любят двойные кавычки в папраметрах

Windows. С кавычками работает. wxExecute(wxT("notepad \"D:\\Projects\\README.md\"")); Linux. Тоже работает нормально. long exitCode = wxExecute(wxT("gedit \"/home/t-rex/demo.txt\"")); Какая результирующая строка получается после подстановки параметров? Как себя ведет команда без редиректа выдачи в ф...
by T-Rex
Sun Feb 18, 2018 3:36 pm
Forum: C++ Development
Topic: Running window on thread
Replies: 4
Views: 570

Re: Running window on thread

Example of how to use wxWidgets in DLL: https://github.com/T-Rex/wxModularApp Related article (in Russian, you can use Google Translate): https://wxwidgets.info/razrabotka-krossplatformennyx-modulnyx-prilozhenij-na-c-s-bibliotekoj-wxwidgets/ You will need to combine the approach from the forum topic...
by T-Rex
Sun Feb 18, 2018 10:05 am
Forum: C++ Development
Topic: Running window on thread
Replies: 4
Views: 570

Re: Running window on thread

There also was a separate topic with an example of multi-threaded UI.
by T-Rex
Sun Feb 11, 2018 10:25 am
Forum: C++ Development
Topic: Event driven editable rectangle vector class
Replies: 8
Views: 862

Re: Event driven editable rectangle vector class

You can write a method to edit object by yourself, I think. I gave you the link as a reference of how you can implement what you want in a manner that will work more or less fine, without the intention of making the work instead of you. And yes, you can use any 3rd-party source code, which implement...
by T-Rex
Fri Feb 09, 2018 9:18 am
Forum: C++ Development
Topic: Event driven editable rectangle vector class
Replies: 8
Views: 862

Re: Event driven editable rectangle vector class

dkaip wrote:]#include <tif_config.h> don't exist.
%WXWIN%\src\tiff\libtiff - add this to include directories