Search found 20 matches

by winvdk
Tue Nov 26, 2019 9:15 am
Forum: C++ Development
Topic: How to convert a codepoint to utf8
Replies: 3
Views: 228

Re: How to convert a codepoint to utf8

There is no need to do conversion, because 65 is already a UTF-8 character 'A'. 65, 'A', and 0x41 all of them are the same to the machine. The difference is how we (human) want it to be represented on screen. Character encoding - Wikipedia wxWidgets: wxMBConv Class Reference wxWidgets uses wide char...
by winvdk
Sun Nov 03, 2019 2:33 pm
Forum: General Development
Topic: Has anyone successfully built an CEF application with wxGTK?
Replies: 3
Views: 513

Re: Has anyone successfully built an CEF application with wxGTK?

Thanks for the reply, and yes I did check the source codes of wxWebViewChromium before asking the question. As far as I know, it is removed from version 3.1.2 of wxWidgets. I actually doubt if it is completed. For example, while creating a CefBrowser object it does not setup the CefWindowInfo object...
by winvdk
Sun Nov 03, 2019 5:39 am
Forum: General Development
Topic: Has anyone successfully built an CEF application with wxGTK?
Replies: 3
Views: 513

Has anyone successfully built an CEF application with wxGTK?

Hi, I'm learning Chromium Embedded Framework (CEF), and tried to build some simple examples written by myself for practice. I followed this tutorial chromiumembedded / cef / wiki / GeneralUsage — Bitbucket , but it doesn't actually work. It really is not as simple as the tutorial describes. The main...
by winvdk
Sun Jun 25, 2017 12:52 pm
Forum: Platform Related Issues
Topic: Debian 9 + Xfce => broken wxGTK ???
Replies: 2
Views: 771

Re: Debian 9 + Xfce => broken wxGTK ???

Thank you, David. It works perfectly now after install ibus-gtk, just like the link you gave describes. You saved me a lot of time from "trial and error". Really appreciate it. Have a nice day. :) By the way, even the ugly (broken?) GUI of samples/widgets is gone. Don't know why and how ibus affects...
by winvdk
Sun Jun 25, 2017 7:25 am
Forum: Platform Related Issues
Topic: Debian 9 + Xfce => broken wxGTK ???
Replies: 2
Views: 771

Debian 9 + Xfce => broken wxGTK ???

Sorry, my English is not good. Just want to ask if any one have the same problem. Recently, Debian 9 was officially released, so I upgraded and also decided to give Xfce a try, because it is said to be more resource-friendly. However, everything goes weird in the applications using wxGTK. For exampl...
by winvdk
Wed Jan 14, 2015 6:11 am
Forum: C++ Development
Topic: Unbale to set different settings for socket IO.
Replies: 1
Views: 593

Unbale to set different settings for socket IO.

According to http://docs.wxwidgets.org/3.0.2/socket_8h.html#a1fb9092bcdeada2d206bdc74afbbe122 , it says If wxSOCKET_NOWAIT is specified, ... If it is desired to control Read independently of Write, for example you want no wait on Read(), but you do want to wait on Write(), then use wxSOCKET_NOWAIT_R...
by winvdk
Wed Oct 15, 2014 12:55 pm
Forum: Platform Related Issues
Topic: wxGTK 3.0.2 seems to be incompatible with GStreamer 1.4.3
Replies: 2
Views: 1186

wxGTK 3.0.2 seems to be incompatible with GStreamer 1.4.3

After updating to wxGTK 3.0.2, several small programs I wrote for learning GStreamer are broken. The broken ones all depend on both wxGTK and GStreamer 1.0. I'm wondering if this is because wxGTK depends on GStreamer 0.10 and my programs is linked against GStreamer 1.0 , so the versions conflict? Be...
by winvdk
Wed May 07, 2014 9:53 am
Forum: Platform Related Issues
Topic: Would it be better if gtk_widget_realize in wxWindow::Create
Replies: 4
Views: 1945

Re: Would it be better if gtk_widget_realize in wxWindow::Cr

Thank you David. I really appreciate it.
by winvdk
Tue May 06, 2014 2:22 am
Forum: Platform Related Issues
Topic: Would it be better if gtk_widget_realize in wxWindow::Create
Replies: 4
Views: 1945

Re: Would it be better if gtk_widget_realize in wxWindow::Cr

Thank you David for detailed information. I noticed that we can't gtk_widget_realize native controls, such as wxTextCtrl, within wxApp::OnInit or the ctor of the wxWindow. It will incur SIGSEGV. IMHO, wxWindow::GetHandle should return XID, not a pointer to GtkWidget, if cross-platform is concerned. ...
by winvdk
Mon May 05, 2014 2:12 pm
Forum: Platform Related Issues
Topic: Would it be better if gtk_widget_realize in wxWindow::Create
Replies: 4
Views: 1945

Would it be better if gtk_widget_realize in wxWindow::Create

Hi, Several back-end applications and libraries need X window identifier (XID). For example, mplayer , Irrlicht and VideoLAN need it. However, it seems not very handy to acquire XID from wxGTK. In fact, inside the override of wxApp::OnInit , the GdkWindow is unavailable. What ::gtk_widget_get_window...
by winvdk
Sat May 03, 2014 11:12 am
Forum: Compiler / Linking / IDE Related
Topic: How to link wxWidgets against a specific version of libjpeg?
Replies: 3
Views: 2156

Re: How to link wxWidgets against a specific version of libj

It seems inevitable to have the system-inherent version libpng as a dependency. wxGTK needs libpng, so does GTK+. It doesn't matter how wxGTK is built. wxGTK needs GTK+, which is in turn based on libpng of which version is system-inherent. This is the conclusion I came to after these 3 desperate day...
by winvdk
Sat May 03, 2014 8:36 am
Forum: Compiler / Linking / IDE Related
Topic: How to link wxWidgets against a specific version of libjpeg?
Replies: 3
Views: 2156

Re: How to link wxWidgets against a specific version of libj

Thank you, David. I don't know what configure.in is, but I'll look into it. Thanks again. The explanation is very in-depth. Really appreciate it.
by winvdk
Sat May 03, 2014 5:44 am
Forum: Compiler / Linking / IDE Related
Topic: How to link wxWidgets against a specific version of libjpeg?
Replies: 3
Views: 2156

How to link wxWidgets against a specific version of libjpeg?

Hi all. My platform is Debian Wheezy. I need to link wxWidgets and Irrlicht against the same external and self-built libjpeg and libpng, otherwise the application depending on them will be corrupt, because of apparent version conflict. The problem is that it seems impossible/difficult to force wxWid...
by winvdk
Sat Jan 25, 2014 7:01 pm
Forum: C++ Development
Topic: Why the GUI of my app is uglier than of the samples?
Replies: 2
Views: 890

Re: Why the GUI of my app is uglier than of the samples?

Thank you, doublemax. I used windres.exe (from TDM-GCC) to compile wx/msw/wx.rc into a .o file, then linked the .o file with my own object files. The output binary has better GUI looking now. Many thanks, doublemax.
by winvdk
Sat Jan 25, 2014 2:50 pm
Forum: C++ Development
Topic: Why the GUI of my app is uglier than of the samples?
Replies: 2
Views: 890

Why the GUI of my app is uglier than of the samples?

They link against with the same wxWidgets in the filesystem. However, mine GUI is uglier. Below is the comparison. The first one is from the samples of wxWidgets, and the second is a mimic from my own codes. http://i989.photobucket.com/albums/af16/ldttwz/nybm7x_zps65a5725d.gif http://i989.photobucke...