Search found 30 matches

by Laurent22300
Sun May 17, 2009 7:05 pm
Forum: C++ Development
Topic: Turning off text antialiasing?
Replies: 7
Views: 2453

Do you know if there's any alternative to draw non-antialised text?
by Laurent22300
Sun May 17, 2009 5:52 pm
Forum: C++ Development
Topic: Turning off text antialiasing?
Replies: 7
Views: 2453

Turning off text antialiasing?

Hi, Is it possible to turn off anti-aliasing when using wxDC::DrawText? I've tried setting the antialiasing off when creating the font but it doesn't seem to work, or maybe I'm not doing it right. Here is the code I'm using: wxFont* font = wxFont::New(10, wxFONTFAMILY_DEFAULT, wxFONTFLAG_NOT_ANTIALI...
by Laurent22300
Thu May 14, 2009 6:36 pm
Forum: C++ Development
Topic: Cannot set locale to language Vietnamese
Replies: 4
Views: 1928

That was it! Thanks utelle :)
by Laurent22300
Tue May 12, 2009 6:47 pm
Forum: C++ Development
Topic: Cannot set locale to language Vietnamese
Replies: 4
Views: 1928

Below is the code I'm using. In that case, the "localeCode" argument is "vi" for "vietnamese". The code fails at "locale_->Init(info->Language)" bool MiniLaunchBar::ChangeLocale(const wxString& localeCode) { const wxLanguageInfo* info = wxLocale::FindLangu...
by Laurent22300
Mon May 11, 2009 5:56 pm
Forum: C++ Development
Topic: Cannot set locale to language Vietnamese
Replies: 4
Views: 1928

Cannot set locale to language Vietnamese

Hello, I'm having a strange problem with the Vietnamese locale in my application. Whenever I try to switch to it, wxWidgets prints a log error: "Cannot set locale to language Vietnamese". However, I've checked the file and it seems fine to me. It can be opened without a problem in poEdit. ...
by Laurent22300
Sun Nov 23, 2008 4:47 pm
Forum: C++ Development
Topic: Catching global mouse click
Replies: 2
Views: 1215

As usual, many thanks for the quick answer. I didn't know about wxPopupWindow and that CaptureMouse could be use for that, so I'm going to take a look at it.
by Laurent22300
Sun Nov 23, 2008 4:11 pm
Forum: C++ Development
Topic: Catching global mouse click
Replies: 2
Views: 1215

Catching global mouse click

Hello, I'm making a custom popup menu using wxWidgets, and one problem I'm running into is that I need to catch global mouse clicks. i.e. when the menu is open, it has to close if the user clicks anywhere (even on another application, or the desktop for example). So basically I need a way to catch a...
by Laurent22300
Sat Nov 15, 2008 8:44 pm
Forum: C++ Development
Topic: i need help to design a wx-application
Replies: 3
Views: 1099

using tools to relace missing knowledge doesn't take you very far Well I think wxGlade is actually a very useful tool to learn how sizers work and to know which properties are available and how they affect the layout. If you know how to use wxGlade, eventually you'll find it easy to build dialogs b...
by Laurent22300
Sat Nov 15, 2008 6:30 pm
Forum: C++ Development
Topic: wxListView with large icons and multiple columns
Replies: 3
Views: 2494

Ok I've just figured out what was wrong. I was assigning the image list after having created the items; however it apparently has to be done before otherwise it just doesn't work properly. So the right order is: 1. Create the image list 2. Assign it the list the view 3. Create the list items This is...
by Laurent22300
Sat Nov 15, 2008 5:41 pm
Forum: C++ Development
Topic: i need help to design a wx-application
Replies: 3
Views: 1099

Hi,

If you don't know how the layout or the sizers work, I'd suggest you try wxGlade and make it generate C++ code.

This is what I'm using for my wxWidgets project and it was quite helpful at the beginning when I didn't know how to build dialogs by code.
by Laurent22300
Sat Nov 15, 2008 5:31 pm
Forum: C++ Development
Topic: wxListView with large icons and multiple columns
Replies: 3
Views: 2494

So this is what I'm getting at the moment:

Image

and this is what I'd like to have:

Image

Any suggestions? Can it be done at all?
by Laurent22300
Sat Nov 15, 2008 2:40 pm
Forum: C++ Development
Topic: wxListView with large icons and multiple columns
Replies: 3
Views: 2494

wxListView with large icons and multiple columns

Hello, I'm trying to get wxListView to display large (32x32) icons on multiple columns. I managed to get it to display one column but I don't know how to add more. This is what I have so far: wxListView* listView = new wxListView(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_ICON); wxImageL...
by Laurent22300
Thu Nov 13, 2008 10:14 pm
Forum: C++ Development
Topic: Error reading default value with wxRegKey
Replies: 3
Views: 1198

Thanks, that's exactly what I needed :D
by Laurent22300
Thu Nov 13, 2008 9:24 pm
Forum: C++ Development
Topic: Error reading default value with wxRegKey
Replies: 3
Views: 1198

I guess a solution would be to simply disable the error message. Is it possible to do that?

For information, the message is generated by wxLogSysError.
by Laurent22300
Thu Nov 13, 2008 5:59 pm
Forum: C++ Development
Topic: Error reading default value with wxRegKey
Replies: 3
Views: 1198

Error reading default value with wxRegKey

Hello, I'm using wxRegKey to read some value in the registry. This is what I'm doing: wxRegKey* regKey = new wxRegKey(_T("HKEY_CLASSES_ROOT\\.test")); if (regKey->Exists()) { wxString defaultValue = regKey->QueryDefaultValue(); if (defaultValue != wxEmptyString) { // etc. } } It works well...