Search found 81 matches

by pvn
Thu Nov 19, 2020 4:00 am
Forum: Platform Related Issues
Topic: wxCheckListBox Mac alignment
Replies: 1
Views: 231

Re: wxCheckListBox Mac alignment

making this call aligned the text

Code: Select all

sizer_col_1->Layout();
Screen Shot 2020-11-18 at 10.58.41 PM.png
by pvn
Wed Nov 18, 2020 8:05 pm
Forum: Platform Related Issues
Topic: wxCheckListBox Mac alignment
Replies: 1
Views: 231

wxCheckListBox Mac alignment

On MacOS, doing this code wxPanel* panel = new wxPanel(this, wxID_ANY); wxSizer* const sizer_lut_sat = new wxBoxSizer(wxHORIZONTAL); wxSizer* const sizer_col_1 = new wxBoxSizer(wxVERTICAL); { wxString* items = new wxString[ts.LUT.size()]; for (size_t idx = 0; idx < ts.LUT.size(); idx++) { items[idx]...
by pvn
Wed Nov 18, 2020 5:33 pm
Forum: C++ Development
Topic: wxLogDebug flush
Replies: 10
Views: 352

Re: wxLogDebug flush

Which log targets have you actually tried?
What would be the steps to try other wxLog targets?
by pvn
Wed Nov 18, 2020 5:49 am
Forum: Platform Related Issues
Topic: wxTextCtrl Mac display
Replies: 8
Views: 446

Re: wxTextCtrl Mac display

SetValue() is the proper method to change the content of a wxTextCtrl.
ok, thanks, this worked for both Windows/Mac

Code: Select all

wxTextCtrl* text = new wxTextCtrl(panel_message, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, wxTE_READONLY | wxTE_MULTILINE | wxTE_RICH);
  text->SetValue(msg);
by pvn
Mon Nov 16, 2020 10:45 pm
Forum: Platform Related Issues
Topic: wxTextCtrl Mac display
Replies: 8
Views: 446

Re: wxTextCtrl Mac display

this prints on MacOS #ifdef _MSC_VER wxTextCtrl* text = new wxTextCtrl(panel_message, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, wxTE_READONLY | wxTE_MULTILINE | wxTE_RICH); #else wxTextCtrl* text = new wxTextCtrl(panel_message, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, wxTE_READONLY); #e...
by pvn
Mon Nov 16, 2020 10:31 pm
Forum: Platform Related Issues
Topic: wxTextCtrl Mac display
Replies: 8
Views: 446

wxTextCtrl Mac display

This code prints the wxString msg in the wxTextCtrl in Windows but not in MacOS Is there any special style for Mac ? void PanelReport::new_message_panel(wxNotebook* notebook, const wxString& title, const wxString& msg, status_color_t clr) { wxPanel* panel_message = new wxPanel(notebook); #ifdef _MSC...
by pvn
Mon Nov 16, 2020 8:35 pm
Forum: C++ Development
Topic: wxLogDebug flush
Replies: 10
Views: 352

Re: wxLogDebug flush

Are you using Qt port of wxWidgets? I am using wxWidgets 3.1.4 downloaded from the wxWidgets site Built with QT Creator from the Cmake script In any case - can you build a debug version of the library (if not already) and your application, and try to step inside the Flush(). ok, what should I look ...
by pvn
Mon Nov 16, 2020 8:20 pm
Forum: C++ Development
Topic: wxLogDebug flush
Replies: 10
Views: 352

Re: wxLogDebug flush

Which log targets have you actually tried? I did not try anything, I don't know what to try; I just want any call that gives an instant output to the IDE window log (QT Creator in this case) I am using wxWidgets 3.1.4 in the Mac, not in Windows in Windows (with Visual Studio) , I have used wxLogDeb...
by pvn
Mon Nov 16, 2020 7:06 pm
Forum: C++ Development
Topic: wxLogDebug flush
Replies: 10
Views: 352

Re: wxLogDebug flush

this call also has no effect

Code: Select all

wxLog* log = wxLog::GetActiveTarget();
log->Flush();
I don't know if this is a MacOS specific issue for this version or is this not the right way to flush the logs?
by pvn
Mon Nov 16, 2020 5:38 pm
Forum: C++ Development
Topic: wxLogDebug flush
Replies: 10
Views: 352

Re: wxLogDebug flush

I'm using MacOS 10.15.7 Catalina cmake output is cmake .. -DwxBUILD_COMPATIBILITY=3.1 -DwxBUILD_SHARED=OFF -- Setting build type to 'Debug' as none was specified. -- The C compiler identification is AppleClang 12.0.0.12000032 -- The CXX compiler identification is AppleClang 12.0.0.12000032 -- Detect...
by pvn
Mon Nov 16, 2020 4:52 pm
Forum: C++ Development
Topic: wxLogDebug flush
Replies: 10
Views: 352

wxLogDebug flush

I have been using wxLogDebug on Windows for years, and recently moved to MacOS one behavior I noticed is that the output is not immediately shown on screen probably due to buffering , as explained here https://docs.wxwidgets.org/3.0/classwx_log.html I need to have an immediate output, how can this b...
by pvn
Sun Sep 27, 2020 4:10 am
Forum: C++ Development
Topic: DoSetRowSize "invalid row index"
Replies: 6
Views: 325

Re: DoSetRowSize "invalid row index"

SOLVED !

this call is needed

Code: Select all

 
 void PanelCurrent::OnCellLeftClick(wxGridEvent& ev)
{


 // you must call event skip if you want default grid processing
  ev.Skip();
}
by pvn
Sun Sep 27, 2020 4:02 am
Forum: C++ Development
Topic: DoSetRowSize "invalid row index"
Replies: 6
Views: 325

Re: DoSetRowSize "invalid row index"

on the the grid that asserts , this returns early wxGrid::DoGridCellLeftDown(wxMouseEvent& event, const wxGridCellCoords& coords, const wxPoint& pos) { if ( SendEvent(wxEVT_GRID_CELL_LEFT_CLICK, coords, event) != Event_Unhandled ) { // event handled by user code, no need to do anything here return; ...
by pvn
Sun Sep 27, 2020 1:28 am
Forum: C++ Development
Topic: DoSetRowSize "invalid row index"
Replies: 6
Views: 325

Re: DoSetRowSize "invalid row index"

the cause is because this variable is not set to the row being resized // Row or column (depending on m_cursorMode value) currently being resized // or -1 if there is no resize operation in progress. int m_dragRowOrCol; but this call should be checked for a -1 value before made oper.SetLineSize(this...
by pvn
Sun Sep 27, 2020 1:13 am
Forum: C++ Development
Topic: DoSetRowSize "invalid row index"
Replies: 6
Views: 325

Re: DoSetRowSize "invalid row index"

problem is in this call virtual void SetLineSize(wxGrid *grid, int line, int size) const wxOVERRIDE { grid->SetRowSize(line, size); } called from here in oper.SetLineSize variable "m_dragRowOrCol" is -1 ; this is passed as " int line" parameter; it seems this is just wrong, the number of the line sh...