Search found 18 matches

by mihai
Fri Sep 11, 2020 1:18 pm
Forum: Platform Related Issues
Topic: wxGrid Render in wxPrintout, crash on print (Ubuntu 18)
Replies: 4
Views: 947

Re: wxGrid Render in wxPrintout, crash on print (Ubuntu 18)

The assert message seems pretty clear: Some code tries to set the ClippingRegion for a wxDC, but the printer dc under GTK does not support this. You can try to compile wxWidgets again with debug messages disabled to suppress the assert, but the output on the printer will probably look wrong. Hi, Wh...
by mihai
Thu Sep 10, 2020 7:04 pm
Forum: Platform Related Issues
Topic: wxGrid Render in wxPrintout, crash on print (Ubuntu 18)
Replies: 4
Views: 947

wxGrid Render in wxPrintout, crash on print (Ubuntu 18)

Hi, I have a simple application that tries to print a grid. The grid is rendered ok in the preview mode but crashes if I try to print it in a pdf file on Ubuntu (from the Print button in Preview window). The crash happens exactly on the grid->Render line of code. The exact error is: ../include/wx/gt...
by mihai
Thu Sep 10, 2020 12:23 pm
Forum: C++ Development
Topic: wxPrintout problems
Replies: 1
Views: 345

wxPrintout problems

Hi, I have some problems with wxPrintout or there is something that I do not understand. Below is my source code. It is a very simple application that creates a frame with a button on it. When I click on that button a Preview frame is created where I display some text (namely DC size and Page size)....
by mihai
Sun Sep 06, 2020 2:06 pm
Forum: C++ Development
Topic: wxScrolledWindow and wxPanel overlap
Replies: 1
Views: 379

wxScrolledWindow and wxPanel overlap

Hi, I have some problems with wxScrolledWindow. I created a horizontally scrolled window with buttons inside it. Below that, I placed a wxPanel. But, they appear overlaped. I do not know why. Here is my code: #include "wx/wx.h" #include <iostream> class MyApp : public wxApp { wxFrame* fram...
by mihai
Sun Sep 23, 2018 8:43 am
Forum: Platform Related Issues
Topic: problem pasting from Numbers
Replies: 4
Views: 1494

Re: problem pasting from Numbers

Pasting from Libre Office or Google Spreadsheet works with no problem. And which one doesn't work? This sounds to me like the problem is in the source application and not in yours. Use http://www.freeclipboardviewer.com to check what the clipboard actually contains. Pasting from Numbers (MacOS) doe...
by mihai
Sun Sep 23, 2018 8:05 am
Forum: Platform Related Issues
Topic: problem pasting from Numbers
Replies: 4
Views: 1494

problem pasting from Numbers

Hi, I develop an application which should paste some values from spreadsheet applications (like Excel, Numbers etc) to a grid. The application works perfect except when copy-pasting from Numbers. Pasting from Libre Office or Google Spreadsheet works with no problem. Here is my code which I use to ge...
by mihai
Wed Jun 03, 2015 8:23 pm
Forum: Compiler / Linking / IDE Related
Topic: link statically on linux
Replies: 17
Views: 4967

Re: link statically on linux

fantastic!
it works !

THANKS,
mihai
by mihai
Wed Jun 03, 2015 7:06 pm
Forum: Compiler / Linking / IDE Related
Topic: link statically on linux
Replies: 17
Views: 4967

Re: link statically on linux

I have removed the monolithic... still the same error. I don't know why it cannot find the library since it is there. g++ first.cpp -D__WXGTK__ -I ~/Documents/wxWidgets-3.0.2/include -I /home/mihai/Documents/wxWidgets-3.0.2/ubuntu64/lib/wx/include/gtk2-unicode-static-3.0/ -L /home/mihai/Documents/wx...
by mihai
Wed Jun 03, 2015 4:32 pm
Forum: Compiler / Linking / IDE Related
Topic: link statically on linux
Replies: 17
Views: 4967

link statically on linux

I want to link statically on Ubuntu. I know this topic has been discussed before, but I have a problem and I don't know how to solve it (most likely because I'm not very familiar with Linux). On Windows and Mac I've been able to link statically with no problem. first I have configured in this way: ....
by mihai
Mon May 25, 2015 7:15 am
Forum: C++ Development
Topic: wxGrid: where the index of hidden columns are stored?
Replies: 4
Views: 1251

Re: wxGrid: where the index of hidden columns are stored?

So are you saying it only happens under OSX? Do you see it in the "grid" sample? it seems that it was my mistake. I was storing the width of columns and then restore them ... however, the other problem with the menuitem ID of zero on Mac appear on the grid sample too. I will create a new ...
by mihai
Sun May 24, 2015 8:01 pm
Forum: C++ Development
Topic: wxGrid: where the index of hidden columns are stored?
Replies: 4
Views: 1251

Re: wxGrid: where the index of hidden columns are stored?

Which platform and wxWidgets version? I don't see this behavior under Windows. Actually i'm pretty sure that wxWidgets never saves any configuration data anywhere unasked. So my guess is that this is a feature of the native control on the platform you're working on. I work on Windows 7 now. wxWidge...
by mihai
Sun May 24, 2015 7:37 pm
Forum: C++ Development
Topic: wxGrid: where the index of hidden columns are stored?
Replies: 4
Views: 1251

wxGrid: where the index of hidden columns are stored?

when I create a wxGrid with native headers, I can right click on header and make some columns to be hidden. if I restart the application the previously hidden columns are still hidden which means that wx stores this information somewhere. so, where is this information stored? in which file ? thanks,...
by mihai
Thu Dec 04, 2014 8:33 am
Forum: Platform Related Issues
Topic: creating a deb package
Replies: 3
Views: 2815

Re: creating a deb package

Hi, Warning: I'm not an expert on package building. However, do you need to specify wxgtk in 'Depends'? I think i's normal just to have the line: Depends: ${shlibs:Depends}, ${misc:Depends} so that debhelper(?) works out the dependencies for itself. I get an error: sudo dpkg-deb --build mys_softwar...
by mihai
Thu Dec 04, 2014 7:12 am
Forum: Platform Related Issues
Topic: creating a deb package
Replies: 3
Views: 2815

creating a deb package

Hi there, I have created a deb package for my application. I the control file I have specified: Depends: libwxgtk3.0-0 when I installed the application on a fresh system I was able to install it, but it seems that not all wxgtk libraries were installed: ldd /usr/local/bin/myapp linux-vdso.so.1 => (0...
by mihai
Mon Dec 01, 2014 10:34 pm
Forum: C++ Development
Topic: resize the buttons at runtime
Replies: 2
Views: 1627

Re: resize the buttons at runtime

doublemax wrote:It's possible that the initial content on creation determines the minimum size of the button. What happens if you create it with an empty label?
that is a brilliant idea !
thanks!
mihai