Search found 199 matches

by alys666
Wed Jun 19, 2019 4:53 pm
Forum: C++ Development
Topic: Threaded Job/Queue Manager getting stuck?
Replies: 8
Views: 254

Re: Threaded Job/Queue Manager getting stuck?

Now an odd thing here, the three windows are all processing the same data. Only one of them is "getting stuck" processing its queue within it's OnJob() looping. There is not a lot of code in the Job, Queue & WorkerThread classes - I have placed log messages and/or breakpoints at the logic error cas...
by alys666
Wed Jun 19, 2019 4:24 pm
Forum: C++ Development
Topic: wxAuiToolBar - delete separator
Replies: 7
Views: 157

Re: wxAuiToolBar - delete separator

There are DeleteTool() and DeleteByIndex() functions. Read the docs: https://docs.wxwidgets.org/3.1.2/classwx_aui_tool_bar.html#a016c08e1ecbe1a01812de77ddca4517d what is separator id? wxAuiToolBarItem* wxAuiToolBar::AddTool(int tool_id, const wxString & label, const wxBitmap & bitmap, const wxStrin...
by alys666
Wed Jun 19, 2019 10:12 am
Forum: C++ Development
Topic: wxAuiToolBar - delete separator
Replies: 7
Views: 157

wxAuiToolBar - delete separator

Question - how to delete not a tool from this wxAuiToolBar.
for example - separator or spacer.
by alys666
Wed Jun 19, 2019 8:08 am
Forum: C++ Development
Topic: Sharing space between two adjacent widgets
Replies: 5
Views: 118

Re: Sharing space between two adjacent widgets

AndrzejB wrote:
Wed Jun 19, 2019 7:25 am
Is possible immediately invalidate when resizing?
read given docs first, than ask questions -

Code: Select all

wxAUI_MGR_LIVE_RESIZE:
When a docked pane is resized, its content is refreshed in live (instead of moving the border alone and refreshing the content at the end). 
by alys666
Wed Jun 19, 2019 6:15 am
Forum: C++ Development
Topic: Sharing space between two adjacent widgets
Replies: 5
Views: 118

Re: Sharing space between two adjacent widgets

the most common class for it - wxAuiManager. you even could drag and drop windows in different positions of it and it will resize everything by mouse.
https://docs.wxwidgets.org/3.0/classwx_aui_manager.html
by alys666
Mon Jun 17, 2019 8:37 am
Forum: General Development
Topic: png2c script failed
Replies: 8
Views: 514

Re: png2c script failed

There are online png->c converters, may be make a try with them. Maybe this script has some limitations for png format?
by alys666
Sun Jun 16, 2019 8:04 pm
Forum: C++ Development
Topic: How to return focus to wxWIdgets app
Replies: 2
Views: 108

Re: How to return focus to wxWIdgets app

Thank You, doublemax.
Raise() + SetFocus() works fine!
by alys666
Sun Jun 16, 2019 6:04 pm
Forum: C++ Development
Topic: Some trouble with this-Pointers of Member Variables of wxWidgets
Replies: 6
Views: 146

Re: Some trouble with this-Pointers of Member Variables of wxWidgets

in C++ 11 you can declare a field of class(except of static field) and immediately intitialise it: class A{ T* _field = new T(...); } so question is - you are declaring this fields in this way? then it's ok. you also could just initialize such a field with nullptr, but assign real value to it later ...
by alys666
Sun Jun 16, 2019 5:43 pm
Forum: C++ Development
Topic: How to return focus to wxWIdgets app
Replies: 2
Views: 108

How to return focus to wxWIdgets app

My wxWidgets app starts another application and it gets a focus. In reality this next one is just a GDB, running some app. when gdb reaches breakpoint, it stops and sends data to first app. everything works fine, but here i want to return focus to main frame of the first app. it seems, _main_frame->...
by alys666
Fri Jun 14, 2019 5:27 am
Forum: C++ Development
Topic: Change instance of other frame
Replies: 5
Views: 181

Re: Change instance of other frame

mainFrame * __mainFrameInstance = new mainFrame(0); void NewDialog::OnButtonZClick(wxCommandEvent& event){ __mainFrameInstance->Button_mainFrame->SetLabel("lalala"); } this code compile whitout errors; but clicking in the ButtonZ, Button_mainFrame don't SetLabel("lalala"); you must somehow register...
by alys666
Thu Jun 13, 2019 8:53 am
Forum: C++ Development
Topic: Linux. Draw border around specific window
Replies: 35
Views: 670

Re: Linux. Draw border around specific window

imo it's easy to paint, but not so easy to hide. you must somehow invalidate screen region if you want to hide your paintings - to delete it and restore what was below.
there are functions to invalidate such screen regions as i remember.
I ll be back, but few hours later
by alys666
Thu Jun 13, 2019 8:41 am
Forum: C++ Development
Topic: Linux. Draw border around specific window
Replies: 35
Views: 670

Re: Linux. Draw border around specific window

yes. it was my first thought about you problem. but there could be artifacts. if you hide this frame, you must initiate repainting of this toolbars, covered by this frame....
i need i break for few hours.
by alys666
Thu Jun 13, 2019 8:23 am
Forum: C++ Development
Topic: Linux. Draw border around specific window
Replies: 35
Views: 670

Re: Linux. Draw border around specific window

for entire desktop, and any free painting on screen use -
https://docs.wxwidgets.org/3.0/classwx_screen_d_c.html
by alys666
Thu Jun 13, 2019 7:43 am
Forum: C++ Development
Topic: Linux. Draw border around specific window
Replies: 35
Views: 670

Re: Linux. Draw border around specific window

this?
https://docs.wxwidgets.org/trunk/classw ... indow.html
but why you need to draw something there, if you want to draw border of regular application window?
by alys666
Thu Jun 13, 2019 7:05 am
Forum: C++ Development
Topic: Linux. Draw border around specific window
Replies: 35
Views: 670

Re: Linux. Draw border around specific window

it's some interference with your OS windowing system. this areas are used by system to draw taskbar, etc... and they are not given to application windows. I do not know how to solve it, because here interests of OS native interface and your wxWIdgets app are opposed. any way application cannot draw ...