Search found 107 matches

by rudolfninja
Thu Nov 28, 2019 2:55 pm
Forum: C++ Development
Topic: ScrollBar background color issue in wxScrolled window
Replies: 3
Views: 704

Re: ScrollBar background color issue in wxScrolled window

In my app the same and the window background isn't white.
Yes, looks like it is part of scrollbar. Is it a way to change it?
by rudolfninja
Thu Nov 28, 2019 2:23 pm
Forum: C++ Development
Topic: ScrollBar background color issue in wxScrolled window
Replies: 3
Views: 704

ScrollBar background color issue in wxScrolled window

Here is screenshot from wxWidgets 3.1.3 samples (scroll.cpp)
scroll.png
scroll.png (19.43 KiB) Viewed 704 times
As it seen from screenshot there is white line between scrollbar and window it bound to. In my app I can see the same problem.
Is there a way to remove this white line?
by rudolfninja
Thu Nov 28, 2019 2:14 pm
Forum: C++ Development
Topic: Allow user to resize wxDialog without border
Replies: 5
Views: 1122

Re: Allow user to resize wxDialog without border

Could you please describe common algorithm how to implement it by myself?
by rudolfninja
Thu Nov 28, 2019 11:55 am
Forum: C++ Development
Topic: Allow user to resize wxDialog without border
Replies: 5
Views: 1122

Allow user to resize wxDialog without border

Greetings, I need to make wxDialog resistible by user but without border (thus, not using wxRESIZE_BORDER style). This ugly border doesn't fit in my dialog's appearance. withoutBorder.png withBorder.png So I need to combine wxRESIZE_BORDER style with wxNO_BORDER. Are there variants to solve the prob...
by rudolfninja
Wed Nov 13, 2019 7:28 am
Forum: C++ Development
Topic: Border around wxDialog
Replies: 3
Views: 1208

Re: Border around wxDialog

Turning back to this topic. The problems start after I changed wxWidgets version in the project from 3.1.2 to 3.1.3. By the problem I mean that border isn't drawn anymore. I can't find the reason why. I did it in the way you described here: You can probably workaround this by subclassing a wxPanel a...
by rudolfninja
Wed Oct 30, 2019 9:06 am
Forum: General Development
Topic: How does wxDefaultPosition work
Replies: 1
Views: 1312

How does wxDefaultPosition work

Hi all, I'd like to know how does wxDefaultPosition for dialogs work? How the position of the dialog is chosen in this case? Why I'm asking: I've got virtual display (implemented as driver for Windows) and wxWidgets based dialogs are drawn in negative coordinates on it (like -700, -639) if wxDefault...
by rudolfninja
Thu Sep 19, 2019 12:10 pm
Forum: Platform Related Issues
Topic: wxCURSOR_SIZE form difference on Linux/Windows
Replies: 1
Views: 893

wxCURSOR_SIZE form difference on Linux/Windows

Hi everyone, The general question if there somewhere in the documentation the pictures of how cursors should looks like? Why I'm asking. I've got the following code to initialize cursors: static const wxCursor wxCursorArrow = wxCursor(wxCURSOR_ARROW); static const wxCursor cursorSizeNWSE = wxCursor(...
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: 950

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

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 tas...
by rudolfninja
Thu Jun 13, 2019 10:10 am
Forum: C++ Development
Topic: Linux. Draw border around specific window
Replies: 35
Views: 4644

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

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

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

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

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

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