Search found 381 matches

by raananb
Mon Mar 25, 2019 9:40 am
Forum: C++ Development
Topic: wxListCtrl & client data
Replies: 4
Views: 75

Re: wxListCtrl & client data

There was no crash, but the results were not as expected.

This was due to an error in setting the client data, due to a complicated mechanism of gathering data.

So the error is on me and not the algorithm.
by raananb
Sat Mar 23, 2019 3:27 pm
Forum: C++ Development
Topic: wxListCtrl & client data
Replies: 4
Views: 75

Re: wxListCtrl & client data

So the documentation statement ( NOT the index) is too strong, inasmuch as the index is a natural unique identifier in the list. I changed the minimal.cpp in the link above to m_item_list->SetItemData(new_item, new_item); instead of the original m_item_list->SetItemData(new_item, n); and it works co...
by raananb
Sat Mar 23, 2019 1:12 pm
Forum: C++ Development
Topic: wxListCtrl & client data
Replies: 4
Views: 75

wxListCtrl & client data

The documentation for wxListCtrl states that sorting a listctrl requires client data and that SetItemData() has to used to associate that data with the listctrl items. I have searched widely and did not find an explanation about what exactly is meant by Client data, nor what it should be for sorting...
by raananb
Mon Mar 18, 2019 10:01 am
Forum: Platform Related Issues
Topic: wxWidgets-3.1.2 build on osx 10.14.3 configure error
Replies: 2
Views: 58

Re: wxWidgets-3.1.2 build on osx 10.14.3 configure error

adding --with-macosx-version-min=10.14 solved the problem
by raananb
Mon Mar 18, 2019 9:13 am
Forum: Platform Related Issues
Topic: wxWidgets-3.1.2 build on osx 10.14.3 configure error
Replies: 2
Views: 58

wxWidgets-3.1.2 build on osx 10.14.3 configure error

OSX 10.14.3 XCode 10.1 (10B61) wxWidgets-3.1.2 using /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk (the shortcut MacOsx10.14.sdk in the same folder points to the same MacOSX.sdk) configure --with-osx_cocoa --disable-debug --enable-unicode --disable-universal --disable-monolithic --enable-gui -...
by raananb
Wed Jan 23, 2019 4:45 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling wxWidgets 3.1.2 on macOS Mojave
Replies: 15
Views: 587

Re: Compiling wxWidgets 3.1.2 on macOS Mojave

Typing ../configure --version gives: wxWidgets configure 3.1.3 Generated by GNU Autoconf 2.69 I retried ../configure --disable-share --enable-stl --with-cxx=14 this gave no problems. adding '--with-macos-sdk=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk' gave configure: error: invalid var...
by raananb
Tue Jan 22, 2019 1:08 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling wxWidgets 3.1.2 on macOS Mojave
Replies: 15
Views: 587

Re: Compiling wxWidgets 3.1.2 on macOS Mojave

@jbattle
Copied and pasted the script on my mac mini Mojave, and configure is unhappy:

'configure: error: unrecognized options: --with-macos-sdk'

I wonder what makes it work on your mac mini.
by raananb
Tue Jan 22, 2019 12:08 pm
Forum: Platform Related Issues
Topic: Make problem with latest trunk on OSX 10,14,2
Replies: 3
Views: 230

Re: Make problem with latest trunk on OSX 10,14,2

To remove uncertainty, I cloned a new trunk.
../configurre
make

The library is built.

There probably was a problem with updating the trunk,
by raananb
Mon Jan 21, 2019 11:28 pm
Forum: Platform Related Issues
Topic: Make problem with latest trunk on OSX 10,14,2
Replies: 3
Views: 230

Make problem with latest trunk on OSX 10,14,2

I did ../configure make make stops with lack of rule /Users/raananbarzel/wxWidgets/GCCBuildReleaseOSXCocoaUnicode/bk-deps gcc -mmacosx-version-min=10.9 -c -o wxtiff_tif_warning.o -DNDEBUG -I../src/jpeg -I/Users/raananbarzel/wxWidgets/GCCBuildReleaseOSXCocoaUnicode/src/tiff/libtiff -I../src/tiff/libt...
by raananb
Thu Dec 20, 2018 1:00 pm
Forum: C++ Development
Topic: scrollbars settings in wxScroll
Replies: 1
Views: 95

Re: scrollbars settings in wxScroll

For a 12-column table the noUnitsX parameter should be 11.
by raananb
Wed Dec 19, 2018 12:48 pm
Forum: C++ Development
Topic: scrollbars settings in wxScroll
Replies: 1
Views: 95

scrollbars settings in wxScroll

Using the trunk, on Windows 10 & Visual Studio 2017 Community edition. On the basis of the scrolled example, the following code allows to create the scrolled window for my application. The essence of the resulting window is shown in the (vertically reduced) image: http://www.pixname.com/000%20temp/2...
by raananb
Sun Nov 25, 2018 7:48 am
Forum: C++ Development
Topic: wxMenuBar position
Replies: 2
Views: 444

Re: wxMenuBar position

A wxMenuItem cannot be removed/inserted. These functions only work for wxMenu. wxMenuBar::FindMenu() gives the index of the wxMenu. This index is the 'pos" variable used in wxMenuBar::Remove(). The solution to my problem consists of transforming the wxMenuItem into a wxMenu, which can be Removed/Ins...
by raananb
Fri Nov 23, 2018 3:16 pm
Forum: C++ Development
Topic: wxMenuBar position
Replies: 2
Views: 444

wxMenuBar position

wxMenuBar::Remove() takes as an argument size_t pos.

I have not found a function which gives 'pos' for a menu item.

Any clues?
by raananb
Tue Nov 13, 2018 1:11 pm
Forum: C++ Development
Topic: Printing issues
Replies: 2
Views: 121

Re: Printing issues

Nice idea to check, but printer resolution is the same in both cases. The problem ie present with both the real printer and the PDF printer. If a system parameter must be adjusted, I have no idea what to look for and where. The problem goes away if pixel width & pixel height of the page are divided ...
by raananb
Sun Nov 11, 2018 5:17 pm
Forum: C++ Development
Topic: Printing issues
Replies: 2
Views: 121

Printing issues

Using my application, (based on the Trunk) I printed a document on Windows 10 and on OSX Mojave, using the same code and the same printer (Canon Pixma MG5750). The pdf renditions correspond pretty well to the paper printouts. On Windows, the document is exactly as I expected it to be: http://www.pix...