Search found 88 matches

by Death Knight
Fri Mar 29, 2013 12:18 am
Forum: C++ Development
Topic: Output extended ASCII chars (CP437) on wxDC
Replies: 7
Views: 4050

Re: Output extended ASCII chars (CP437) on wxDC

wxCSConv(wxT("CP437")) works! I found this code at internet, this explains the issue with wxGTK: // on linux the wrong string is returned from wxFontMapper::GetEncodingName(wxFONTENCODING_SHIFT_JIS) // it returns CP-932, in order to use iconv we need to use CP932 m_SJISConv = wxCSConv(wxT("CP932"));
by Death Knight
Fri Mar 08, 2013 2:54 am
Forum: C++ Development
Topic: Output extended ASCII chars (CP437) on wxDC
Replies: 7
Views: 4050

Re: Output extended ASCII chars (CP437) on wxDC

Himm. This might be a bug related with wxGTK. Also 0x7F interpreted wrong... It needed to mapped to "\x2302" Don't know if 0x01 to 0x20 put symbols shown at your system correctly since you initialize i from 32 (0x20). I don't know if this really efficient but works... The alternative CP437 to Unicod...
by Death Knight
Thu Mar 07, 2013 11:58 pm
Forum: C++ Development
Topic: Output extended ASCII chars (CP437) on wxDC
Replies: 7
Views: 4050

Re: Output extended ASCII chars (CP437) on wxDC

Himm.
My buffer has raw 8bit data, not unicode data as you use...
This makes the issue.

All I want to write same (similar) characters with wxDC.
Here is a sample
Image

So I think I need to do some conversion but don't know how to do it.
by Death Knight
Thu Mar 07, 2013 9:51 pm
Forum: C++ Development
Topic: Output extended ASCII chars (CP437) on wxDC
Replies: 7
Views: 4050

Re: Output extended ASCII chars (CP437) on wxDC

Sorry for lateness. I am using wxWidgets 2.8.12 , unicode GTK build on linux. Without wxFONTENCODING_CP437 stuff, I got no error. but this output : EASCII.png I want to show CP437 characters instead of those hex values at box. Does it because the font that I am using? If it is, how can I choose font...
by Death Knight
Tue Feb 19, 2013 3:23 am
Forum: C++ Development
Topic: Output extended ASCII chars (CP437) on wxDC
Replies: 7
Views: 4050

Output extended ASCII chars (CP437) on wxDC

I tried many times but stuck with this... Just want to print Extended ASCII characters ( CP437 ) on wxDC but I couldn't manage how to do it. I just use wxDC::DrawText for converting string to image on wxDC. I use "Monospace" font ("DejaVu Sans Mono" "Book" at my system). I believe this font has requ...
by Death Knight
Sat Jan 28, 2012 11:08 pm
Forum: Compiler / Linking / IDE Related
Topic: Debian: can't compile static -m32 on amd x86_64
Replies: 1
Views: 1699

Re: Debian: can't compile static -m32 on amd x86_64

Hi Mingw? I think you don't have any job with mingw If you don't try to build executable for window$. I think your problem is, your system doesn't have 32 bit versions of libz/expat and other libraries. You also needed to install gnome-32bit-devel, x11-32bit-devel packages... Ah also 32 bit gcc and ...
by Death Knight
Fri Oct 29, 2010 2:19 pm
Forum: General Development
Topic: wxGLCanvas inside with other elements
Replies: 2
Views: 932

Thanks but I think jobs are different on wxPython side... I think I needed to implement GLCanvas as inherited class due python rules(?)... I couldn't make it working for a days... I inspected deeper and I think problem is usage of XRC. While I am using XRC, my frame generated via : frame = res.LoadF...
by Death Knight
Thu Oct 28, 2010 11:57 pm
Forum: General Development
Topic: wxGLCanvas inside with other elements
Replies: 2
Views: 932

wxGLCanvas inside with other elements

I am using wxpython and trying to change wxDC drawing with OpenGL code. I tried to make it but not successful on the job... Can I have OpenGL canvas inside of a sizer? All I can make using whole window for OpenGL... Is there any way to move Canvas to inside to wxSizer? Or any other way do this job e...
by Death Knight
Mon Apr 05, 2010 3:09 pm
Forum: C++ Development
Topic: Problem dropping a file
Replies: 2
Views: 468

Weird. I think there is some problem with configuration files.
You can build wxWidgets by hand and could use after with CodeBlocks for a turn around.
by Death Knight
Mon Apr 05, 2010 3:04 pm
Forum: Platform Related Issues
Topic: wxArtProvider::How to select native icons?
Replies: 1
Views: 925

As I search deeply, shocking result is that, there are no "stock" icons on Win and Mac...
by Death Knight
Sat Apr 03, 2010 1:28 pm
Forum: Platform Related Issues
Topic: wxArtProvider::How to select native icons?
Replies: 1
Views: 925

wxArtProvider::How to select native icons?

:? I have some problem for a year with wxArtProvider. I am trying to get proper Toolbar icons from os. It make it's job perfectly at GTK. But on Windows (cross compiled with mingw 4.4.3) and on MacOSX (compiled on macosx with g++) Icons are really bad. How can I use native icons at Windows and MacOS...
by Death Knight
Sat Dec 05, 2009 2:46 am
Forum: Platform Related Issues
Topic: How can I compile Unicode Static wx2.8 lib for Windows?
Replies: 2
Views: 704

Answer is from linux using cross-compile with mingw32 :D
by Death Knight
Sun Aug 30, 2009 2:45 pm
Forum: C++ Development
Topic: Implement wxListCtrl with Checkboxes
Replies: 10
Views: 1480

Re: Implement wxListCtrl with Checkboxes

http://wiki.wxwidgets.org/WxListCtrl#Implement_wxListCtrl_with_Checkboxes I dont understand: #include <bitmaps/checked.xpm> #include <bitmaps/unchecked.xpm> wxWidgets is native GUI. Why? wxCheckbox? http://docs.wxwidgets.org/trunk/classwx_check_box.html wxAPI -> Translate to Native OS -> WinAPI You...
by Death Knight
Sat Aug 29, 2009 4:41 pm
Forum: C++ Development
Topic: wxMemoryBuffer object return
Replies: 5
Views: 826

Yes It's more clear now. I am thinking blind this days. Even tried z = GetBin(), complex code returns false comments. Thank you for this.
by Death Knight
Sat Aug 29, 2009 4:01 pm
Forum: C++ Development
Topic: wxMemoryBuffer object return
Replies: 5
Views: 826

Okey, I already understand that. But I am questioning that where is the copy of that object? I am returning copy of that object right? I am not defined GetBin() as wxMemoryBuffer* GetBin() //or wxMemoryBuffer& GetBin() //with this I understand that returning object will destroyed. void OnCmd(wxComma...