Search found 1189 matches

by T-Rex
Mon Mar 16, 2020 11:15 am
Forum: wxWidgets Development (Russian)
Topic: SetIcon в Win для глафной
Replies: 9
Views: 2326

Re: SetIcon в Win для глафной

wxIcon FrameIcon; FrameIcon.CopyFromBitmap(wxBitmap(wxImage(wxT("Icon/ico_051.ico")))); SetIcon(FrameIcon); На момент вызова Current Working Directory может не соответствовать директории где лежит исполняемый файл приложения. Попробуй, может, указывать полный путь (сначала получить путь к директори...
by T-Rex
Wed Feb 12, 2020 2:39 pm
Forum: wxWidgets Development (Russian)
Topic: wxGrid problems
Replies: 2
Views: 172

Re: wxGrid problems

Какая ОС, какая версия wxWidgets, чем собиралось? Как себя ведет если явно указать строковые значения для едитора? несколько(одинаково реализованных) wxGridCellBoolEditor и wxGridCellChoiceEditor Choice editor'ы данные берут из одного массива? Как себя ведет если скармливать им разные инстансы масси...
by T-Rex
Wed Jan 22, 2020 1:11 pm
Forum: C++ Development
Topic: Showing images from a video stream
Replies: 93
Views: 6654

Re: Showing images from a video stream

on Raspberry Pi 4 that needs to display images from the camera up to 60 Hz How the camera gets connected to RPi? With USB camera you most likely will not get 60 FPS. Method with background image grabbing and thread events looks fine for me. You could also use double-buffering in order to be able to...
by T-Rex
Thu Jan 16, 2020 2:07 pm
Forum: Compiler / Linking / IDE Related
Topic: How to create a shared library containing a wxWidgets GUI?
Replies: 7
Views: 353

Re: How to create a shared library containing a wxWidgets GUI?

2david_mtl
You could try to use this repo as a reference.
It utilizes CMake for generating projects for each platform. You can use the CMake generator for the IDE of your choice.
by T-Rex
Mon Oct 28, 2019 10:48 am
Forum: wxWidgets Development (Russian)
Topic: можно ли повысить приоритет основного процесса
Replies: 5
Views: 861

Re: можно ли повысить приоритет основного процесса

Повысить приоритет можно, но это не особо действенно будет. Не стоит также делать приоритет realtime, потому что остальные приложения не будут отвечать на действия пользователя и это еще влияет на отрисовку UI. Повышение приоритета потока - это чисто нативный функционал, не относящийся к wxWidgets. ...
by T-Rex
Sat Oct 26, 2019 4:53 pm
Forum: General Development
Topic: Embedding PNG (converting PNG to c/h file)
Replies: 3
Views: 580

Re: Embedding PNG (converting PNG to c/h file)

There was a bin2c utility which works correctly in case if original file was a valid image. There was an updated version somewhere in forum's topics. Or there is another link . You could try to open the PNG in XnView and save it from there, to ensure that the file is valid. Also if you are loading t...
by T-Rex
Fri Oct 25, 2019 12:01 pm
Forum: C++ Development
Topic: Menu and toolbar synchronization
Replies: 3
Views: 391

Re: Menu and toolbar synchronization

What alys666 suggests is not a correct way to implement the desired logic. There is a special UI event, as doublemax suggests, and you can use the event object in such event handler to change the visibility or enable\disable all menus or toolbar buttons with specific ID.
by T-Rex
Fri Oct 11, 2019 10:04 am
Forum: wxWidgets Development (Russian)
Topic: send message to proccess
Replies: 3
Views: 520

Re: send message to proccess

Если оба приложения на wxWidgets, то можно wxConnection и смежные классы использовать. Если нет, то посмотреть на реализацию протокола (там не сложно, заголовок и дальше данные) в wxConnection и в wx-приложении юзать его, а в нативном просто реализовать парсинг по протоколу. Ну и всегда есть пайпы и...
by T-Rex
Tue Oct 08, 2019 3:05 pm
Forum: C++ Development
Topic: WebSocket Server
Replies: 3
Views: 450

Re: WebSocket Server

Just use libwebsockets in your application. You should be able to build it on all popular platforms, as a 3rd-party library which will be used for your app.
by T-Rex
Mon Sep 23, 2019 9:28 am
Forum: C++ Development
Topic: wxDatagramSocket unable to receive reply if reply port is not receive port at partner side
Replies: 3
Views: 170

Re: wxDatagramSocket unable to receive reply if reply port is not receive port at partner side

Try not to use the privileged port number (0-1023), this may not be available without admin privileges and firewall rules. BTW, try to temporary disable the firewall and check whether the communication works. If it works then you probably will need to add the firewall rule for your app. Also you cou...
by T-Rex
Fri Sep 20, 2019 7:31 am
Forum: C++ Development
Topic: wxXmlNode* by node name
Replies: 1
Views: 101

Re: wxXmlNode* by node name

There is a GetName() method in wxXmlNode. You will need to search for it recursively, similar to how it is shown in official docs.
by T-Rex
Wed Aug 28, 2019 1:13 pm
Forum: C++ Development
Topic: How to use Widgets from a dll
Replies: 6
Views: 312

Re: How to use Widgets from a dll

There is sample project which shows how to use wxWidgets controls from DLL. You have to build DLL version of wxWidgets (Debug DLL and Release DLL) and use the same compiler settings (see C++ -> Code Generation -> Runtime Library parameter in wxWidgets projects settings). In fact, CMake should put th...
by T-Rex
Tue Aug 27, 2019 4:30 pm
Forum: C++ Development
Topic: Create a window that lets the input events fall through
Replies: 4
Views: 263

Re: Create a window that lets the input events fall through

If you target WIndows platform only, then what you need is probably DirectX overlay. And this comes out of scope of wxWidgets. There are some existing libs for this: https://github.com/michel-pi/GameOverlay.Net https://github.com/lolp1/Overlay.NET https://www.unknowncheats.me/forum/c-and-c-/84234-ex...
by T-Rex
Mon Aug 05, 2019 2:51 pm
Forum: C++ Development
Topic: Restrict mouse pointer to area of GLCanvas
Replies: 2
Views: 176

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

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

You probably could use libhtmlcxx and HTML::decode_entities function.