Search found 13 matches
- Fri Aug 30, 2019 12:17 pm
- Forum: C++ Development
- Topic: Regarding reading signed integer using wxDataInputStream
- Replies: 1
- Views: 239
Regarding reading signed integer using wxDataInputStream
we are reading a file using wxDataInputStream we are having signed integer values in the data. As Read32 or Read64 are returning unsigned integer.How to get signed integer value.
- Tue Apr 30, 2019 1:12 pm
- Forum: C++ Development
- Topic: Issue in Capturing Screenshot using wxGraphicsContext
- Replies: 17
- Views: 1315
Re: Issue in Capturing Screenshot using wxGraphicsContext
I tried to Upload sample Solution(Zip file) containing 30MB which illustrates the Issue. I am unable to attach the file .It is showing an error message (HTTP Error) You could also upload to something like https://www.sendspace.com But if it's that big, it's usually far too much effort to dig throug...
- Mon Apr 29, 2019 9:32 am
- Forum: C++ Development
- Topic: Issue in Capturing Screenshot using wxGraphicsContext
- Replies: 17
- Views: 1315
Re: Issue in Capturing Screenshot using wxGraphicsContext
So your code can already render into a wxMemoryDC. Why don't you do that and forget about wxClientDC? Or are you saying that the problem also occurs when rendering directly into a wxMemoryDC? In that case, please provide a minimal compilable sample that shows the issue. I tried to Upload sample Sol...
- Fri Apr 26, 2019 7:43 am
- Forum: C++ Development
- Topic: Issue in Capturing Screenshot using wxGraphicsContext
- Replies: 17
- Views: 1315
Re: Issue in Capturing Screenshot using wxGraphicsContext
I'm a little confused that you could change from wxGLCanvas to wxPanel to easily. Do you use OpenGL or not? Please show the code for the paint event handler. Actually, My software Application uses OpenGL. For drawing curves, I am not using OpenGL. so, I have tried in another application which uses ...
- Thu Apr 25, 2019 1:19 pm
- Forum: C++ Development
- Topic: Issue in Capturing Screenshot using wxGraphicsContext
- Replies: 17
- Views: 1315
Re: Issue in Capturing Screenshot using wxGraphicsContext
//GetCanvasPtr() returns wxGLCanvas My guess is that this is the main problem. When using hardware accelerated OpenGL, the OpenGL window is usually a hardware overlay that doesn't "live" in normal Windows GDI space. (Still assuming that you're under Windows). In addition to that, i don't think mixi...
- Thu Apr 25, 2019 12:41 pm
- Forum: C++ Development
- Topic: Issue in Capturing Screenshot using wxGraphicsContext
- Replies: 17
- Views: 1315
Re: Issue in Capturing Screenshot using wxGraphicsContext
Platform, wxWidgets version? In any case, it's more reliable to render everything into a wxBitmap through a wxMemoryDC. Just rewrite your render code so that it takes a wxDC& as parameter and you can use it to render on screen as well as into any other device context. Platform:Windows 8, Visual stu...
- Thu Apr 25, 2019 12:35 pm
- Forum: C++ Development
- Topic: Issue in Capturing Screenshot using wxGraphicsContext
- Replies: 17
- Views: 1315
Re: Issue in Capturing Screenshot using wxGraphicsContext
I think with wxMemoryDC it would be much more straightforward. Just assosiate your xMemoryDC object with wxGraphicsContext and draw anyrhing you want: wxGraphicsContext* gc = wxGraphicsContext::Create(mdc);//mds is wxMemoryDC object if (gc) { //draw here delete gc; } I am actually Creating a wxGrap...
- Thu Apr 25, 2019 12:32 pm
- Forum: C++ Development
- Topic: Issue in Capturing Screenshot using wxGraphicsContext
- Replies: 17
- Views: 1315
Re: Issue in Capturing Screenshot using wxGraphicsContext
Post some source code maybe? So that we could see whether there is a problem in screen capturing logic. This is how I am capturing Screen: wxClientDC dcScreen(m_pmainwind->GetCanvasPtr()); //GetCanvasPtr() returns wxGLCanvas wxSize WinSize = m_pmainwind->GetCanvasPtr()->GetSize(); //Create a Bitmap...
- Thu Apr 25, 2019 10:56 am
- Forum: C++ Development
- Topic: Issue in Capturing Screenshot using wxGraphicsContext
- Replies: 17
- Views: 1315
Issue in Capturing Screenshot using wxGraphicsContext
I am using wxGraphicsContext to draw a curve in wxPlotctrl. In the Background of a curve, drawing gridlines and some texts using WXDC. And I am Capturing screenshot using wxClientDc,. In the Captured Image, the curve which I have drawn using wxGraphicsContext is only visible, not the gridlines and t...
- Wed Mar 08, 2017 10:38 am
- Forum: C++ Development
- Topic: How to add a panel in Tab Control Area in wxNotebook?
- Replies: 2
- Views: 599
How to add a panel in Tab Control Area in wxNotebook?
I'm adding 3 Pages(Number of pages is constant).
Next to that 3 pages, I want to add a panel (as like an image i have attached)
Is there any possibility to do that??
Next to that 3 pages, I want to add a panel (as like an image i have attached)
Is there any possibility to do that??
- Sat Dec 17, 2016 6:12 am
- Forum: C++ Development
- Topic: How to list the Opened Files in wxAuiNotebook?
- Replies: 1
- Views: 486
How to list the Opened Files in wxAuiNotebook?
I'm using wxAuiNotebook in my project to dock multiple files.I want to show the list of opened files, after clicking the drop-down arrow at the right corner like what visual studio is doing. For that I have used a wxAUI_NB_WINDOWLIST_BUTTON style, But it is not working. I have attached an image by h...
- Tue Sep 20, 2016 12:45 pm
- Forum: C++ Development
- Topic: How to get the running instances of PowerPoint in C++?
- Replies: 1
- Views: 511
How to get the running instances of PowerPoint in C++?
I want to populate a wxComboBox with the list of PPT Files(path) opened in the system.
How to do that?
How to do that?
- Thu Sep 08, 2016 9:35 am
- Forum: Platform Related Issues
- Topic: Passing in-memory bitmap to PowerPoint using wxAutomationObject
- Replies: 1
- Views: 512
Passing in-memory bitmap to PowerPoint using wxAutomationObject
I want to insert pictures in a PowerPoint slide. I've saved bitmap to the disk and called Add_Picture to insert picture, it is working properly. What I want is without saving bitmap to the disk, add a picture in a PowerPoint slide. Currently, i'm passing the picture to the clipboard and called the m...