Search found 15 matches

by tramvon
Tue Apr 04, 2017 9:02 pm
Forum: C++ Development
Topic: wxGrid with always selected single row questions
Replies: 7
Views: 1010

Re: wxGrid with always selected single row questions

doublemax wrote:
I think such grid behavior is quite in demand, and I can't understand why it not implemented in grid.
I think wxListCtrl or wxDataViewCtrl are more suitable for this task.
May be, but I'm not such friendly with wxWidgets
by tramvon
Tue Apr 04, 2017 8:24 pm
Forum: C++ Development
Topic: wxGrid with always selected single row questions
Replies: 7
Views: 1010

Re: wxGrid with always selected single row questions

Why do you catch WXK_LEFT and WXK_RIGHT? For such grids it is a standard behavior, isn't it? int curRow = pGrid->GetGridCursorRow(); pGrid->SelectRow(curRow, false ); I don't think the grid cursor row has been updated yet at this time. This usually happens in repsonse to the key event. I think this...
by tramvon
Tue Apr 04, 2017 6:56 pm
Forum: C++ Development
Topic: wxGrid with always selected single row questions
Replies: 7
Views: 1010

Re: wxGrid with always selected single row questions

Similar question: https://forums.wxwidgets.org/viewtopic.php?f=1&t=43238 Looks like as that as I need. On key press I will check how manu rows are selected, if 0, then I need to select current row. How I can find the current row? UPD. GetGridCursorRow() is that what I need. But I can't understand h...
by tramvon
Tue Apr 04, 2017 3:03 pm
Forum: C++ Development
Topic: wxGrid with always selected single row questions
Replies: 7
Views: 1010

wxGrid with always selected single row questions

Hello! I have a grid, and need that the only one row must be selected always. I disable "cell focus" rect and enable row selection mode: pGrid->SetSelectionMode(wxGrid::wxGridSelectRows); pGrid->SetCellHighlightPenWidth(0); pGrid->SetCellHighlightROPenWidth(0); Also, a I make cel select handler and ...
by tramvon
Tue Apr 04, 2017 10:51 am
Forum: C++ Development
Topic: How to update virtual wxGrid?
Replies: 1
Views: 457

How to update virtual wxGrid?

Hello!

I have class MyGrid: wxGridTableBase to provide data for wxGrid. When I add some rows to my data I need to update the view of binded grid, but I can't find any working sample for this task.

Can anyone help me?
by tramvon
Wed Mar 29, 2017 10:04 am
Forum: C++ Development
Topic: Is it wxHtml Bug that H3-H6 changes text decoration?
Replies: 2
Views: 548

Re: Is it wxHtml Bug that H3-H6 changes text decoration?

doublemax wrote:

Code: Select all

<h6>Header 6</h2>Something normal text H6
The closing tags are wrong (all </h2>)
Ooops :D
Thanks
by tramvon
Wed Mar 29, 2017 8:32 am
Forum: C++ Development
Topic: WxHtmlWindow and Frames
Replies: 3
Views: 620

Re: WxHtmlWindow and Frames

catalin wrote:At a glance, you might find wxWebView helpful.
WebView is it too heavy and complex for my app.

I already wrote a single frame implementation. It is complete enough for me, but, of course, it is non-standard
by tramvon
Wed Mar 29, 2017 8:21 am
Forum: C++ Development
Topic: Is it wxHtml Bug that H3-H6 changes text decoration?
Replies: 2
Views: 548

Is it wxHtml Bug that H3-H6 changes text decoration?

Hello! It seems that the H4-H6 tags modify the default state. After them the default font state - italic, bold, and size. HTML: <html> <body> Overview <h1>Header 1</h1>Something normal text H1 <h2>Header 2</h2>Something normal text H2 <h3>Header 3</h3>Something normal text H3 <h4>Header 4</h2>Someth...
by tramvon
Wed Mar 29, 2017 5:49 am
Forum: C++ Development
Topic: WxHtmlWindow and relative links
Replies: 0
Views: 854

WxHtmlWindow and relative links

Hello!

I'm writing a tag handler and want to load HTML document taken in SRC attr. How I can construct full document URL relative (if needed) from the currently loaded page?
by tramvon
Wed Mar 29, 2017 3:56 am
Forum: C++ Development
Topic: WxHtmlWindow and Frames
Replies: 3
Views: 620

My code for Frames implementation

For anyone who is too lazy to download attachments :D I only add next members: std::vector<wxString> m_FramesetSizeDef; bool m_bColFrameset; int m_AddedItems; void AddRow(); bool IsColFrameset() { return m_bColFrameset; }; int scalePixels(int px) { return (int)(px*m_PixelScale); } bool GetColRowSize...
by tramvon
Wed Mar 29, 2017 3:47 am
Forum: C++ Development
Topic: WxHtmlWindow and Frames
Replies: 3
Views: 620

WxHtmlWindow and Frames

When I tried to use WxHtmlWindow to display some HTML, I find that it is too dificult to create complex layot without normal DIV's and CSS support. Disigning layout with tables produces too much nested tables, and I have a great idea to make my own tag handler to handle FRAMESET/FRAME tags. Cause I'...
by tramvon
Sat Mar 25, 2017 8:26 pm
Forum: wxWidgets Development (Russian)
Topic: rsdn.org
Replies: 3
Views: 1374

Re: rsdn.org

Гадюшник там, я лучше тут поотвечаю на вопросы, или, в крайнем случае, на StackOverflow. Тут и люди более адекватные, и вопросы более по теме. А на RSDN пусть сами как-то. В этом гадюшнике по плюсовым вопросам очень квалифицированные товарищи есть. А сюда 3 человека в год заходят - конечно, тут чис...
by tramvon
Sat Mar 25, 2017 8:24 pm
Forum: wxWidgets Development (Russian)
Topic: wxHtmlWindow LoadPage и картинки
Replies: 3
Views: 1322

Re: wxHtmlWindow LoadPage и картинки

Вероятно, до загрузки страницы нужно проинициализировать все image handler'ы. Я об этом писал: Попробовал побегать в отладчике по wxWidgets - выяснил, что были незарегистрированны обработчики I/O для форматов картинок. Хотя PNG при чтении базового HTML из файла (LoadFile) и так работало. Добавил ре...
by tramvon
Sat Mar 25, 2017 7:47 am
Forum: wxWidgets Development (Russian)
Topic: rsdn.org
Replies: 3
Views: 1374

rsdn.org

Здравствуйте! Есть такая площадка - форум программистов - rsdn.org. Раньше был rsdn.ru, но что-то там профукали, и в зоне ru неизвестно теперь когда заработает. Но суть не в этом. Там в принципе есть ответы на все вопросы. Кроме wxWidgets :( Мне кажется, было бы неплохо создать там форум по wxWidget...
by tramvon
Sat Mar 25, 2017 6:47 am
Forum: wxWidgets Development (Russian)
Topic: wxHtmlWindow LoadPage и картинки
Replies: 3
Views: 1322

wxHtmlWindow LoadPage и картинки

Здравствуйте! wxWidgets 3.1.0 Создал я wxHtmlWindow, создал startpgtpl.htm и в ней картинки <IMG> с SRC без указания пути, только имя. Работает, все грузится и отображается. Загружал через LoadFile с указанием полного пути до основного html. Далее мне нужно все это зашить в exe. О механизмах рассказ...