Search found 150 matches

by chris
Thu Aug 04, 2005 8:46 am
Forum: C++ Development
Topic: update on grid
Replies: 3
Views: 800

I don't know, but if it really works except in the last col/row, well, that's strange.
At first I thought of an index problem (rows/columns starting with 0), but if it's all well with the other cells that's unlikely. Perhaps a bug in wx?
by chris
Thu Aug 04, 2005 8:25 am
Forum: C++ Development
Topic: wxGrid fitting width
Replies: 2
Views: 776

Hi llama9000,

thanks for your reply.
Yes, I guess it would. I just hoped to be able to avoid manually setting sizes of an otherwise dynamic grid. Is there really no way to tell a grid to use all of the available size?

Chris
by chris
Thu Aug 04, 2005 8:19 am
Forum: C++ Development
Topic: update on grid
Replies: 3
Views: 800

I just tried SetCellBackgroundColour() and it works as expected on my system (wxMSW 2.6.1 on Windows XP SP2).
Which version of wx are you using?
by chris
Sun Jul 31, 2005 2:57 pm
Forum: C++ Development
Topic: wxGrid fitting width
Replies: 2
Views: 776

wxGrid fitting width

Hi all, I've got a question about the sizes of a wxGrid. Let's say I create a grid with a width of 100 pixels and 2 columns, so each column is ~50 pixels wide. I then set a custom background color for this grid and fill it with some values. I know that the values in the second column are fixed lengt...
by chris
Thu Jul 28, 2005 2:58 pm
Forum: C++ Development
Topic: Float on Frame or stay on top
Replies: 9
Views: 1588

Try "pkg-config --modversion gtk+-2.0". Alternatively have a look at /usr/lib/gtk-2.0/, there may be a subdirectory like "2.4.0" or such.

And yes, SUSE versions at notoriously out of date :(
That's why I switched my computers to Debian and Ubuntu.

Chris
by chris
Thu Jul 28, 2005 9:03 am
Forum: C++ Development
Topic: Float on Frame or stay on top
Replies: 9
Views: 1588

From the changelog (ftp://biolpc22.york.ac.uk/pub/2.6.1/changes-2.6.1.txt) for 2.6.1:
wxGTK:

- Added support for wxSTAY_ON_TOP (GTK 2.4+).
So, if you are using wxWidgets 2.6.1 linked against GTK2 then at least wxSTAY_ON_TOP should work.

HTH, Chris
by chris
Fri Apr 08, 2005 12:32 pm
Forum: C++ Development
Topic: Assuring just a single instance of app running
Replies: 2
Views: 665

I knew it would be hidden somewhere in the documentation, but couldn't find it (even with google)... :wink:

Thanks a lot!

chris
by chris
Fri Apr 08, 2005 10:09 am
Forum: C++ Development
Topic: Assuring just a single instance of app running
Replies: 2
Views: 665

Assuring just a single instance of app running

Hi all, I'd like to assure that there's only one instance of my app running at a time. In the old days of pure Windows programming one would do something like creating a global mutex with CreateMutex(NULL,false,"myapp_global");, then waiting on that with WaitForSingleObject(mymutex,10) and bailing o...
by chris
Sat Apr 02, 2005 11:10 am
Forum: General Forum Issues
Topic: Link to wx2.5.4 Docs
Replies: 11
Views: 3484

And as a bit of a follow-up :wink: :

Are there plans to update the wxWidgets syntax parser to 2.5.4 so that the links like

Code: Select all

wxFrame
point to the 2.5.4 docs?
I guess the API changed a bit, but most tokens should be the same.
by chris
Sat Apr 02, 2005 11:03 am
Forum: C++ Development
Topic: Strange problem about event
Replies: 5
Views: 925

Hi, wxPostEvent adds the event to the receivings object's event queue, and it's unlikely that it'll get lost (BTW: What happens at a queue overflow? Does this result in a runtime overflow notification from wx?). Regarding your problem, craks, I'm not sure. Did your correctly declare the custom event...
by chris
Sun Feb 06, 2005 10:22 pm
Forum: C++ Development
Topic: wxTextCtrl unselect selected text?
Replies: 4
Views: 1450

Hi Ryan,

already solved it.
If someone encounters the same problem:

Calling SetSelection() like shown in my first post before calling Show() on the dialog results in the expected behaviour.

Thanks, Chris
by chris
Sun Feb 06, 2005 4:34 pm
Forum: C++ Development
Topic: wxTextCtrl unselect selected text?
Replies: 4
Views: 1450

wxTextCtrl unselect selected text?

Hi all, I'm filling a wxTextCtrl in a modeless dialog with some text via SetValue(). The textctrl is created with the style wxVSCROLL|wxHSCROLL|wxTE_MULTILINE. When I then Show() the dialog, all the text in the textctrl is selected, but I want it to be unselect. I already tried some tricks like myTe...
by chris
Tue Nov 30, 2004 5:11 pm
Forum: C++ Development
Topic: What about main loop?
Replies: 10
Views: 1711

Hi, I recently had the same problem, using a modal dialog with a progress bar and doing some expensive file hashing. The solution is to put your custom main code (loading etc.) into an idle event (see wxIdleEvent documentation). The idle event will take place when the main frame is completly drawn. ...
by chris
Fri Oct 08, 2004 4:51 pm
Forum: C++ Development
Topic: wxLogWindow troubles
Replies: 2
Views: 1182

Hi Jorgen, Well, there's not much to see in the code yet :wink: I'm doing the usual IMPLEMENT_APP(myApp) bool myApp::OnInit() { myDlg *dlg = new myDlg(NULL); SetTopWindow(dlg); myDlg->Show(TRUE); return TRUE; } And in the ctor of myDlg myDlg::myDlg( wxWindow *parent, wxWindowID id, const wxString &t...
by chris
Fri Oct 08, 2004 2:24 pm
Forum: C++ Development
Topic: wxLogWindow troubles
Replies: 2
Views: 1182

wxLogWindow troubles

Hi all, I'm having some problems with wxLogWindow on wx 2.5.2, platform Windows. I'm creating one in the ctor of a modeless dialog and would like to have it close when the dialog closes. Calling delete() for the log window in the event handler of the dialog's EVT_CLOSE makes me run into a segfault. ...