Search found 192 matches

by extreme001
Thu Mar 04, 2010 2:04 pm
Forum: C++ Development
Topic: Embedding png in App best solution?
Replies: 17
Views: 3304

Convert the PNG to xpm in and include it via simple #include "myimage.xpm". You can find a converter XPMCONVERT here.

Now you're ready to create a wxImage (wxImage img* = new wxImage(xpm_data) ) of it.
by extreme001
Thu Mar 04, 2010 1:56 pm
Forum: C++ Development
Topic: See-Through (transparent) window. Please help.
Replies: 5
Views: 1916

Problem solved. I use regions to do that. in Paint-Event wxBufferedPaintDC dc(this); wxRegion region; wxRegion regbox(box->GetRect()); //region.Union(GetRect()); region.Union(regbox.ConvertToBitmap(), wxColour(255, 0, 255)); region.Union(m_button->GetRect()); wxRegion regnew(region.ConvertToBitmap()...
by extreme001
Mon Mar 01, 2010 10:25 pm
Forum: C++ Development
Topic: See-Through (transparent) window. Please help.
Replies: 5
Views: 1916

Hi Azagaros! Thank you...that sounds good to me...but the question is how? Shall i use RefreshRect()-Function on move? I've overwritten OnEraseBackground() and left it blank. The other problem is that the underlying windows do not receive mouse events. Hope you can help me a bit more. Thank you very...
by extreme001
Mon Mar 01, 2010 4:38 pm
Forum: C++ Development
Topic: See-Through (transparent) window. Please help.
Replies: 5
Views: 1916

See-Through (transparent) window. Please help.

Hi! I searched the forum for a solution for my problem....but I'm not sure...i tried so much. I want to create a window that's shine-through and click-throughable (if there's an underlying window, the underlying should get mouse event). I created a frame with a shape and selected a bitmap and subtra...
by extreme001
Tue Aug 04, 2009 9:15 pm
Forum: C++ Development
Topic: wxScrolledWindow doesn't show scrollbars (but did it in pas)
Replies: 0
Views: 421

wxScrolledWindow doesn't show scrollbars (but did it in pas)

Hi! I have a very misterious problem with wxScrolledWindow. Inside the wxSCrolledWindow are 2 other windows (wxPanel) the first panel's width is 1000, the height 20. The second panel size is 1000 x 1000. I placed it in 2 dialogs: 1. : in wxBoxSizer with Expand 2. : in wxBoxSizer with Expand. On the ...
by extreme001
Tue Aug 04, 2009 3:05 pm
Forum: Component Writing
Topic: Column-Component like in a wxListCtrl without list
Replies: 10
Views: 3681

Hi Frank!

Is there any chance to get the code you use?
It would make me much more relaxed...till i'm very frustrated.
by extreme001
Fri Jul 31, 2009 6:44 am
Forum: Component Writing
Topic: Column-Component like in a wxListCtrl without list
Replies: 10
Views: 3681

Yes David,

you're right. I need to re-invent it because i need footers where a summary appears (SUM or COUNT) for each column.

I still could not solve the problem. No ideas?
by extreme001
Wed Jul 29, 2009 2:58 pm
Forum: Component Writing
Topic: Column-Component like in a wxListCtrl without list
Replies: 10
Views: 3681

Hi! Dragging a window around is no problem and not actual the problem. I've had problems with dragging before. The problem is how to resize each if they are in a row like in a wxListCtrl...manual resizing....how to calculate the new size by mouse position and the new position of the follwoing wxPane...
by extreme001
Wed Jul 29, 2009 9:32 am
Forum: Component Writing
Topic: Column-Component like in a wxListCtrl without list
Replies: 10
Views: 3681

I used wxPanel for the column and for the separator i used a wxPanel, too with an horizontal line in it and placed it to be right alignment.

Is it easier with the the wxSashWindow? Can i manipulate the look & feel of a wxSashWindow ? change the bg and more ?

Thank you very much!
by extreme001
Tue Jul 28, 2009 1:45 pm
Forum: Component Writing
Topic: Column-Component like in a wxListCtrl without list
Replies: 10
Views: 3681

Column-Component like in a wxListCtrl without list

Hi! I'm trying to write a component with consists of columns like in a wxListCtrl but only the header (with other bg-coloring). I created the Columns by deriving it from wxPanel and add the separator for resizing to the right. It works. I only need help on sizing. If the mouse is over the separator ...
by extreme001
Thu Jul 09, 2009 3:42 pm
Forum: C++ Development
Topic: Advanced Sub-Scrolling with columns as header and footer
Replies: 0
Views: 406

Advanced Sub-Scrolling with columns as header and footer

Hi wxWidgeters! I need a scrolling window with subscrolling and have no idea how to start. I know there's an example project "scroll" in the samples directory. But i need it with a header and a footer not with a row panel on the left. The header-columns should be resizable like the columns in a wxLi...
by extreme001
Wed Jul 08, 2009 7:55 pm
Forum: C++ Development
Topic: Raise() doesn't work reliably
Replies: 6
Views: 1174

OK....could you please post a piece of that: A little background: when the I have an instance of my text editor open and I click on a text file in Windows Explorer a new instance of my text editor is created but never shown. This new instance detects that another instance is already running and send...
by extreme001
Wed Jul 08, 2009 11:20 am
Forum: C++ Development
Topic: Best way to see HTML
Replies: 8
Views: 1297

by extreme001
Wed Jul 08, 2009 11:19 am
Forum: C++ Development
Topic: Raise() doesn't work reliably
Replies: 6
Views: 1174

Call Show on parent (or bring to front), then raise the other.
by extreme001
Wed Jun 17, 2009 11:31 pm
Forum: C++ Development
Topic: Own Class and wxDialog and ShowModal
Replies: 7
Views: 1792

I think EndModal is not the right wy to end/close the dialog...ShowModal returns either WXID_OK or WXID_CANCEL...that's important. I you're not sure how to implement that Use Show and do the work in another way by implementing other methods.... What's the purpose? Maybe that will solve your problem?...