Search found 207 matches

by rocrail
Sat May 16, 2020 6:54 am
Forum: Platform Related Issues
Topic: SpinCtrl default width Windows/Mac/GTK2/GTK3
Replies: 17
Views: 936

Re: SpinCtrl default width Windows/Mac/GTK2/GTK3

OK,

using the wxWidgets sample widgets unchanged.
Attached are macOS Catalina, Windows 10-64, Ubuntu 20.04.

The wxWidgets I build from source, and the sample looks good...
I must investigate this.
macos-widgets.png
win10-widgets.png
win10-widgets.png (51.24 KiB) Viewed 666 times
ubuntu2004-widgets.png
ubuntu2004-widgets.png (69.23 KiB) Viewed 666 times
by rocrail
Fri May 15, 2020 4:11 pm
Forum: Platform Related Issues
Topic: SpinCtrl default width Windows/Mac/GTK2/GTK3
Replies: 17
Views: 936

Re: SpinCtrl default width Windows/Mac/GTK2/GTK3

Hi ONEEYEMAN, why should I? Its not a defect, but a rendering issue, which I cannot, and do not want to, control by the wxWidgets API. This thread is only meant to show diffs for the SpinCtrl on all Platforms. As I already wrote before: The GTK3 implementation is not OK. I will not add a simple wx e...
by rocrail
Fri May 15, 2020 3:35 pm
Forum: Platform Related Issues
Topic: SpinCtrl default width Windows/Mac/GTK2/GTK3
Replies: 17
Views: 936

Re: SpinCtrl default width Windows/Mac/GTK2/GTK3

wxWidgets version: 3.1.4
Windows 10 -> Locoal wxWidgets library compiled with latest git, statically linked.
macOS Catalina -> Locoal wxWidgets library compiled with latest git
Ubuntu 20.04 GTK3 -> Distribution wxWidgets library
by rocrail
Fri May 15, 2020 1:41 pm
Forum: Platform Related Issues
Topic: SpinCtrl default width Windows/Mac/GTK2/GTK3
Replies: 17
Views: 936

SpinCtrl default width Windows/Mac/GTK2/GTK3

Hi, if using SpinCtrl default width, -1, it sizes different under all supported Operating Systems: - Windows resize it as needed for its range. =D> - Mac shows an acceptable default width. :| - Ubuntu 20.04, GTK3, resize it so to make it possible to changed values on a touch device with your feet. :...
by rocrail
Thu Dec 12, 2019 2:15 pm
Forum: C++ Development
Topic: Creating an empty Grid stops the Application with an assert
Replies: 19
Views: 875

Re: Creating an empty Grid stops the Application with an assert

An initially empty grid make sense in case it is first filled after a user selection. (I can also add empty Lists, Comboboxes and so on...) To show an empty row is an ugly work around. My work around for now is: wxDisableAsserts(); The bug is in wxWidgets because a call to getColPos() is kind of stu...
by rocrail
Thu Dec 12, 2019 10:52 am
Forum: C++ Development
Topic: Creating an empty Grid stops the Application with an assert
Replies: 19
Views: 875

Re: Creating an empty Grid stops the Application with an assert

Hi,

sorry but I will not do the 'bisecting'; I have other things todo.
The crash is clear, and can be reported in the tracking system of wxWidgets.
by rocrail
Wed Dec 11, 2019 8:46 pm
Forum: C++ Development
Topic: Creating an empty Grid stops the Application with an assert
Replies: 19
Views: 875

Re: Creating an empty Grid stops the Application with an assert

Hi,

Code: Select all

git bisect
usage: git bisect [help|start|bad|good|new|old|terms|skip|next|reset|visualize|view|replay|log|run]
I do not know the bisect command...
by rocrail
Wed Dec 11, 2019 6:26 pm
Forum: C++ Development
Topic: Creating an empty Grid stops the Application with an assert
Replies: 19
Views: 875

Re: Creating an empty Grid stops the Application with an assert

Yes, it also happens with the grid sample. Just comment out the line range 458...615. ../include/wx/generic/grid.h(1522): assert "idx >= 0 && idx < m_numCols" failed in GetColPos(): invalid column index Collecting stack trace information, please wait...Trace/BPT trap: 5 Running under MacOS Catalina.
by rocrail
Wed Dec 11, 2019 6:08 pm
Forum: C++ Development
Topic: Creating an empty Grid stops the Application with an assert
Replies: 19
Views: 875

Re: Creating an empty Grid stops the Application with an assert

Hi,

I did not check the grid sample, and yes, it did work before. The only change was a wxWidgets git pull with the same App source.
by rocrail
Wed Dec 11, 2019 5:22 pm
Forum: C++ Development
Topic: Creating an empty Grid stops the Application with an assert
Replies: 19
Views: 875

Re: Creating an empty Grid stops the Application with an assert

Just like this: m_StatisticGrid = new wxGrid( m_StatisticsTab, ID_FEEDBACK_STATISTIC_GRIG, wxDefaultPosition, wxSize(200, 150), wxSUNKEN_BORDER|wxHSCROLL|wxVSCROLL ); m_StatisticGrid->SetDefaultColSize(0); m_StatisticGrid->SetDefaultRowSize(25); m_StatisticGrid->SetColLabelSize(25); m_StatisticGrid-...
by rocrail
Wed Dec 11, 2019 7:52 am
Forum: C++ Development
Topic: Creating an empty Grid stops the Application with an assert
Replies: 19
Views: 875

Re: Creating an empty Grid stops the Application with an assert

OK, I have a work around:

Code: Select all

  wxDisableAsserts();
by rocrail
Wed Dec 11, 2019 7:19 am
Forum: C++ Development
Topic: Creating an empty Grid stops the Application with an assert
Replies: 19
Views: 875

Creating an empty Grid stops the Application with an assert

Hi, I'm using the head revision, 3.1.4, because I need some features which are not available in 3.0 or 3.1. After the latest source update, my App stops with an assert, after the onPaint is called for an empty wxGrid. If I comment out line 1522 in grid.h //wxASSERT_MSG( idx >= 0 && idx < m_numCols, ...
by rocrail
Sat Sep 28, 2019 11:12 am
Forum: Platform Related Issues
Topic: Frame icons for different usage/resolution
Replies: 2
Views: 502

Re: Frame icons for different usage/resolution

Thanks,

I will give it a try. :)
by rocrail
Sat Sep 28, 2019 9:14 am
Forum: Platform Related Issues
Topic: Frame icons for different usage/resolution
Replies: 2
Views: 502

Frame icons for different usage/resolution

Hi, I'm using a 256x256 Icon for Windows, and includes it in the Resource file as follows: #define wxUSE_NO_MANIFEST 1 #include "wx/msw/wx.rc" wxDEFAULT_FRAME ICON "xpm/rocrail.ico" On the Desktop its OK, but I would like to add another Icon for the Toolbar because it cannot be nicely scaled down. A...