Search found 38 matches

by Jacek Poplawski
Sun Nov 25, 2012 6:36 pm
Forum: C++ Development
Topic: destroy and recreate window contents
Replies: 1
Views: 1340

destroy and recreate window contents

I want to dynamically destroy/create window contents. If I understand correctly wxWindow::DestroyChildren destroys all children, but not sizer. So if I create new wxSizer and call wxWindow::SetSizer - what will happen with old sizer? Memory leak? Is it a proper way to recreate window contents or is ...
by Jacek Poplawski
Sun Nov 18, 2012 4:41 pm
Forum: Platform Related Issues
Topic: compiling wxWidgets 2.8.12 on Windows
Replies: 1
Views: 2226

compiling wxWidgets 2.8.12 on Windows

After few years I decided to give another try to wxWidgets on Windows. It was three days ago, I tried many ways (configure/make, etc) but all failed. I installed MinGW/msys and downloaded 2.8.12 MSW from wxWidgets website. Then I entered build/msw and used following command: C:\wxWidgets-2.8.12\buil...
by Jacek Poplawski
Sun Jul 29, 2012 12:48 pm
Forum: Platform Related Issues
Topic: wxDirDialog - strange problem
Replies: 3
Views: 3484

Re: wxDirDialog - strange problem

OK this is not my code specific

I downloaded this:

http://www.wxwidgets.org/downloads/demos.htm

compiled dialogs demo, opened dir and noticed same problem as I have now.

Must be some distro/binary problem.

https://bbs.archlinux.org/viewtopic.php?id=146064
by Jacek Poplawski
Sun Jul 29, 2012 12:08 pm
Forum: Platform Related Issues
Topic: wxDirDialog - strange problem
Replies: 3
Views: 3484

Re: wxDirDialog - strange problem

Code is here: http://code.google.com/p/delaboratory/source/browse/trunk/gui_wx/file_dialogs.cc#99 (function GetDir) Please note that this code was working for me and it's working for others, I just wonder how it is possible that it stopped working for me now. Is my system really broken or maybe ther...
by Jacek Poplawski
Sun Jul 29, 2012 4:29 am
Forum: Platform Related Issues
Topic: wxDirDialog - strange problem
Replies: 3
Views: 3484

wxDirDialog - strange problem

I have strange problem with wxDirDialog on my Linux system and I am confused. I know this code was working properly before and I know that it works now for other person on Windows. So it must be somehow related to my updated system or strange compiler problem, but maybe you have some idea. 1) I crea...
by Jacek Poplawski
Sun Mar 11, 2012 9:34 am
Forum: C++ Development
Topic: use colors instead labels in notebook
Replies: 3
Views: 1353

Re: use colors instead labels in notebook

I must be compatible with stable wx so I looked here:

http://docs.wxwidgets.org/2.8/wx_wxtoolbook.html

So instead labels I will add tools:

http://docs.wxwidgets.org/2.8/wx_wxtool ... baraddtool

bitmap1

The primary tool bitmap.

so I should just render bitmap in my color?
by Jacek Poplawski
Sat Mar 10, 2012 8:52 am
Forum: C++ Development
Topic: use colors instead labels in notebook
Replies: 3
Views: 1353

use colors instead labels in notebook

hello, I have huge windows with settings for each color, I want to split it to small window with notebook pages, Imagina notebook with colors like red, green, yellow, etc.... and user will click on color and then set color settings But how can I name each page if I don't want to give user color name...
by Jacek Poplawski
Wed Feb 29, 2012 5:34 pm
Forum: C++ Development
Topic: wxProcess::Open on separate thread
Replies: 2
Views: 1459

Re: wxProcess::Open on separate thread

I am afraid your solution won't work on wxWidgets 2.8, and my application must work everywhere.
I think the only solution is to create wxTimer and send events every 500 miliseconds and call CanRead() inside even handler.
by Jacek Poplawski
Wed Feb 29, 2012 9:06 am
Forum: C++ Development
Topic: wxProcess::Open on separate thread
Replies: 2
Views: 1459

wxProcess::Open on separate thread

I am trying to run another command in the background. I implemented everything this way: wxProcess* process = wxProcess::Open(wxString::FromAscii(command.c_str())); wxInputStream* input = process->GetInputStream(); It works but on Windows my user received warning about calling wxExecute from not-mai...
by Jacek Poplawski
Mon Feb 20, 2012 7:21 pm
Forum: C++ Development
Topic: how to execute external process better than wxExecute
Replies: 4
Views: 3492

Re: how to execute external process better than wxExecute

I fixed the problem with read with following code: int p = 0; while (p < w * 6) { input->Read(buffer + p, w * 6 - p); p += input->LastRead(); if (p < w * 6) { std::cout << "wait for more data" << std::endl; wxThread::Sleep(10); } }
by Jacek Poplawski
Mon Feb 20, 2012 6:45 pm
Forum: C++ Development
Topic: how to execute external process better than wxExecute
Replies: 4
Views: 3492

Re: how to execute external process better than wxExecute

I tried to use this way: std::string command = std::string(DCRAW_EXECUTABLE) + " -w -c -6 -o 4 -W " + f + " >abc "; wxProcess* process = wxProcess::Open(wxString::FromAscii(command.c_str())); wxInputStream* input = process->GetInputStream(); and I found that: 1) InputStream "...
by Jacek Poplawski
Fri Feb 17, 2012 11:08 pm
Forum: C++ Development
Topic: how to execute external process better than wxExecute
Replies: 4
Views: 3492

how to execute external process better than wxExecute

I execute external process this way: wxArrayString output; wxExecute(command, output); however, I have problem with it when I want to call: something >output I need this output data, I tried wxExecute to achieve that but it's very very slow. The output data is decoded photography in uncompressed for...
by Jacek Poplawski
Tue Feb 07, 2012 10:00 pm
Forum: C++ Development
Topic: how to add "are you sure?"
Replies: 4
Views: 2142

Re: how to add "are you sure?"

yes I know, but I asked for something predefined :)
by Jacek Poplawski
Tue Feb 07, 2012 9:16 pm
Forum: C++ Development
Topic: how to add "are you sure?"
Replies: 4
Views: 2142

how to add "are you sure?"

Is there a predefined way to add "are you sure?" dialog before quitting?
I can't find it anywhere.
by Jacek Poplawski
Sun Feb 05, 2012 10:38 pm
Forum: C++ Development
Topic: drawing pixels via wxWidgets in 2012
Replies: 3
Views: 2010

Re: drawing pixels via wxWidgets in 2012

Doesn't work: wxNativePixelData bitmapData(*renderedBitmap); if (bitmapData) { std::cout << "OK" << std::endl; } else { std::cout << "failure" << std::endl; } I got failrure, any ideas why? OK I found the problem, I tried wxBitmap(w, h, 32) while the correct one is wxBitmap(w, h,...