Search found 174 matches
- Mon Mar 11, 2019 8:30 am
- Forum: C++ Development
- Topic: Rich Text Format
- Replies: 36
- Views: 1621
Re: Rich Text Format
Did not check right away, but there are a lot of memory leaks in the rtf code. As soon as I implement it, I have memory leaks, if I leave it away there are none. But not easy to get rid of them, as I tried some delete, but then it gave errors.
- Mon Mar 11, 2019 5:55 am
- Forum: C++ Development
- Topic: Rich Text Format
- Replies: 36
- Views: 1621
Re: Rich Text Format
Thanks managed to change it so it works with my string from the database.
Now only saving, but that will take still a bit.
If I have a question there I will ask.
Now only saving, but that will take still a bit.
If I have a question there I will ask.
- Sun Mar 10, 2019 9:24 pm
- Forum: C++ Development
- Topic: Rich Text Format
- Replies: 36
- Views: 1621
Re: Rich Text Format
How is it best to get it from a string to a stream?
- Sun Mar 10, 2019 8:25 pm
- Forum: C++ Development
- Topic: Rich Text Format
- Replies: 36
- Views: 1621
Re: Rich Text Format
Just implemented a quick test, to read it from a file, and whis worked, now I have to change it to a memory file system, as it is working with stream, and not just strings, what would make it easier for me.
But thanks for the tipp, it looks at the moment like it will work.
But thanks for the tipp, it looks at the moment like it will work.
- Fri Mar 08, 2019 8:01 am
- Forum: C++ Development
- Topic: Rich Text Format
- Replies: 36
- Views: 1621
Re: Rich Text Format
I need this for a database which has app. 15000 items in it, and all items are as rtf, otherwise I would have to convert them into something readable like html, and place it back in the database, which is not so easy either, But if i can stay with rtf, it is easier to use for other existing programm...
- Fri Mar 08, 2019 7:59 am
- Forum: C++ Development
- Topic: Rich Text Format
- Replies: 36
- Views: 1621
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...
- Fri Mar 08, 2019 7:07 am
- Forum: C++ Development
- Topic: Is this standard c++ behaviour or a bug?
- Replies: 2
- Views: 285
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...
- Fri Mar 08, 2019 6:30 am
- Forum: C++ Development
- Topic: Is this standard c++ behaviour or a bug?
- Replies: 2
- Views: 285
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!
}
- Thu Mar 07, 2019 7:37 pm
- Forum: C++ Development
- Topic: Rich Text Format
- Replies: 36
- Views: 1621
Rich Text Format
Is there already a complete implementation of the Rich Text Format from word?
- Sun Mar 03, 2019 12:34 pm
- Forum: C++ Development
- Topic: Database to show with changing column width
- Replies: 37
- Views: 5502
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.
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.
- Sun Mar 03, 2019 4:40 am
- Forum: C++ Development
- Topic: Database to show with changing column width
- Replies: 37
- Views: 5502
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...
- Tue Feb 26, 2019 7:20 am
- Forum: C++ Development
- Topic: Database to show with changing column width
- Replies: 37
- Views: 5502
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...
- Sun Feb 24, 2019 8:40 pm
- Forum: C++ Development
- Topic: Database to show with changing column width
- Replies: 37
- Views: 5502
Re: Database to show with changing column width
thanks for the click event, right to left is possible with the html codes 

- Sat Feb 23, 2019 9:21 pm
- Forum: C++ Development
- Topic: Database to show with changing column width
- Replies: 37
- Views: 5502
Re: Database to show with changing column width
Another question, how to set part of the text right to left (for hebrew text)
- Sat Feb 23, 2019 9:13 pm
- Forum: C++ Development
- Topic: Database to show with changing column width
- Replies: 37
- Views: 5502
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...