Search found 323 matches

by Muetdhiver
Sun Jan 08, 2012 8:02 pm
Forum: C++ Development
Topic: assert "m_count > 0" failed in DecRef() when using a grid
Replies: 6
Views: 6023

Re: assert "m_count > 0" failed in DecRef() when using a gri

OMG, I found where the problem is !!! In fact, it was in this code : wxGridCellAttr* loc_po_attributes = new wxGridCellAttr ; loc_po_attributes->SetFont(CHMIAttributes::wxPersonalFont8DefaultBold); loc_po_attributes->SetBackgroundColour( loc_o_grey ); SetRowAttr( 1, loc_po_attributes ); SetRowAttr( ...
by Muetdhiver
Sun Jan 08, 2012 7:51 pm
Forum: C++ Development
Topic: assert "m_count > 0" failed in DecRef() when using a grid
Replies: 6
Views: 6023

Re: assert "m_count > 0" failed in DecRef() when using a gri

Hi, thanks for the answer. Yes, the message is pretty clear, but I don't find the error ! To my mind, it means that I delete two times the same object, but I don't understand where. My object (the grid) is deleted when the page of the notebook is removed, that is ok, but there is something wrong els...
by Muetdhiver
Sun Jan 08, 2012 4:43 pm
Forum: C++ Development
Topic: assert "m_count > 0" failed in DecRef() when using a grid
Replies: 6
Views: 6023

assert "m_count > 0" failed in DecRef() when using a grid

Hi ! I recently changed wxWidget 2.8 to use 2.9.3 and I've got a lots of assertions with this version. I'm trying to remove them but this one makes me crazy : I create a panel, that contains a overloaded wxGrid, my object is called CRoadMap. Here is the Ctor of this class : CRoadMap::CRoadMap( wxWin...
by Muetdhiver
Fri Dec 30, 2011 8:32 pm
Forum: Compiler / Linking / IDE Related
Topic: Cannot compile wxWidgets 2.9.3 under Ubuntu
Replies: 1
Views: 2350

Re: Cannot compile wxWidgets 2.9.3 under Ubuntu

I found a solution : installing g++-multilib solved my problem.

Really sad that the wiki page is not speaking about this.
by Muetdhiver
Fri Dec 30, 2011 8:01 pm
Forum: Compiler / Linking / IDE Related
Topic: Cannot compile wxWidgets 2.9.3 under Ubuntu
Replies: 1
Views: 2350

Cannot compile wxWidgets 2.9.3 under Ubuntu

Hi ! I want to compile wxWidgets 2.9.3 under ubuntu with g++ to produce 32 bits static libraries. But my OS is Ubuntu 64 bits. So, I use this cross compilation method given in the wiki page : http://wiki.wxwidgets.org/Cross-Compiling_Under_Linux#Building_for_i386_on_an_x86_64_machine To achieve this...
by Muetdhiver
Mon Dec 19, 2011 7:25 pm
Forum: Platform Related Issues
Topic: Dsitributing wxWidgets app in wx2.9.x in deb package ?
Replies: 1
Views: 1143

Dsitributing wxWidgets app in wx2.9.x in deb package ?

Hi all, just a simple question: As wxWidgets is not (and will never be ?) integrated into a Canonical repository for wx2.9 series, how would you do to distribute your application which need wxWidgets libraries to work ? I mean, since there is no ppa, there is no ability for the package (.deb) of my ...
by Muetdhiver
Fri Dec 02, 2011 8:18 am
Forum: C++ Development
Topic: Parsing HTML pages
Replies: 7
Views: 1966

Re: Parsing HTML pages

Hello, thanks. Wow, I've not the time to get the sources and analyse them. I would think a solution has been developped already in wxWdigets api. In fact, after posting theses messages, I read more information about wxXmlDocument class, since HTML is just an implentation of XML norms. So I think it ...
by Muetdhiver
Mon Nov 28, 2011 3:47 pm
Forum: C++ Development
Topic: Parsing HTML pages
Replies: 7
Views: 1966

Re: Parsing HTML pages

As example, i've got a web page in wich I can find a tag like this : <div class="thumbinner" ...> What I want to achieve is just to get some information after the div tag. Guess I must use the parser : wxHtmlParser parser = new wxHtmlWinParser( "mypage.html" ) ; wxHtmlCell* top_l...
by Muetdhiver
Mon Nov 28, 2011 2:51 pm
Forum: C++ Development
Topic: Parsing HTML pages
Replies: 7
Views: 1966

Parsing HTML pages

Hi all,

is there some sample that illustrates the wxHtmlParser class or wxHtmlWinParser in order to simply parse an HTML page given as argument ?

I'm not able to find such documentation anywhere.

Thanks for your help.
by Muetdhiver
Thu Oct 27, 2011 9:39 am
Forum: C++ Development
Topic: Drawing button on a wxStaticBitmap
Replies: 5
Views: 3287

Re: Drawing button on a wxStaticBitmap

Nobody for my previous question ?

Or may I do a new post ?

++
by Muetdhiver
Fri Oct 21, 2011 1:59 pm
Forum: C++ Development
Topic: Drawing button on a wxStaticBitmap
Replies: 5
Views: 3287

Re: Drawing button on a wxStaticBitmap

Hi !!! I've tested this solution, under MSW it works, but after a long time I decided to run it under Ubuntu, and an ASSERT is raised at runtime : impossible to add children of wxStaticBitmap.... So, I need to add this code for this to work under both environment : wxStaticBitmap* loc_po_background ...
by Muetdhiver
Fri Oct 07, 2011 1:28 pm
Forum: C++ Development
Topic: Focus between two wxFrame ?
Replies: 2
Views: 1342

Re: Focus between two wxFrame ?

Hi ! Thanks for your answer. But all my design is based on this, for now I've not planned to change this (I always remove MDI windows.... it was a very big work !!). So, I finally found the solution after hours of tries, I just called Raise() function on the log frame parent (my main application). S...
by Muetdhiver
Fri Oct 07, 2011 9:10 am
Forum: C++ Development
Topic: Focus between two wxFrame ?
Replies: 2
Views: 1342

Focus between two wxFrame ?

Hi, I again have a focus problem !!! Simple explanation of I want to do : I've got 2 wxFrame : - My main application, that has a lots of controls - A frame that display logs (messages, errors, etc...) in the bottom of my screen. This frame only shows when a new message is displayed, stays displayed ...
by Muetdhiver
Thu Oct 06, 2011 1:48 pm
Forum: C++ Development
Topic: wxEVT_FILL_FOCUS event and GetWindow function ?
Replies: 5
Views: 2148

Re: wxEVT_FILL_FOCUS event and GetWindow function ?

Thanks for your answer. After trying a lots of solution, I finally move back and I tried something different, but I think it is more in the wxWidgets philosophy.... Instead of trying to catch focus events, and changing the original way of doing, I just thought about using 2 panels : the first one ha...