Search found 11 matches

by wsinda
Wed May 24, 2006 10:33 am
Forum: C++ Development
Topic: Cross-compile a MacOS application under Linux?
Replies: 5
Views: 1354

Sorry, misunderstood the question. If, as you say, you can compile for the Mac on a Windows box, then it should be possible to do the same on a Linux box, simply by using Wine.
by wsinda
Tue May 23, 2006 6:48 am
Forum: C++ Development
Topic: Cross-compile a MacOS application under Linux?
Replies: 5
Views: 1354

That should not be much of a problem. I did the reverse (developed on Linux, ported to Mac). The only Mac-specific problem I ran into was when accessing binary files: the byte order on the Mac is the other way around. There are some macros for that in wx, but I had to revert to my own conversion code.
by wsinda
Wed May 10, 2006 7:28 am
Forum: C++ Development
Topic: Drawing and erasing lines
Replies: 5
Views: 911

You can erase lines by: Calling wxWindow::Refresh(). This redraws the entire window. Acceptable if the window is small and/or the redrawing is simple. If you have to redraw often, you will get a "flicker". Calling wxWindow::Refresh() with a wxRect as argument. Redraws only the portion that you indic...
by wsinda
Wed Apr 05, 2006 12:41 pm
Forum: C++ Development
Topic: wxScrolledWindow and scrollbar
Replies: 5
Views: 1566

From looking at the docs, you need to call wxScrolledWindow::SetScrollRate with a non-zero increment, to activate the scrolling.
by wsinda
Wed Apr 05, 2006 11:24 am
Forum: C++ Development
Topic: resizable component inside wxBoxSizer
Replies: 2
Views: 769

Have you looked at wxSplitterWindow?
by wsinda
Thu Mar 02, 2006 7:36 am
Forum: C++ Development
Topic: wxTreeCtrl with docking windows
Replies: 2
Views: 725

You can associate an object with each tree item. The object must be derived from wxTreeItemData . In that object, you can store a pointer to the docking window; set the pointer to NULL if the widnow doesn't exist yet. If you Destroy() a docking window, then you also need to reset the above pointer t...
by wsinda
Tue Feb 28, 2006 2:23 pm
Forum: C++ Development
Topic: EVT_TREE_ITEM_MENU and EVT_TREE_ITEM_RIGHT_CLICK
Replies: 3
Views: 1169

In OnTreeRightClick, test if the click is on a tree item. If so, you can ignore the event, because OnItemRightClick will also be activated.

Code: Select all

if (event.GetItem().IsOk()) {
  event.Skip();
  return;
}
by wsinda
Tue Feb 28, 2006 7:12 am
Forum: Platform Related Issues
Topic: wxGTK threading problems?
Replies: 4
Views: 814

Problem solved. If I call wxProgressDialog::Update() only when the next percent of progress has been made, then the processing isn't slowed down(too much). It would be even better to set a timer, and update every 0.2 seconds or so, but this will do. As to the first problem: when the progress dialog ...
by wsinda
Mon Feb 27, 2006 12:15 pm
Forum: Platform Related Issues
Topic: wxGTK threading problems?
Replies: 4
Views: 814

Have you tried to create the wxFileDialog with new* instead of allocating it on the stack? And call destroy before creating the other dialog? Yes, I tried that, but it made no difference. The redraw seems to have to wait until the event-handling function returns. As for your progress dialog, it dep...
by wsinda
Mon Feb 27, 2006 8:08 am
Forum: C++ Development
Topic: is there wxRuler?
Replies: 8
Views: 1310

The code for wxMathPlot may be a good starting point.
by wsinda
Mon Feb 27, 2006 8:00 am
Forum: Platform Related Issues
Topic: wxGTK threading problems?
Replies: 4
Views: 814

wxGTK threading problems?

The following code is from an application I'm working on. It opens a file dialog, and then loads the selected file(s), showing a progress dialog. void MyFrame::OnOpen(wxCommandEvent& event) { wxFileDialog fileDlg(<...>); if (fileDlg.ShowModal() != wxID_OK) return; wxArrayString fileNames; fileDlg.Ge...