Search found 13 matches

by rayam
Fri Nov 10, 2006 8:43 am
Forum: C++ Development
Topic: How to feed RTF string to wxTextCtrl with unicode built
Replies: 0
Views: 416

How to feed RTF string to wxTextCtrl with unicode built

My previous project work fine in ansi built. After I rebuilt wx263 with unicode built option, the wxTextCtrl with style flag wxTE_RICH just display RTF control string in the text area.

Pleae advise how to feed RTF control string to wxTextCtrl when unicode built is apply. :wink:

Thank you!
by rayam
Thu Nov 09, 2006 11:38 pm
Forum: C++ Development
Topic: What's wrong with this code? wxString + Unicode build
Replies: 3
Views: 1155

well, you already figured out yourself what's going wrong, the character conversion fails. You could try using wxConvLocal. If that fails you need to check the file you're trying to read and see how it's encoded. I assign wxConvLocal when call wxFFile::Readall(), the problem is solved. Thank you ve...
by rayam
Thu Nov 09, 2006 12:10 pm
Forum: C++ Development
Topic: What's wrong with this code? wxString + Unicode build
Replies: 3
Views: 1155

What's wrong with this code? wxString + Unicode build

I try load a wxstring with wxffile::readall() but get nothing. // read all to buffer wxFFile in(fn.GetFullPath().c_str()); wxString buf; TRACEVAL((int)in.IsOpened()); // (int)in.IsOpened()=1 TRACEVAL((int)in.Length()); // (int)in.Length()=98436 bool bf=in.ReadAll(&buf); if (!bf) return; in.Close...
by rayam
Wed Jun 21, 2006 9:09 am
Forum: Compiler / Linking / IDE Related
Topic: problem on compling wxwidgets 2.6.3 with bcc
Replies: 0
Views: 648

problem on compling wxwidgets 2.6.3 with bcc

I get the following error when compling wxwidgets 263 with bcc. Please help me how to fix it. Thanks. J:\Projects\wx263\build\msw>make -fmakefile.bcc MAKE Version 5.2 Copyright (c) 1987, 2000 Borland if not exist bcc_mswudll mkdir bcc_mswudll if not exist ..\..\lib\bcc_dll mkdir ..\..\lib\bcc_dll if...
by rayam
Thu Jan 12, 2006 3:40 am
Forum: C++ Development
Topic: Problem on wxTextattr.setflags
Replies: 2
Views: 1014

Problem on wxTextattr.setflags

How to change selected text to wxITALIC without change other text attribute(ie:font, size, bold, underline)? I have try the follow code on XP + BCC5.5, but it will change all selected text to the same font by change the font, size, bold, underline also. Am I right to use setflags(wxTEXT_ATTR_FONT_IT...
by rayam
Mon May 30, 2005 8:12 am
Forum: General Development
Topic: How can I make sure textctrl auto scrolling?
Replies: 2
Views: 3685

Re: How can I make sure textctrl auto scrolling?

Vectical scroll bar of a muitline line wxTextCtrl disappeared after SetValue(); How can I make it show the v-scroll bar again? Try refreshing it afterwards - also try adding the wxALWAYS_SHOW_SB to the window flags on its creation if you always want the scrollbars Thanks to Ryan! But, I found that ...
by rayam
Thu May 26, 2005 11:53 am
Forum: General Development
Topic: How can I make sure textctrl auto scrolling?
Replies: 2
Views: 3685

How can I make sure textctrl auto scrolling?

Vectical scroll bar of a muitline line wxTextCtrl disappeared after SetValue(); How can I make it show the v-scroll bar again?
by rayam
Tue Mar 22, 2005 10:11 am
Forum: C++ Development
Topic: How to use wxLogWindow?
Replies: 7
Views: 3726

How to use wxLogWindow?

I make it but unable close it by calling the delete method inside wxApp::OnExit() or wxFrame::OnClose();. What is the suitable way to use wxLogWindow? Or where are an example about it? Thank you.
by rayam
Mon Mar 21, 2005 10:33 am
Forum: C++ Development
Topic: unicode and wxTextCtrl::LoadFile
Replies: 5
Views: 2314

I find the reason why loadfile() don't work under window because char \r\n will be translated to \n under window, so the return read bytes from fread() is not the same as actual file length. Once making a amendment to the file common/textcmn.cpp, the problem is solved. line 199 wxFFile file(filename...
by rayam
Tue Mar 15, 2005 3:00 am
Forum: C++ Development
Topic: unicode and wxTextCtrl::LoadFile
Replies: 5
Views: 2314

I also encounter the same problem that the wxTextCtrl::LoadFile is not work. Now, I just load the same file with fopen() and fread() method. I would like to use WXW's method rather than make the code by myself for better performance. Is the problem of wxTextCtrl::LoadFile fixed or not? Please advise...
by rayam
Tue Mar 15, 2005 2:50 am
Forum: Compiler / Linking / IDE Related
Topic: [solved]Problem of Compling configtool by BCC
Replies: 0
Views: 894

[solved]Problem of Compling configtool by BCC

I encounter problem when compling the utils. Please tell me what settings is wrong with BCC? Or it is only problem from Borland's linker? All I got for compling are bcc32 5.64, brc32 5.4 & ilink32 5.66. Any opinion are welcome. Thanks you. ^^ Compling message is here: J:\wxWidgets254\utils>make ...
by rayam
Wed Mar 09, 2005 2:10 am
Forum: Compiler / Linking / IDE Related
Topic: HANDLE of WXW254 file function compatiable with BCB6(PE)?
Replies: 2
Views: 1549

:) Thanks for prompt reply.
by rayam
Tue Mar 08, 2005 7:18 am
Forum: Compiler / Linking / IDE Related
Topic: HANDLE of WXW254 file function compatiable with BCB6(PE)?
Replies: 2
Views: 1549

HANDLE of WXW254 file function compatiable with BCB6(PE)?

As I try to use wxw 254, I find the defination of HANDLE for wxw file function is not compatible with BCB6(PE). I had tried to make a wxw programme and got the following error message: J:\Program Files\Borland\CBuilder6\Projects\wxWidgets254\samples\hworld>make -f makefile.bcc MAKE Version 5.2 Copyr...