Search found 85 matches

by rudolfninja
Tue Jul 16, 2019 2:16 pm
Forum: Platform Related Issues
Topic: Linux. wxFRAME_NO_TASKBAR frame appears on taskbar
Replies: 2
Views: 112

Re: Linux. wxFRAME_NO_TASKBAR frame appears on taskbar

By double-clicking on it's titlebar or by clicking on corresponding button on window's titlebar. In the documentation you've quoted this note actual only for Windows (if I understand it correctly), but my problem is reproduced on Linux. Also, as it seen from the border's code, I don't use wxMINIMIZE...
by rudolfninja
Tue Jul 16, 2019 10:52 am
Forum: Platform Related Issues
Topic: Linux. wxFRAME_NO_TASKBAR frame appears on taskbar
Replies: 2
Views: 112

Linux. wxFRAME_NO_TASKBAR frame appears on taskbar

Hi guys, The problem is described in the subject. I've got class to draw border around application's window. The border is implemented like shaped-wxFrame with "wxFRAME_NO_TASKBAR" style. According to the documentation, it Creates an otherwise normal frame but it does not appear in the taskbar under...
by rudolfninja
Thu Jun 13, 2019 10:10 am
Forum: C++ Development
Topic: Linux. Draw border around specific window
Replies: 35
Views: 657

Re: Linux. Draw border around specific window

I decided to use gtk border for desktop and region and wxWidgets border for applications.
Thanks for your help!
by rudolfninja
Thu Jun 13, 2019 8:43 am
Forum: C++ Development
Topic: Linux. Draw border around specific window
Replies: 35
Views: 657

Re: Linux. Draw border around specific window

I can try it, but is it a good idea to draw on screen DC?
by rudolfninja
Thu Jun 13, 2019 8:38 am
Forum: C++ Development
Topic: Linux. Draw border around specific window
Replies: 35
Views: 657

Re: Linux. Draw border around specific window

So you mean I need to override OnPaint event in my border class and in case if m_windowRect is equal to display rect (has 0, 0 pos and display's size) I should get screen DC (or create instance of wxScreenDC?) and draw my border there by drawing lines in needed positions? Something like (p.s. follow...
by rudolfninja
Thu Jun 13, 2019 7:53 am
Forum: C++ Development
Topic: Linux. Draw border around specific window
Replies: 35
Views: 657

Re: Linux. Draw border around specific window

this? https://docs.wxwidgets.org/trunk/classwx_popup_window.html but why you need to draw something there, if you want to draw border of regular application window? I meant style I can use in wxFrame constructor to make it popup-like. I need to draw border there because my app can handle three type...
by rudolfninja
Thu Jun 13, 2019 7:24 am
Forum: C++ Development
Topic: Linux. Draw border around specific window
Replies: 35
Views: 657

Re: Linux. Draw border around specific window

When I drew border using gtk it wasn't possible to draw border on these panes until I changed border type to GTK_WINDOW_POPUP. As it said in description: If you're implementing something like a popup menu from scratch (which is a bad idea, just use GtkMenu), you might use GTK_WINDOW_POPUP. GTK_WINDO...
by rudolfninja
Thu Jun 13, 2019 6:19 am
Forum: C++ Development
Topic: Linux. Draw border around specific window
Replies: 35
Views: 657

Re: Linux. Draw border around specific window

Indeed, there was an error in code that calculates border area. Now everything looks fine. Here is one more problem left. When I draw border for whole desktop, then bottom and top panes of desktop are painted with something unclear: withborder.png desktop.png As you can see when I draw border there ...
by rudolfninja
Wed Jun 12, 2019 6:01 pm
Forum: C++ Development
Topic: Linux. Draw border around specific window
Replies: 35
Views: 657

Re: Linux. Draw border around specific window

It works almost fine for full desktop, but not for region (for example, if I want to draw border around rect with x = 198, y = 243, w = 500, h = 300), it draws border in incorrect offset. Here is my code: #include "stdafx.h" #include "LinuxBorderWindow.h" #include "Dumper.h" #include "WxWidgetsContr...
by rudolfninja
Wed Jun 12, 2019 3:35 pm
Forum: C++ Development
Topic: Linux. Draw border around specific window
Replies: 35
Views: 657

Re: Linux. Draw border around specific window

#pragma once #include <wx/frame.h> class wxTimer; class wxTimerEvent; class LinuxBorderWindow: public wxFrame { public: LinuxBorderWindow(int borderThickness = -1); ~LinuxBorderWindow(); void Start(); void Stop(); void SetPosition(int x, int y, int w, int h); void UpdateRegionSizeAndPos(); void Mov...
by rudolfninja
Wed Jun 12, 2019 1:23 pm
Forum: C++ Development
Topic: Linux. Draw border around specific window
Replies: 35
Views: 657

Re: Linux. Draw border around specific window

Tried it. It didn't help.
I tried to SetSize with 0, 0 offset, however it didn't help too.
by rudolfninja
Wed Jun 12, 2019 12:43 pm
Forum: C++ Development
Topic: Linux. Draw border around specific window
Replies: 35
Views: 657

Re: Linux. Draw border around specific window

xdpyinfo | grep dimensions returns 1024 x 768.
I tried to call GetPosition() after SetShape() and it returned 262, 28. The same position for border I see in paint (I made screenshot of the desktop and inserted it in the paint application).
Thanks for timer advise.
by rudolfninja
Wed Jun 12, 2019 11:48 am
Forum: C++ Development
Topic: Linux. Draw border around specific window
Replies: 35
Views: 657

Re: Linux. Draw border around specific window

Sounds logically, but it didn't help - the border still is in incorrect position. When I'm trying to set region's parameters, m_windowRect has x = 0, y = 0, w = 1024, h = 768, but border is drawn not on this area.
by rudolfninja
Wed Jun 12, 2019 10:57 am
Forum: C++ Development
Topic: Linux. Draw border around specific window
Replies: 35
Views: 657

Re: Linux. Draw border around specific window

Move function isn't used for now.
In SetPositon I use coordinates 0,0 and w = 1024, h = 768 to draw border around whole desktop.
If I run ScreenToClient for (0, 0) coordinates, it returns (0, -28).
But actually thank's for saying that Move function is recursive. I didn't notice that.
by rudolfninja
Wed Jun 12, 2019 8:39 am
Forum: C++ Development
Topic: Linux. Draw border around specific window
Replies: 35
Views: 657

Re: Linux. Draw border around specific window

Finally I managed to draw border, however I have some problems with border size and position. Here is my class: #pragma once #include <wx/frame.h> class wxTimer; class wxTimerEvent; class LinuxBorderWindow: public wxFrame { public: LinuxBorderWindow(int borderThickness = -1); ~LinuxBorderWindow(); v...