Search found 57 matches
- Tue Sep 26, 2017 2:32 am
- Forum: wxWidgets Development (Chinese)
- Topic: wxsocket Read读取数据遇到\0字符串被截断的问题
- Replies: 2
- Views: 12004
Re: wxsocket Read读取数据遇到\0字符串被截断的问题
你使用strlen的时候肯定计算出来的长度不对,你是不是应该使用socket read的返回值作为接收字符串的长度
- Mon Sep 25, 2017 2:20 am
- Forum: wxWidgets Development (Chinese)
- Topic: 召集跨平台的wx小伙伴
- Replies: 3
- Views: 12744
Re: 召集跨平台的wx小伙伴
邮箱客户端yalla wrote:是什么样的项目?
我有在Trisquel gnulinux下编译wx和vlc等软件。
- Mon Sep 25, 2017 2:18 am
- Forum: wxWidgets Development (Chinese)
- Topic: 召集跨平台的wx小伙伴
- Replies: 3
- Views: 12744
Re: 召集跨平台的wx小伙伴
我们目前是在vs下用的wx,linux、macOS下也要使用,但是还没移植过去yalla wrote:是什么样的项目?
我有在Trisquel gnulinux下编译wx和vlc等软件。
- Tue Sep 19, 2017 3:25 am
- Forum: wxWidgets Development (Chinese)
- Topic: 召集在MAC OS X下开发wxWidgets的小伙伴
- Replies: 2
- Views: 12797
Re: 召集在MAC OS X下开发wxWidgets的小伙伴
楼主还在用wx库开发吗,算我一个,我是项目是做跨平台的,目前在windows下写的代码,回头是要移植到mac和linux下的,请多多指教
- Tue Sep 19, 2017 3:21 am
- Forum: wxWidgets Development (Chinese)
- Topic: 召集跨平台的wx小伙伴
- Replies: 3
- Views: 12744
召集跨平台的wx小伙伴
目前在做跨平台的项目、windows、linux、mac os三个平台都要做,目前只是在widows下编码和测试,使用的wx版本是3.01,等项目差不多了换成3.10的!
有没有做跨平台的项目的小伙伴,一起交流啊,在英文论坛逛得很累
有没有做跨平台的项目的小伙伴,一起交流啊,在英文论坛逛得很累
- Mon Sep 04, 2017 3:11 am
- Forum: C++ Development
- Topic: How does js call c + + functions
- Replies: 4
- Views: 1823
Re: How does js call c + + functions
Hello, I don't use wxWebViewChromium (I'm using the regular Trident and WebKit backends in the MSW/OSX editions of my apps and I simply use the usual trick changing the document title when Javascript has something to say to C++), but doesn't one of the slot allowed to wxWidgets in GSoC 2017 is abou...
- Sat Sep 02, 2017 2:16 am
- Forum: C++ Development
- Topic: How does js call c + + functions
- Replies: 4
- Views: 1823
How does js call c + + functions
https://github.com/steve-lamerton/wxWebViewChromium On this basis, I made simple modifications. In order to implement the function of c + + Called by javascript, I added the CefRenderer process and modified the Startup function in the demo bool wxWebViewChromium::StartUp(int &code, const wxStrin...
- Wed Aug 30, 2017 10:45 am
- Forum: C++ Development
- Topic: how to How to improve the effect of wxDc drawing circle
- Replies: 7
- Views: 2278
Re: how to How to improve the effect of wxDc drawing circle
The effect of the wxDc and wxGc is that, like the ICONS in the attachment, it looks like the sawtooth is obvious.doublemax wrote:Then the result is expected. If the image is pixelated before, wxGraphicsContect won't "fix" it.It shows the original image, not zooming
Can you show a screenshot?
- Wed Aug 30, 2017 10:09 am
- Forum: C++ Development
- Topic: how to How to improve the effect of wxDc drawing circle
- Replies: 7
- Views: 2278
Re: how to How to improve the effect of wxDc drawing circle
the wxGraphicsContext drawing line works very well, but drawBitmap is the same as the sawtooth effect of wxDc Do you scale the bitmap? How? Experiment with wxGraphicsContext::SetInterpolationQuality() http://docs.wxwidgets.org/trunk/classwx_graphics_context.html#af6ecb449cb732632a8d9b5c285d01b91 It...
- Wed Aug 30, 2017 9:57 am
- Forum: C++ Development
- Topic: how to How to improve the effect of wxDc drawing circle
- Replies: 7
- Views: 2278
Re: how to How to improve the effect of wxDc drawing circle
Assuming you're under Windows, you'll need to use wxGraphicsContext, it supports anti-aliasing: http://docs.wxwidgets.org/trunk/classwx_graphics_context.html If you already have a lot of code based on wxDC, you can use wxGCDC which is a wrapper around wxGraphicsContext with a wxDC-compatible API: h...
- Tue Aug 29, 2017 9:43 am
- Forum: C++ Development
- Topic: how to How to improve the effect of wxDc drawing circle
- Replies: 7
- Views: 2278
how to How to improve the effect of wxDc drawing circle
Hi,
WxDc draw circle, the edge of this circle is serrated, what can I do to eliminate the sawtooth?
WxDc draw circle, the edge of this circle is serrated, what can I do to eliminate the sawtooth?
- Sat Aug 26, 2017 2:07 am
- Forum: C++ Development
- Topic: How to change style of scrollbar
- Replies: 10
- Views: 4602
Re: How to change style of scrollbar
Like already mentioned, you usually can't customize the native scrollbar, you'd have to create a custom control that mimics the behavior of a scrollbar. That means: - draw the background - draw the arrows - draw the slider - react to mouse events to change the position of the slider - generate even...
- Fri Aug 25, 2017 7:50 am
- Forum: wxWidgets Development (Chinese)
- Topic: 汉字与unicode文本之间的转化问题
- Replies: 5
- Views: 15356
Re: 汉字与unicode文本之间的转化问题
用系统调用更简单一点何必去自己写呢hvenus wrote:请问如何把中文转成unicode文本呢?
例如windows下:MultiByteToWideChar()
- Fri Aug 25, 2017 7:37 am
- Forum: C++ Development
- Topic: Creating HTML-Editor with wxHTMLWindow | wxRichtTextCtrl
- Replies: 17
- Views: 5122
Re: Creating HTML-Editor with wxHTMLWindow | wxRichtTextCtrl
Have you found a solution? I've been working on the email editor recently, using the Google browser kernel as the kernel for wxWebView.wxRichtText can't meet the requirements, especially if you want to paste excel tables,and wxWebview can do whatever you want.
- Fri Aug 25, 2017 6:57 am
- Forum: C++ Development
- Topic: How to change style of scrollbar
- Replies: 10
- Views: 4602
Re: How to change style of scrollbar
wxWidgets' main philosophy is to use native controls and native look where ever possible. Because of that, changing the native look of controls or even window elements is impossible most of the time. If you only need a custom scrollbar, one option might be to hide the native scrollbars of a control...