Search found 423 matches

by clyde729
Fri Feb 29, 2008 7:08 am
Forum: C++ Development
Topic: low level printing
Replies: 6
Views: 1383

In addition: AFAIK this won't work for network printers. If you want to use this, you will need to do it in a third way. You can also invoke the printer by native C-API system commands. system("print "+ printername+"\r"); // <-- won't work out of the box system("lpr -l"+printername+" & \r"); // the ...
by clyde729
Fri Feb 29, 2008 7:03 am
Forum: C++ Development
Topic: low level printing
Replies: 6
Views: 1383

Oh... I looked at my sources and saw that I'm using native Windows API on Windows and generic way elsewhere. Anyway, I give you some relevant lines / pieces. Maybe you can adapt them to your code. But I need to say that I'm no specialist in such things. // header #if defined(__WXMSW__) || defined(__...
by clyde729
Fri Feb 29, 2008 6:45 am
Forum: Component Writing
Topic: Read Only Checkbox
Replies: 19
Views: 6918

Could you post a little sample we could try out and see why it is not working (i.e. catching mouse events)?
by clyde729
Thu Feb 28, 2008 11:20 am
Forum: Component Writing
Topic: Read Only Checkbox
Replies: 19
Views: 6918

You will need to catch some mouse events and "eat" them. I think catching "left down" and "left double click" would be a good start. Also remain that a checkbox is toggable via "space" key if it has focus. So this needs to be changed, too. Another way would be to catch the "checkbox clicked" event a...
by clyde729
Thu Feb 28, 2008 11:16 am
Forum: C++ Development
Topic: low level printing
Replies: 6
Views: 1383

You can use streaming files for printing. This works for Windows as well as for Linux. There are lowlevel access functions to do so. They are undocumented. You will need to go through the sources (wx/filefn.h).

You can use wxOpen, wxRead, wxWrite, wxClose for your purpose.
by clyde729
Thu Feb 21, 2008 6:37 am
Forum: Open Discussion
Topic: Remote method call for wxWidgets?
Replies: 10
Views: 3559

Good job, man! =D> If you would have some simple application(s) to share then I (and I'm shure others, too) would be very interested in your expertise. Nice to hear that it really works!
by clyde729
Thu Feb 07, 2008 11:31 pm
Forum: General Development
Topic: stop events
Replies: 4
Views: 1199

For "dirty" hackers there is also

int wxApp::FilterEvent(wxEvent& event)

You can also try to externalize the EVT_TEXT to a wxEvtHandler derived class and call

void wxEvtHandler::SetEvtHandlerEnabled(bool enabled)

Cheers!
by clyde729
Tue Jan 29, 2008 10:08 pm
Forum: Component Writing
Topic: wxGrid help again...
Replies: 3
Views: 1339

O.k., don't know, if this is possible, but you could do the following: - make the last 3 cols readonly. - catch the wxEVT_GRID_SELECT_CELL event - check in the handler, if the col position is the first one - if not, set the cursor via wxGrid::SetGridCursor It shouldn't produce an endless loop. Maybe...
by clyde729
Tue Jan 29, 2008 9:55 pm
Forum: Component Writing
Topic: ComboBox with Checkboxes
Replies: 1
Views: 872

Maybe this is possible with the new wxComboCtrl. Have a look at the samples.
by clyde729
Mon Jan 28, 2008 10:35 pm
Forum: C++ Development
Topic: wxGrid::GetSelectedRows() returns always 0
Replies: 2
Views: 794

Sorry, but this is a known bug in wxGrid. I can't tell you a solution, maybe search the forum for a similar problem.
by clyde729
Mon Jan 28, 2008 10:33 pm
Forum: C++ Development
Topic: wxGrid resizable
Replies: 5
Views: 891

Have a look at the grid sample. They are working with the default solution for this problem... sizers. These are the interesting lines of the toplevel window's ctor: wxBoxSizer *topSizer = new wxBoxSizer( wxVERTICAL ); topSizer->Add( grid, 1, wxEXPAND ); SetAutoLayout(true); SetSizer( topSizer ); to...
by clyde729
Mon Jan 28, 2008 7:25 am
Forum: Component Writing
Topic: wxGrid help again...
Replies: 3
Views: 1339

Please tell us more details. Do you want to prevent the "selection" of cells or the movement of the gridcursor?
by clyde729
Mon Jan 28, 2008 7:23 am
Forum: C++ Development
Topic: disable / enable a item in combox's list
Replies: 2
Views: 649

I don't think that this is possible in a platform independent way. The API doesn't have methods for this. But AFAIK it can be done by using HTML. I can't tell you if the wxHTML classes have such a functionality but it could be point to start. Else, you will need to implement some platform specific s...
by clyde729
Mon Jan 28, 2008 7:19 am
Forum: C++ Development
Topic: wxGrid Cell dynamic change color
Replies: 2
Views: 1062

Have you tried (re-)setting the attr pointer?

Code: Select all

void wxGridTableBase::SetAttr(wxGridCellAttr* attr, int row, int col)
could help. Also some Refresh / ForceRefresh methods can be called.