Search found 1185 matches

by T-Rex
Mon Oct 28, 2019 10:48 am
Forum: wxWidgets Development (Russian)
Topic: можно ли повысить приоритет основного процесса
Replies: 5
Views: 440

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

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

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

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: 2
Views: 211

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

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

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

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

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

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

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

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

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

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

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).