Search found 12 matches

by yukomkom
Mon Jun 26, 2017 9:22 am
Forum: Platform Related Issues
Topic: wxSystemColour with Windows 10
Replies: 2
Views: 405

Re: wxSystemColour with Windows 10

Thanks, but unfortunately, it didn't help. I couldn't find which colours are used...
by yukomkom
Wed Jun 21, 2017 3:47 pm
Forum: Platform Related Issues
Topic: wxSystemColour with Windows 10
Replies: 2
Views: 405

wxSystemColour with Windows 10

Hi guys, I've been working on Windows 10 with wxWidgets 3.0.2. I had to create custom control very similar to button. While working on it I encountered with absence of system colour for focusing on hovering. When I hover the button (as on image) I have blue borders and light blue background. https:/...
by yukomkom
Thu Jan 26, 2017 10:37 am
Forum: C++ Development
Topic: System focused colour
Replies: 3
Views: 401

Re: System focused colour

I'm writing a custom control very similar to button and I need same behaviour as wxButton when focusing and hovering with mouse. I want to use Windows system colour for focusing control to draw borders of my custom control focused with it. Same with hovering colour, however I haven't searched for it...
by yukomkom
Thu Jan 26, 2017 8:47 am
Forum: C++ Development
Topic: System focused colour
Replies: 3
Views: 401

System focused colour

Hi guys,

I've been searching through the documentation and couldn't find the system colour of the focused control (let's say wxButton) on Windows. I use wxWidgets 3.0.2. Please, help.
by yukomkom
Wed Jan 04, 2017 9:55 am
Forum: C++ Development
Topic: On wxTextCtrl max length callback
Replies: 2
Views: 495

Re: On wxTextCtrl max length callback

Found in file textctrl.cpp, method:

Code: Select all

bool wxTextCtrl::HasSpaceLimit(unsigned int *len) const
line which makes everything

Code: Select all

return *len < 10001;
by yukomkom
Tue Jan 03, 2017 3:25 pm
Forum: C++ Development
Topic: On wxTextCtrl max length callback
Replies: 2
Views: 495

On wxTextCtrl max length callback

Hi guys, I've been working with wxTextCtrl and found one interesting thing. When I set max length as small number (250, 500, 10000) it works well. But when I put bigger numbers (20000, 100000), it doesn't work (I can go over the limit and no callback). Don't know how to fix it. Please, help. Sorry, ...
by yukomkom
Thu Dec 15, 2016 12:19 pm
Forum: wxDev-C++
Topic: wxDialog loses stay on top attribute
Replies: 0
Views: 1097

wxDialog loses stay on top attribute

Hi guys, I have 2 wxDialogs with the button which makes each of them top most dialog(wxSTAY_ON_TOP) after button click. Workflow: 1. I make one of them top most, checked - dialog become top most. 2. I clicked once more and dialog become not top most, checked - ok. 3. Made both of them top most, chec...
by yukomkom
Tue Dec 13, 2016 1:56 pm
Forum: C++ Development
Topic: Stay on top window taskbar icon press
Replies: 2
Views: 393

Re: Stay on top window taskbar icon press

I found that there is activate event send for such case, but it's also sent a lot of times for focusing.
by yukomkom
Sat Dec 10, 2016 1:30 pm
Forum: C++ Development
Topic: Stay on top window taskbar icon press
Replies: 2
Views: 393

Stay on top window taskbar icon press

Hi guys,

I have wxFrame created with flag wxSTAY_ON_TOP, everything works well, except one which I don't know how to implement. I need to catch event when user presses with the mouse on taskbar icon. Is it possible to catch such event?
by yukomkom
Wed Dec 07, 2016 9:37 am
Forum: C++ Development
Topic: Always iconized frame
Replies: 1
Views: 276

Always iconized frame

Hi guys, I want to create frame which will be always iconized in the task bar. I have 2 problems with the way I tried to implement it. I used simple frame and show it like this: Show(); Iconize(true); Unfortunately it appears for half of the second before iconizing. Also I've bound wxEVT_ICONIZE and...
by yukomkom
Mon Nov 14, 2016 9:46 am
Forum: C++ Development
Topic: Spacer added to inner wxBoxSizer doesn't work in wxWidgets
Replies: 1
Views: 327

Spacer added to inner wxBoxSizer doesn't work in wxWidgets

I have an issue with spacer inside of the inner wxBoxSizer. Here is the sample code. class Frame : public wxFrame { public: Frame() : wxFrame(nullptr, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(600, 200)) { wxPanel* panel = new wxPanel(this); // Some OUTER SIZER wxBoxSizer* mainS = new wxBox...
by yukomkom
Mon Nov 07, 2016 11:05 am
Forum: C++ Development
Topic: wxFrame does not process Tab button
Replies: 1
Views: 311

wxFrame does not process Tab button

I have a simple wxFrame with 3 buttons. After I press Tab nothing happens. In the forum I found that wxFrame should process Tab button events normally and switch focus between controls. I tried with wxTAB_TRAVERSAL and without it, but look like no result. Here is my code. wxWidgets 3.0.2. Please, he...