Search found 94 matches

by rudolfninja
Tue Dec 03, 2019 1:00 pm
Forum: C++ Development
Topic: wxScrolledWindow size changes after wxDialog::Fit() call
Replies: 0
Views: 265

wxScrolledWindow size changes after wxDialog::Fit() call

Greetings, I have dialog class (derived from wxDialog) with fixed min size. The dialog class has wxCustomPanel* member (derived from wxPanel) also some collapsible panels are present on dialog. wxCustomPanel* member is used as a template type for wxScrolled<>: wxCustomPanel* wxRTSharesManagerDialog:...
by rudolfninja
Fri Nov 29, 2019 10:00 am
Forum: C++ Development
Topic: Allow user to resize wxDialog without border
Replies: 5
Views: 154

Re: Allow user to resize wxDialog without border

Tried to implement this solution: void wxRTSharesManagerDialog::OnLeftDown(wxMouseEvent& event) { CaptureMouse(); } void wxRTSharesManagerDialog::OnLeftUp(wxMouseEvent& event) { if (HasCapture()) { ReleaseMouse(); } } void wxRTSharesManagerDialog::OnMouseMove(wxMouseEvent& event) { wxPoint pt = even...
by rudolfninja
Thu Nov 28, 2019 2:55 pm
Forum: C++ Development
Topic: ScrollBar background color issue in wxScrolled window
Replies: 3
Views: 125

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

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 125 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: 154

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

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

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

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

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

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

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

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

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

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

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