Search found 38 matches

by Jacek Poplawski
Sun Feb 05, 2012 5:03 am
Forum: C++ Development
Topic: drawing pixels via wxWidgets in 2012
Replies: 3
Views: 1095

drawing pixels via wxWidgets in 2012

hello, I am author of http://code.google.com/p/delaboratory/, I use wxWidgets for my project. In my application I have image which is modified by user. I store this image in my own code, then I need to render it on screen. I use wxBufferedPaintDC in paintEvent and wxClientDC/wxBufferedDC in my 'repa...
by Jacek Poplawski
Sun Oct 23, 2011 2:53 am
Forum: Announcements and Discoveries
Topic: delaboratory 0.5
Replies: 0
Views: 2205

delaboratory 0.5

delaboratory 0.5 has been released, this is major project milestone, GUI has been rewritten from scratch

http://code.google.com/p/delaboratory/

I created the presentation video for your pleasure:

http://www.youtube.com/watch?v=FHl1zXsM_fA
by Jacek Poplawski
Mon Oct 17, 2011 4:56 pm
Forum: C++ Development
Topic: problem with wxFileDialog on gtk+
Replies: 3
Views: 661

Re: problem with wxFileDialog on gtk+

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

"The path and filename are distinct elements of a full file pathname. If path is "", the current directory will be used. If filename is "", no default filename will be supplied."
by Jacek Poplawski
Mon Oct 17, 2011 3:03 pm
Forum: C++ Development
Topic: problem with wxFileDialog on gtk+
Replies: 3
Views: 661

problem with wxFileDialog on gtk+

Some times ago I used wxFileDialog and it worked correctly. Then few months ago something changed, I am not sure is it problem with wxWidgets or gtk+, but the point is I don't know how to resolve it at all. wxFileDialog saveFileDialog(parent, wxString::FromAscii(info.c_str()), _T(""), _T(""), type, ...
by Jacek Poplawski
Sun Sep 11, 2011 10:57 pm
Forum: C++ Development
Topic: transparent frame?
Replies: 2
Views: 509

Re: transparent frame?

Wow it works, after 10 minutes of trying :)
it's important to call it after Show()
by Jacek Poplawski
Sun Sep 11, 2011 7:26 pm
Forum: C++ Development
Topic: transparent frame?
Replies: 2
Views: 509

transparent frame?

Can I make transparent frame/widget in current version of wxWidgets on Linux and Windows?
I have main window and floating frame, I want to see image in main window all the time so to make frame transparent.
by Jacek Poplawski
Sat Sep 10, 2011 12:14 pm
Forum: C++ Development
Topic: how to detect image format? (or how to get rid of warnings)
Replies: 2
Views: 558

how to detect image format? (or how to get rid of warnings)

I am reading tiff files with tiff library (not wxWidgets, because I need 16-bit data), but my application uses wxWidgets. I also read jpeg files, this time with wxWidgets by calling wxImage::LoadFile, because jpegs are 8-bit so it doesn't matter. The problem is how to detect if file is jpeg of tiff....
by Jacek Poplawski
Wed Sep 07, 2011 1:24 pm
Forum: C++ Development
Topic: opening file outside wxWidgets
Replies: 1
Views: 371

opening file outside wxWidgets

I use following code to get file name to open: wxString type = _T("JPEG/TIFF files (*.jpg;*.jpeg;*.tiff;*.tif;*.TIF;*.TIFF)|*.jpg;*.jpeg;*.tiff;*.tif;*.TIF;*.TIFF"); wxFileDialog openFileDialog(this, _T("Open source image"), _T(""), _T(""), type, wxFD_OPEN|wxFD_FILE_MUST_EXIST); if (openFileDialog.S...
by Jacek Poplawski
Wed Sep 07, 2011 1:17 pm
Forum: C++ Development
Topic: wxAcceleratorTable - what I am doing wrong?
Replies: 15
Views: 3141

Re: wxAcceleratorTable - what I am doing wrong?

OK so to finish this thread - I used FIlter plus SetFocus to make it work.
by Jacek Poplawski
Wed Sep 07, 2011 11:04 am
Forum: C++ Development
Topic: wxAcceleratorTable - what I am doing wrong?
Replies: 15
Views: 3141

Re: wxAcceleratorTable - what I am doing wrong?

In the hello world example, the Filter Events detects key only when is set focus to something.
by Jacek Poplawski
Tue Sep 06, 2011 3:17 pm
Forum: C++ Development
Topic: wxAcceleratorTable - what I am doing wrong?
Replies: 15
Views: 3141

Re: wxAcceleratorTable - what I am doing wrong?

From my orignal post "included the one from wiki which should always work", and I meant the one you just pasted, I put this method into delaboratory.cc and never received any keyboard events (but I tested that mouse events where there!).
by Jacek Poplawski
Tue Sep 06, 2011 2:27 pm
Forum: C++ Development
Topic: wxAcceleratorTable - what I am doing wrong?
Replies: 15
Views: 3141

Re: wxAcceleratorTable - what I am doing wrong?

David thanks for finding it out. I am author of http://code.google.com/p/delaboratory/ could you try to add this accelerator table for instance to main_frame.cc? main_frame has lots of children, I tried to add it to the image panel or to the frame, but it never worked, that's why I started with hell...
by Jacek Poplawski
Tue Sep 06, 2011 12:29 pm
Forum: C++ Development
Topic: wxAcceleratorTable - what I am doing wrong?
Replies: 15
Views: 3141

Re: wxAcceleratorTable - what I am doing wrong?

That's interesting info, what's your system? Are you on Linux and using wxgtk?
by Jacek Poplawski
Tue Sep 06, 2011 12:12 pm
Forum: C++ Development
Topic: wxAcceleratorTable - what I am doing wrong?
Replies: 15
Views: 3141

Re: wxAcceleratorTable - what I am doing wrong?

Yes the goal was to make at least about to work, since it works from menu and is easy to detect.
Is there any problem with compiling this code on your system...? It's just a hello world example with wxAcceleratorTable example from website.