Search found 184 matches

by Wolfgang
Tue Mar 26, 2019 12:34 pm
Forum: C++ Development
Topic: panel as auipane update problem
Replies: 9
Views: 1083

panel as auipane update problem

Hello This is my code void MyFrame::OnHtmlCellHover(wxHtmlCellEvent &event) {if (toolshown&&H_cell!=OH_cell) { toolshown = false; m_mgr.GetPane("Tool").Hide(); m_mgr.Update(); } else if(toolshown&&H_cell == OH_cell) { } else { wxHtmlLinkInfo* test2; test2 = H_cell->GetL...
by Wolfgang
Sat Mar 23, 2019 8:19 pm
Forum: C++ Development
Topic: xml formated string as tooltip
Replies: 4
Views: 482

Re: xml formated string as tooltip

Yes, thanks that I missed, now it works, have changed it to richtooltipxml.cpp and wiht only one cpp and one header file.
by Wolfgang
Sat Mar 23, 2019 7:48 pm
Forum: C++ Development
Topic: xml formated string as tooltip
Replies: 4
Views: 482

Re: xml formated string as tooltip

I changed the richtooltip and everything is working, but if I close the programm, it throws an exception. Exception thrown: read access violation. this->m_window-> was 0xFFFFFFFFFFFFFFF7. If there is a handler for this exception, the program may be safely continued. void wxSizerItem::Free() { switch...
by Wolfgang
Wed Mar 20, 2019 6:45 pm
Forum: C++ Development
Topic: xml formated string as tooltip
Replies: 4
Views: 482

xml formated string as tooltip

I read a xml formated string from a database and want that to show into a tooltip. Is this somehow easily possible? wxString mytxt = newh; wxRect myrect = wxRect(lpos,lpos); wxTipWindow *m_tipWindow = new wxTipWindow(m_bibf[jetwin] , mytxt, 500, &m_tipWindow, &myrect); // wxRichToolTip tip(&...
by Wolfgang
Wed Mar 20, 2019 6:41 pm
Forum: C++ Development
Topic: Rich Text Format
Replies: 36
Views: 3107

Re: Rich Text Format

I loaded now the rtl format and saved it into a new column in xml format and will use for my programm only the xml format, so that is solved now.
by Wolfgang
Tue Mar 19, 2019 8:53 pm
Forum: Database Related
Topic: problem with update
Replies: 4
Views: 21697

Re: problem with update

Solved with

Code: Select all

	wxInt16 test = oldt.Replace("'", "''");
Sqlite printf did not work
by Wolfgang
Tue Mar 19, 2019 8:07 pm
Forum: Database Related
Topic: problem with update
Replies: 4
Views: 21697

problem with update

I get an exception, when I execute it. Inside the richtext should be something like the file in the zip. wxString oldt; wxRichTextXMLHandler *handler{ new wxRichTextXMLHandler }; wxStringOutputStream out; handler->SetFlags(handler->GetFlags() | wxRICHTEXT_HANDLER_INCLUDE_STYLESHEET); m_befe2->GetBuf...
by Wolfgang
Tue Mar 19, 2019 1:53 pm
Forum: Database Related
Topic: complicated select
Replies: 5
Views: 23358

Re: complicated select

Is there a way to not show duplicates?
by Wolfgang
Sun Mar 17, 2019 6:30 pm
Forum: Database Related
Topic: complicated select
Replies: 5
Views: 23358

complicated select

Here a small sample word book chapter vers test 1 1 1 me 1 1 1 test 1 1 2 not 1 1 2 me 2 1 1 test 2 1 1 How would a select look like if I need to find all occourences where word="test" and word="me" and book,chapter and verse are the same. Meaning finding all verses where test an...
by Wolfgang
Mon Mar 11, 2019 8:07 pm
Forum: C++ Development
Topic: Rich Text Format
Replies: 36
Views: 3107

Re: Rich Text Format

Here is a sample file what I used. Yes, i get the leaks with that file. It also displays an error about a missing font. I guess the rtfreader code doesn't handle that situation properly and causes these leaks. But i don't have time to dig deeper into this at the moment. Ok,at least I'm not totally ...
by Wolfgang
Mon Mar 11, 2019 7:27 pm
Forum: C++ Development
Topic: Rich Text Format
Replies: 36
Views: 3107

Re: Rich Text Format

Here is a sample file what I used.
by Wolfgang
Mon Mar 11, 2019 7:18 pm
Forum: C++ Development
Topic: Rich Text Format
Replies: 36
Views: 3107

Re: Rich Text Format

This code

Code: Select all

void RtfLayerNode::AddAttribute(wxString name,wxString value)
{

		RtfAttributes* attr = new RtfAttributes(name, value);
		m_Attrlist.Append(attr);
	

	 
}
Produces a lot of the leaks, at least after vld.
by Wolfgang
Mon Mar 11, 2019 7:14 pm
Forum: C++ Development
Topic: Rich Text Format
Replies: 36
Views: 3107

Re: Rich Text Format

Visual Studio 2015, did you change anything else? As I did look at the source code of rtfreader.cpp, and it calls all the time new, and never delete, so actually with every new call a memory leak is created, that is why I think, that the code is not correct, and you must have changed it a bit, other...
by Wolfgang
Mon Mar 11, 2019 6:47 pm
Forum: C++ Development
Topic: Rich Text Format
Replies: 36
Views: 3107

Re: Rich Text Format

So I again had to change the rtfreader.h, so that include rtf.h is taken out. Then it worked (Meaning your richtext file), and it also produces a lot of memory leaks. I use wxwidget 3.1.2; So it is either the missing rtf.h, question would be, why, as everything is working. or you changed something e...
by Wolfgang
Mon Mar 11, 2019 6:35 pm
Forum: C++ Development
Topic: Rich Text Format
Replies: 36
Views: 3107

Re: Rich Text Format

and font_helper.h I also did not have.