Search found 1182 matches

by T-Rex
Sun Feb 18, 2018 10:05 am
Forum: C++ Development
Topic: Running window on thread
Replies: 4
Views: 467

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

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

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
by T-Rex
Thu Feb 08, 2018 1:07 pm
Forum: C++ Development
Topic: Event driven editable rectangle vector class
Replies: 8
Views: 671

Re: Event driven editable rectangle vector class

Looks just like an incorrect app's architecture. 1. Rectangle should be responsible only for drawing itself. 2. The ScrollView should be responsible for mouse clicks. In this case the event handler will know about the `r` member variable, you can just delete the `r` object and reset the pointer to n...
by T-Rex
Mon Feb 05, 2018 2:48 pm
Forum: C++ Development
Topic: wx <--> stl
Replies: 7
Views: 750

Re: wx <--> stl

Use wxListCtrl with wxLC_VIRTUAL style. From official docs : List box elements are numbered from zero and while the maximal number of elements is unlimited, it is usually better to use a virtual control, not requiring to add all the items to it at once, such as wxDataViewCtrl or wxListCtrl with wxLC...
by T-Rex
Thu Nov 30, 2017 1:25 pm
Forum: C++ Development
Topic: Classes wxXml... in wxWidgets 3.1
Replies: 2
Views: 381

Re: Classes wxXml... in wxWidgets 3.1

You'd better ask the roadmap-related questions in wx-dev Google groups. However, as far as I remember, wxXmlDocument and related classes exist in wxWidgets for a long time and I don't remember any breaking changes during last several versions. Documentation for 3.1 mentions these classes and seems t...
by T-Rex
Fri Nov 24, 2017 4:26 pm
Forum: C++ Development
Topic: Characters looks like Chinese in zip
Replies: 11
Views: 936

Re: Characters looks like Chinese in zip

what type is zipfiles variable?
by T-Rex
Mon Nov 06, 2017 4:05 pm
Forum: wxWidgets Development (Russian)
Topic: перевести в wxString \320\235\320\265\320\264\32 и т.д.
Replies: 10
Views: 2542

Re: перевести в wxString \320\235\320\265\320\264\32 и т.д.

Вот прям чтобы std::string... как-то так, на скорую руку: void test() { char filename[] = "2.txt"; struct stat stat_buf; int rc = stat(filename, &stat_buf); size_t file_length = rc == 0 ? stat_buf.st_size : 0; if (file_length == 0) return; FILE * fp = fopen(filename, "r"); if (fp) { char * text = ne...
by T-Rex
Wed Nov 01, 2017 1:56 pm
Forum: wxWidgets Development (Russian)
Topic: перевести в wxString \320\235\320\265\320\264\32 и т.д.
Replies: 10
Views: 2542

Re: перевести в wxString \320\235\320\265\320\264\32 и т.д.

Для С++ это не валидное написание Unicode-символов. Должно быть как-то так: char b = '\u0444'; Если приходит прям в таком виде, как в описании поста, то только парсить, при чем \320 это три символа в строке сейчас: '\3', '2', '0' Можешь выложить файл дампа Wireshark? Так будет проще понять, что прои...
by T-Rex
Thu Sep 21, 2017 7:52 am
Forum: C++ Development
Topic: wxDynamicLibrary Load used to work
Replies: 18
Views: 1658

Re: wxDynamicLibrary Load used to work

Hi. The problem might be related to the different platform toolsets used for the desktop app and for the DLL itself. Visual Studio supports 2 types of platform toolsets - for Windows XP and for modern versions of Windows: https://www.screencast.com/t/ri8lprpn64 Most likely, if the app has been devel...
by T-Rex
Sat Jun 24, 2017 7:48 am
Forum: wxWidgets Development (Russian)
Topic: Проблема с wxRichTextCtrl в CodeBlocks и WxWidgets 3.0.2
Replies: 10
Views: 2803

Re: Проблема с wxRichTextCtrl в CodeBlocks и WxWidgets 3.0.2

И да, там же есть стандартный пример для richtext, в нем можно посмотреть список либ и их последовательность, в Makefile или при компиляции.
by T-Rex
Sat Jun 24, 2017 7:45 am
Forum: wxWidgets Development (Russian)
Topic: Проблема с wxRichTextCtrl в CodeBlocks и WxWidgets 3.0.2
Replies: 10
Views: 2803

Re: Проблема с wxRichTextCtrl в CodeBlocks и WxWidgets 3.0.2

Судя по тому, что ругается на XML функции, попробуй после base добавить expat (он вроде тоже собирается с wxWidgets).
Еще есть смысл таки доавить либу для richtext но либа с xml должна быть в списке после richtext. Сначала в списке идет "что зависит", потом "от чего зависит"
by T-Rex
Sat May 20, 2017 10:07 am
Forum: C++ Development
Topic: is there Outlook style Vertical menu Control with wxWidgets?
Replies: 9
Views: 1998

Re: is there Outlook style Vertical menu Control with wxWidgets?

It works with 3.0. You probably running it the wrong way. You could e.g. try to debug what happens and then resolve that problem.
It's open source and you can improve the code the way you want.