Search found 80 matches
- Mon Apr 23, 2018 5:29 am
- Forum: C++ Development
- Topic: help drawing this on device context
- Replies: 17
- Views: 197
Re: help drawing this on device context
Maybe I should have done that from the start? When I search google and docs.wxwidgets.org i dont see any wxGLPanel documentation? Do you know how I would do this? Drawing with opengl seems to be pretty straight foward using glVertex2f https://www.ntu.edu.sg/home/ehchua/programming/opengl/CG_Introduc...
- Sun Apr 22, 2018 11:48 pm
- Forum: C++ Development
- Topic: help drawing this on device context
- Replies: 17
- Views: 197
Re: help drawing this on device context
Is it possible to draw with opengl inside of a wxwidgets wxPanel?
- Sun Apr 22, 2018 10:37 pm
- Forum: C++ Development
- Topic: help drawing this on device context
- Replies: 17
- Views: 197
Re: help drawing this on device context
Thank you for helping.
wx-config --version 3.0.2
uname -a Linux user-desktop 4.13.0-38-generic #43~16.04.1-Ubuntu SMP Wed Mar 14 17:48:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
os: linux mint 18.3 - kde plasma: 5.8.8
compiler: codeblocks 16.01
wx-config --version 3.0.2
uname -a Linux user-desktop 4.13.0-38-generic #43~16.04.1-Ubuntu SMP Wed Mar 14 17:48:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
os: linux mint 18.3 - kde plasma: 5.8.8
compiler: codeblocks 16.01
- Sun Apr 22, 2018 6:25 pm
- Forum: C++ Development
- Topic: help drawing this on device context
- Replies: 17
- Views: 197
Re: help drawing this on device context
Now it is working! Other then graphing more coordinates. Does anyone have any advice on smoothing the rough edges of the lines? https://i.imgur.com/uwCTd2g.png Edit: I see this post https://forums.wxwidgets.org/viewtopic.php?p=66885#66885 I linked gdiplus but the #if wxUSE_GRAPHICS_CONTEXT is grayed...
- Sun Apr 22, 2018 1:11 pm
- Forum: C++ Development
- Topic: help drawing this on device context
- Replies: 17
- Views: 197
Re: help drawing this on device context
This one looks closer but is still missing something https://i.imgur.com/XlnB4lR.png vector<int> lssX; vector<int> lssY; int iOldX = 0; int iOldY = 100; wxColor colWhite = wxColor(255, 255, 255); wxColor colRed = wxColor(255, 0, 0); wxPaintDC dc(Panel1); wxRect rect = Panel1->GetClientRect(); lssX.p...
- Sun Apr 22, 2018 1:02 pm
- Forum: C++ Development
- Topic: help drawing this on device context
- Replies: 17
- Views: 197
Re: help drawing this on device context
Thanks to everyone who has helped me. I seem to be missing something still because it is not drawing correctly. The top image is what it looks like when I comment out // dc.SetDeviceClippingRegion(myRegion); The bottom is with the dc.SetDeviceClippingRegion(myRegion); https://i.imgur.com/2eDUDKj.png...
- Sun Apr 22, 2018 2:18 am
- Forum: C++ Development
- Topic: help drawing this on device context
- Replies: 17
- Views: 197
Re: help drawing this on device context
Thank you for the reply and please excuse my ignorance. The size_t is the array length? I would expect the points to be an array or vector but I dont think it is. So how do I put multiple values in a wxPoint * wxRegion::wxRegion ( size_t n, const wxPoint * points, wxPolygonFillMode fillStyle = wxODD...
- Sat Apr 21, 2018 10:44 pm
- Forum: C++ Development
- Topic: help drawing this on device context
- Replies: 17
- Views: 197
Re: help drawing this on device context
Thank you for replying. I cannot find any info on the wxClippingRegion. Could you please show me how I would change this code to draw using the SetDeviceClippingRegion? It seems that SetDeviceClippingRegion only takes a single coordinate? How would I map multiple like in this example? vector<int> ls...
- Sat Apr 21, 2018 2:32 am
- Forum: C++ Development
- Topic: help drawing this on device context
- Replies: 17
- Views: 197
help drawing this on device context
Hello,
Does anyone have any advice on how I can draw this image?
I know how to draw the line and I know how to draw the gradient but how do you only have the gradient below the line?
Thanks for any help you can give
Does anyone have any advice on how I can draw this image?
I know how to draw the line and I know how to draw the gradient but how do you only have the gradient below the line?
Thanks for any help you can give
- Fri Apr 20, 2018 9:14 pm
- Forum: wxCode
- Topic: compiling wxpdfdocument on linux
- Replies: 4
- Views: 114
Re: compiling wxpdfdocument on linux
The build system of wxPdfDocument uses libtool. If you link against libwxcode_gtk3u_pdfdoc-3.0.la , all should work, since this libtool file contains references to all required dependencies like wxWidgets libraries and fontconfig library. Regards, Ulrich Thank you!!! and thank you to everyone that ...
- Fri Apr 20, 2018 4:07 pm
- Forum: wxCode
- Topic: compiling wxpdfdocument on linux
- Replies: 4
- Views: 114
compiling wxpdfdocument on linux
Hello I am trying to get wxPdfDocument addon to work but I cannot quite get it. Here is what I have done. Downloaded https://github.com/utelle/wxpdfdoc/archive/master.zip I extracted the zip file and ran these commands ../configure checking for a BSD-compatible install... /usr/bin/install -c checkin...
- Mon Feb 19, 2018 3:04 am
- Forum: C++ Development
- Topic: Loading A wxAnimationControl With A String
- Replies: 5
- Views: 187
Re: Loading A wxAnimationControl With A String
Hello, I am now trying to do this through a wxPaintDC DrawBitmap but it draws the background as hot pink? The gif contains a transparent background. The commented code is stuff I have tried but doesnt seem to make any difference. wxPaintDC dc(pnIcon); // dc.SetBrush(colBackground); // dc.SetPen( wxP...
- Thu Feb 15, 2018 3:55 pm
- Forum: C++ Development
- Topic: Loading A wxAnimationControl With A String
- Replies: 5
- Views: 187
Re: Loading A wxAnimationControl With A String
thank you for helping me. in the example you posted they delete the char array there is no need for me to do that since i am using a std::string right? wxMemoryInputStream stream(m_sRawMapData.c_str(), m_sRawMapData.size()); AnimationCtrl1->Load(stream, wxANIMATION_TYPE_GIF); AnimationCtrl1->Play();
- Thu Feb 15, 2018 3:11 pm
- Forum: C++ Development
- Topic: Loading A wxAnimationControl With A String
- Replies: 5
- Views: 187
Loading A wxAnimationControl With A String
Hello, I have an two network applications the 'server' take an image (gif) and transmits that image over the network connection as a string. Basically I have a string that contains the gif information and I want to load that into a wxAnimationControl. m_sRawMapData is the string containing the gif d...
- Sat Feb 10, 2018 9:27 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Problem Exporting Beast To wxWidgets
- Replies: 19
- Views: 522
Re: Problem Exporting Beast To wxWidgets
Thanks to everyone for helping. I really do appreciate it.
How do I kill the thread when the main window closes. Right now I spin that thread off, then it hangs (waiting for a http response). I would like that thread to end when the window closes.
How do I kill the thread when the main window closes. Right now I spin that thread off, then it hangs (waiting for a http response). I would like that thread to end when the window closes.