Search found 58 matches

by Cris
Wed Aug 23, 2006 10:00 am
Forum: C++ Development
Topic: How could I get rid of wxGrid's scrollbar
Replies: 1
Views: 450

How could I get rid of wxGrid's scrollbar

Hello, I have a problem with wxGrid's scrollbar. The strange thing is the scrollbar is always shown up on Mac not PC. And if I launch the application on Mac, I can see the scrollbar, but if I click on the wxGrid, the scrollbar will be disappeared. I already set wxGrid->EnableScrolling(false,false); ...
by Cris
Wed Aug 16, 2006 8:19 am
Forum: C++ Development
Topic: Problem with opening htm file using wxWidgets
Replies: 3
Views: 674

RE

Hello,benedicte,
Thanks a lot. Now it works. I should use path seperator instead of '/' or '\'.

I want to select "Accept" icon, but couldn't see it at all.

Cris.
by Cris
Tue Aug 15, 2006 3:52 pm
Forum: C++ Development
Topic: Problem with opening htm file using wxWidgets
Replies: 3
Views: 674

Re

Hello, the cmd looks like: C:\folderName\Firefox.exe -url"C:\folderName\Help/someFolderName/*.htm" Oh, maybe I should use the path seperator instead of "/" when creating the folder. Because the folder name should look like \folder\someFolder\Help\*.htm, not like \folder\someFolder/Help/*.htm. I will...
by Cris
Tue Aug 15, 2006 11:16 am
Forum: C++ Development
Topic: Problem with opening htm file using wxWidgets
Replies: 3
Views: 674

Problem with opening htm file using wxWidgets

Hello, I need some help. In an application built with wxWidgets, I need to open a *.htm file. With the following code, there is no problem of opening the htm file with Internet Explorer. wxFileType *filetype = wxTheMimeTypesManager->GetFileTypeFromExtension (wxT("htm")); bool ok = filetype->GetOpenC...
by Cris
Fri Jul 21, 2006 8:03 am
Forum: C++ Development
Topic: How can I draw a thinner line with wxPen?
Replies: 4
Views: 704

Re

Hello, Jorg,
The reason I think the line drawn in wxWidgets looks too thick is that I draw the same line on Mac using Cocoa and the line looks much thinner.
So that I have to find the way to make the line thinner or looks similar like the line drawn in Cocoa.
Thanks.

Cris
by Cris
Thu Jul 20, 2006 1:03 pm
Forum: C++ Development
Topic: How can I draw a thinner line with wxPen?
Replies: 4
Views: 704

How can I draw a thinner line with wxPen?

Hello, I have a small problem. I need to draw some colored lines. wxDc.SetPen(wxPen(wxColour(255,0,0),1, wxDOT)) And I found the line looks too thick. While wxPen(const wxColour& colour, int width = 1, int style = wxSOLID), there is no way to set the width to be a float value or to make it smaller t...
by Cris
Thu Apr 27, 2006 3:32 pm
Forum: C++ Development
Topic: Image sent to back
Replies: 9
Views: 1470

Re

try to use:
wxSystemOptions::SetOption(_T("msw.staticbox.optimized-paint"),0);

change '0' to '1', see what will happen if you want to draw a bitmap over or behind a wxStaticBox. Hope it will help you.
by Cris
Thu Apr 27, 2006 1:46 pm
Forum: C++ Development
Topic: Image sent to back
Replies: 9
Views: 1470

Re

upCASE:
Be calm down. One sentence is enough for cyrixware to understand you.

cyrixware:
I think you can set one image behind the other imge. Try SetMaskColour() for the image.

Cris
by Cris
Wed Apr 26, 2006 11:48 am
Forum: C++ Development
Topic: why the Chinese characters show as clobbers using xml
Replies: 12
Views: 2035

Re

If you want your widgets application to be able to show correct Chinese Characters, make sure your system has been changed to Simplified Chinese or Traditional Chinese. On Win XP->Settings->Control Panel->Regional and Language Options, change your system to Chinese, make sure you have Chinese fonts ...
by Cris
Wed Apr 26, 2006 9:12 am
Forum: C++ Development
Topic: why the Chinese characters show as clobbers using xml
Replies: 12
Views: 2035

Re

I am not sure if you are using the correct encoding "ISO-8859-1". Supporting Chinese characters I guess you may need the encoding "UTF-8".

Cris
by Cris
Fri Apr 21, 2006 9:21 am
Forum: C++ Development
Topic: changing language in application (repaint strings)
Replies: 12
Views: 1482

Re

Dee, You wrote:"The error above is that you can not set a single menu entry of wxMenu, you must create a whole new menu and delete the old one", I don't think you need to create a whole menu again and delete the old one only for localizeing the menu with a new language. What I always do is to find t...
by Cris
Fri Apr 21, 2006 7:47 am
Forum: C++ Development
Topic: changing language in application (repaint strings)
Replies: 12
Views: 1482

Re

If you don't have problem of localizing the strings at startup, then put the code for localizing the strings into a function. And call this function at startup, init() function, and call this function after setting another language. You may also need to recalculate the sizer and refresh your UI. Che...
by Cris
Thu Apr 20, 2006 3:37 pm
Forum: C++ Development
Topic: changing language in application (repaint strings)
Replies: 12
Views: 1482

Re

>>As I asked above: how should I set the labels? The event is not a >>problem, but how can I reset the strings? Read wxLocale in widgets help file, and look at a sample under widgets's sample folder regarding to localization. You can use wxT() to set the localized string. In your event, define a fun...
by Cris
Thu Apr 20, 2006 10:20 am
Forum: C++ Development
Topic: changing language in application (repaint strings)
Replies: 12
Views: 1482

Re

I guess you could define an event when you select to change the language in menu. In this event, set all the labels to localized strings
by Cris
Thu Apr 20, 2006 9:06 am
Forum: C++ Development
Topic: How to find a menu ID defined in wxWidgets?
Replies: 3
Views: 698

AW

This menu ID 'ChineseTextConverter' on Mac OS 10.4.4 may crash widgets library if the text has been selected in the textCtrl.