Search found 184 matches

by Wolfgang
Fri Mar 08, 2019 7:59 am
Forum: C++ Development
Topic: Rich Text Format
Replies: 36
Views: 3108

Re: Rich Text Format

There is no import or export of RTF format in wxWidgets. There was an RTF import implementation for wxRichTextCtrl from a Chinese programmer, but i can't find the link any more. I found a parser for phyton, but not for C++. Did you mean this one: https://github.com/cctags/gumpad2/blob/master/PyRTFP...
by Wolfgang
Fri Mar 08, 2019 7:07 am
Forum: C++ Development
Topic: Is this standard c++ behaviour or a bug?
Replies: 2
Views: 460

Re: Is this standard c++ behaviour or a bug?

unlike wxString:: F ind(), wxString:: f ind() is same as as std::string::find(), it returns size_t, i.e., an unsigned integer. If find() does not find the string, std::string::npos is returned so you have to check for this value http://www.cplusplus.com/reference/string/string/find/ Thanks, now I u...
by Wolfgang
Fri Mar 08, 2019 6:30 am
Forum: C++ Development
Topic: Is this standard c++ behaviour or a bug?
Replies: 2
Views: 460

Is this standard c++ behaviour or a bug?

Code: Select all

if (befehl.find(" ") > 0)
	{
This gets executed if found and also if not found!
}

Code: Select all

wxInt16 testm = befehl.find(" ");
	if (testm > 0)
	{
	This only gets executed when found!
	}
by Wolfgang
Thu Mar 07, 2019 7:37 pm
Forum: C++ Development
Topic: Rich Text Format
Replies: 36
Views: 3108

Rich Text Format

Is there already a complete implementation of the Rich Text Format from word?
by Wolfgang
Sun Mar 03, 2019 12:34 pm
Forum: C++ Development
Topic: Database to show with changing column width
Replies: 37
Views: 51252

Re: Database to show with changing column width

found your <uoff> handle posting, with that it goes,

And with that it now seams that everything is working as it should, or at least I can make a plan to make what I want.

Thank you a lot.
by Wolfgang
Sun Mar 03, 2019 4:40 am
Forum: C++ Development
Topic: Database to show with changing column width
Replies: 37
Views: 51252

Re: Database to show with changing column width

So far everything would be all right, meaning I have managed the double click and right click. And from which window it comes. Problem arises with adding link to the text for that I will have to rewrite how the hebrew lines get generated as it flips back to ltr, But that is managable, I also managed...
by Wolfgang
Tue Feb 26, 2019 7:20 am
Forum: C++ Development
Topic: Database to show with changing column width
Replies: 37
Views: 51252

Re: Database to show with changing column width

hebrew solved, it shows the whole page in hebrew automatically, only problem it needs protected spaces otherwise it switches back to ltr. So for paragraphes one has to write own wrapper. But now to next problem, how do I get in which wxhtmlwindow a cell was clicked. I'm using aui and the user can cr...
by Wolfgang
Sun Feb 24, 2019 8:40 pm
Forum: C++ Development
Topic: Database to show with changing column width
Replies: 37
Views: 51252

Re: Database to show with changing column width

thanks for the click event, right to left is possible with the html codes :D
by Wolfgang
Sat Feb 23, 2019 9:21 pm
Forum: C++ Development
Topic: Database to show with changing column width
Replies: 37
Views: 51252

Re: Database to show with changing column width

Another question, how to set part of the text right to left (for hebrew text)
by Wolfgang
Sat Feb 23, 2019 9:13 pm
Forum: C++ Development
Topic: Database to show with changing column width
Replies: 37
Views: 51252

Re: Database to show with changing column width

So far htmlwindow working, I can get clicks, but the question is now, how can I find out the word which is under the mouse van clocked or by hoover event. And the next question is there a way, that I can somehow give a word or number to a woord, or can i catch the link, so it does not try to call th...
by Wolfgang
Thu Feb 21, 2019 7:10 pm
Forum: C++ Development
Topic: Database to show with changing column width
Replies: 37
Views: 51252

Re: Database to show with changing column width

If I did see it right:
wxHTMLCtrl can only load from disc, does not accept File system handlers registration.
wxWEbview cannot handle cell clicks nativ like wxhtmlctrl can, right?
So basically both are only to work if I manage to get the missing part to work, or did I miss something?
by Wolfgang
Thu Feb 21, 2019 8:40 am
Forum: C++ Development
Topic: Database to show with changing column width
Replies: 37
Views: 51252

Re: Database to show with changing column width

I just looked into the source code and yes, wxHtmlWindow does not handle these events, so you'll have to catch them yourself. Check <wxdir>/src/html/htmlwin.cpp to see how to find the htmlcell where the click occurred. htmlwin.cpp sample I do not have, have to check on github and download it.
by Wolfgang
Thu Feb 21, 2019 8:38 am
Forum: C++ Development
Topic: Database to show with changing column width
Replies: 37
Views: 51252

Re: Database to show with changing column width

wxwebview

Can I also get the clicks like with wxhtml, in the sample this is not included, that is why I ask.
by Wolfgang
Thu Feb 21, 2019 8:27 am
Forum: C++ Development
Topic: Database to show with changing column width
Replies: 37
Views: 51252

Re: Database to show with changing column width

Just in case you did not notice started c++ programming two weeks ago, and only 3 to 4 hours a day. So that is why I wrote I still have to check if it is possible.
by Wolfgang
Thu Feb 21, 2019 8:26 am
Forum: C++ Development
Topic: Database to show with changing column width
Replies: 37
Views: 51252

Re: Database to show with changing column width

doublemax wrote: Thu Feb 21, 2019 8:20 am
Must check if this is possible to generate the html on request just in memory.
That's the way to go anyway. Don't create temporary HTML files on disc.

However, this has no effect on the render speed.
Just rendering about 150 rows at once, that should be quick enough.