Search found 174 matches

by Wolfgang
Thu Feb 21, 2019 7:10 pm
Forum: C++ Development
Topic: Database to show with changing column width
Replies: 37
Views: 4244

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: 4244

Re: Database to show with changing column width

doublemax wrote:
Thu Feb 21, 2019 8:34 am
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: 4244

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: 4244

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: 4244

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.
by Wolfgang
Thu Feb 21, 2019 8:24 am
Forum: C++ Development
Topic: Database to show with changing column width
Replies: 37
Views: 4244

Re: Database to show with changing column width

With wxHtmlCellEvent::GetMouseEvent() you should be able to distinguish between different types o clicks. https://docs.wxwidgets.org/trunk/classwx_html_cell_event.html BTW: wxHtmlWindow only understands HTML 1.0, so your styling options will be limited. It will also be quite slow if you have a tabl...
by Wolfgang
Thu Feb 21, 2019 8:14 am
Forum: C++ Development
Topic: Database to show with changing column width
Replies: 37
Views: 4244

Re: Database to show with changing column width

Was thinking of not showing all at once and only show those which requested.
Must check if this is possible to generate the html on request just in memory.
by Wolfgang
Thu Feb 21, 2019 8:00 am
Forum: C++ Development
Topic: Database to show with changing column width
Replies: 37
Views: 4244

Re: Database to show with changing column width

Did now manage to distinguish between left and right click,


But at the moment only possible if really clicked and not if holded down or double clicked. So any help there would be appreciated.
by Wolfgang
Thu Feb 21, 2019 7:13 am
Forum: C++ Development
Topic: Database to show with changing column width
Replies: 37
Views: 4244

Re: Database to show with changing column width

Ok,I looked now at the test sample of wxHTMLWindow, and it looks like there I can get out what I need. The only problem I see now, if there are ways to distinguish between Clicked, right clicked and double clicked, as I usually will need all 3. OnHtmlCellClicked or ONHtmlLinkClicked There is somehow...
by Wolfgang
Wed Feb 20, 2019 6:03 pm
Forum: C++ Development
Topic: Database to show with changing column width
Replies: 37
Views: 4244

Re: Database to show with changing column width

Other idea I had to create wxtextctrl for all words, and make basically my own dataviewctrl. Before you start with bad workarounds, think about what would be best for the user. Every word should be editable and it should be possible to create hover over. At this point i would consider using a HTML ...
by Wolfgang
Tue Feb 19, 2019 7:30 pm
Forum: C++ Development
Topic: Database to show with changing column width
Replies: 37
Views: 4244

Re: Database to show with changing column width

Here again so it is also to see. I want the width of the column seperate in each row. To explain the difference Column1 Column2 Column3 Column4 I was ready Extraordinary superlong column test But should be: I was ready Extraordinary superlong column Every woord should be editable and it should be po...
by Wolfgang
Tue Feb 19, 2019 8:58 am
Forum: C++ Development
Topic: Database to show with changing column width
Replies: 37
Views: 4244

Re: Database to show with changing column width

I want the width of the column seperate in each row. That's impossible in any list based control and it sounds like a horrible GUI anyway. And i still don't think you need (or even want) this. Can you make a scribble or something of what you have in mind? Why I cannot quickly think of a better way,...
by Wolfgang
Tue Feb 19, 2019 8:57 am
Forum: C++ Development
Topic: Database to show with changing column width
Replies: 37
Views: 4244

Re: Database to show with changing column width

Using wxDataViewCtrl for text would definitely be unusual, but i see how it could make sense in your case. If i understand you correctly, you want two columns, the first one containing one sentence/verse per row and the second column with editable comments? But the problem I have is there a way to ...
by Wolfgang
Tue Feb 19, 2019 8:53 am
Forum: C++ Development
Topic: Database to show with changing column width
Replies: 37
Views: 4244

Re: Database to show with changing column width

It should show a bible text, but some of the bilbe texts should be changeable. And when hovering over it should show additional information to that word. Other approach would be with a normal textbased gui, but there again, the bibles will be in an sqlite database, at the moment not sure if only dat...
by Wolfgang
Tue Feb 19, 2019 6:28 am
Forum: C++ Development
Topic: Database to show with changing column width
Replies: 37
Views: 4244

Re: Database to show with changing column width

I want the width of the column seperate in each row.

Code: Select all

To explain the difference
Column1          Column2    Column3
I                was        ready
Extraordinary    superlong  column
But should be:

Code: Select all

I was ready
Extraordinary superlong column