Search found 370 matches

by raananb
Sun Nov 25, 2018 7:48 am
Forum: C++ Development
Topic: wxMenuBar position [SOLVED]
Replies: 2
Views: 191

Re: wxMenuBar position [SOLVED]

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 Remove...
by raananb
Fri Nov 23, 2018 3:16 pm
Forum: C++ Development
Topic: wxMenuBar position [SOLVED]
Replies: 2
Views: 191

wxMenuBar position [SOLVED]

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: 74

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 divi...
by raananb
Sun Nov 11, 2018 5:17 pm
Forum: C++ Development
Topic: Printing issues
Replies: 2
Views: 74

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...
by raananb
Wed Oct 31, 2018 6:44 pm
Forum: C++ Development
Topic: wxDateTime Setting month fails [SOLVED]
Replies: 1
Views: 334

Re: wxDateTime Setting month fails [SOLVED]

Problem gone when SetMonth() is replaced by Set() as follows:

Code: Select all

calendarToday.Set(1, wxDateTime::Month(calendarToday.GetMonth() - 1), calendarToday.GetYear());
by raananb
Wed Oct 31, 2018 6:19 pm
Forum: C++ Development
Topic: wxDateTime Setting month fails [SOLVED]
Replies: 1
Views: 334

wxDateTime Setting month fails [SOLVED]

The code below is supposed to set the embedded_Calendar one month back from the current month. It works for January (setting to December of the previous year), but the SetMonth statement raises an "invalid broken down date/time" error message. GetMonth() gives the correct month : 9 for 201...
by raananb
Tue Oct 30, 2018 1:52 pm
Forum: C++ Development
Topic: Hiding a radio button
Replies: 2
Views: 85

Hiding a radio button

What needs to be done to hide a radio button? wxRadioButton remains visible when rb->Hide() (or ->Show(false)) are executed.
by raananb
Sun Oct 21, 2018 8:53 am
Forum: C++ Development
Topic: wxTextCtrl wont Fit()
Replies: 1
Views: 66

wxTextCtrl wont Fit()

Fit() does not have any effect on wxTextCtrl. Is this the expected behavior?
by raananb
Tue Sep 25, 2018 9:12 am
Forum: C++ Development
Topic: wxGrid Limit the number of displayed rows [SOLVED]
Replies: 5
Views: 482

Re: wxGrid Limit the number of displayed rows [SOLVED]

That is true, and I though it would work...
by raananb
Tue Sep 25, 2018 8:58 am
Forum: C++ Development
Topic: wxGrid Limit the number of displayed rows [SOLVED]
Replies: 5
Views: 482

Re: wxGrid Limit the number of displayed rows [SOLVED]

You are correct in saying that SetMaxSize() is not part of wxGrid.

It is interesting to note that VisualStudio displays SetMaxSize when selecting a wxGrid function and that it is compiled with no errors!

I solved my problem by setting a fixed size to the grid.

Thanks.
by raananb
Tue Sep 25, 2018 7:44 am
Forum: C++ Development
Topic: Print to file
Replies: 4
Views: 135

Re: Print to file

@Oneeyeman With wxPrintout I know how to create and print a document, which is what is needed. However, when a document is printed with wxPrintout, there is no trace of it in the system, and I would like to have a copy for archiving. While it is possible to scan the document and save the image, it s...
by raananb
Mon Sep 24, 2018 4:25 pm
Forum: C++ Development
Topic: wxGrid Limit the number of displayed rows [SOLVED]
Replies: 5
Views: 482

wxGrid Limit the number of displayed rows [SOLVED]

using Grid->SetMaxSize(wxSize (-1,200)); does limit the size of the grid when it is created and filled with data, inserting scroll bars as required.

However, if a row is added, the grid overflows it maximum size and only return to it when recreated.

Any way to avoid this overflow?
by raananb
Mon Sep 24, 2018 3:55 pm
Forum: C++ Development
Topic: Print to file
Replies: 4
Views: 135

Print to file

How can I store a print image once a page is created using wxPrintout?

(Trunk on Windows 10)
by raananb
Sun Sep 02, 2018 7:56 am
Forum: C++ Development
Topic: wxListCtrl GetItemText
Replies: 1
Views: 89

wxListCtrl GetItemText

The documentation (3.0) of wxListCtrl presents the virtual OnGetItemText() but does not include the function GetItemText(item,col).

This function exists in the generic version and in msw version, and it executes as expected under msw, osx and gtk.

Is there a reason why it is not documented?
by raananb
Tue Jul 24, 2018 9:17 am
Forum: Platform Related Issues
Topic: configure problem with gtk3
Replies: 10
Views: 519

Re: configure problem with gtk3

I created a new Ubuntu 18.04 in vbox and installed gtk3. wxWidgets as well as my application build with no problems. gtk2 was installed by default.

The problem raised earlier is not present, and I guess the issue must be abandoned.

Go to advanced search