May be, but I'm not such friendly with wxWidgetsdoublemax wrote:I think wxListCtrl or wxDataViewCtrl are more suitable for this task.I think such grid behavior is quite in demand, and I can't understand why it not implemented in grid.
Search found 15 matches
- Tue Apr 04, 2017 9:02 pm
- Forum: C++ Development
- Topic: wxGrid with always selected single row questions
- Replies: 8
- Views: 2478
Re: wxGrid with always selected single row questions
- Tue Apr 04, 2017 8:24 pm
- Forum: C++ Development
- Topic: wxGrid with always selected single row questions
- Replies: 8
- Views: 2478
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...
- Tue Apr 04, 2017 6:56 pm
- Forum: C++ Development
- Topic: wxGrid with always selected single row questions
- Replies: 8
- Views: 2478
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 understa...
- Tue Apr 04, 2017 3:03 pm
- Forum: C++ Development
- Topic: wxGrid with always selected single row questions
- Replies: 8
- Views: 2478
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 ha...
- Tue Apr 04, 2017 10:51 am
- Forum: C++ Development
- Topic: How to update virtual wxGrid?
- Replies: 1
- Views: 893
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?
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?
- Wed Mar 29, 2017 10:04 am
- Forum: C++ Development
- Topic: Is it wxHtml Bug that H3-H6 changes text decoration?
- Replies: 2
- Views: 1006
Re: Is it wxHtml Bug that H3-H6 changes text decoration?
Ooopsdoublemax wrote:The closing tags are wrong (all </h2>)Code: Select all
<h6>Header 6</h2>Something normal text H6
Thanks
- Wed Mar 29, 2017 8:32 am
- Forum: C++ Development
- Topic: WxHtmlWindow and Frames
- Replies: 3
- Views: 1224
Re: WxHtmlWindow and Frames
WebView is it too heavy and complex for my app.catalin wrote:At a glance, you might find wxWebView helpful.
I already wrote a single frame implementation. It is complete enough for me, but, of course, it is non-standard
- Wed Mar 29, 2017 8:21 am
- Forum: C++ Development
- Topic: Is it wxHtml Bug that H3-H6 changes text decoration?
- Replies: 2
- Views: 1006
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...
- Wed Mar 29, 2017 5:49 am
- Forum: C++ Development
- Topic: WxHtmlWindow and relative links
- Replies: 0
- Views: 5739
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?
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?
- Wed Mar 29, 2017 3:56 am
- Forum: C++ Development
- Topic: WxHtmlWindow and Frames
- Replies: 3
- Views: 1224
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...
- Wed Mar 29, 2017 3:47 am
- Forum: C++ Development
- Topic: WxHtmlWindow and Frames
- Replies: 3
- Views: 1224
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'...
- Sat Mar 25, 2017 8:26 pm
- Forum: wxWidgets Development (Russian)
- Topic: rsdn.org
- Replies: 3
- Views: 2982
Re: rsdn.org
Гадюшник там, я лучше тут поотвечаю на вопросы, или, в крайнем случае, на StackOverflow. Тут и люди более адекватные, и вопросы более по теме. А на RSDN пусть сами как-то. В этом гадюшнике по плюсовым вопросам очень квалифицированные товарищи есть. А сюда 3 человека в год заходят - конечно, тут чис...
- Sat Mar 25, 2017 8:24 pm
- Forum: wxWidgets Development (Russian)
- Topic: wxHtmlWindow LoadPage и картинки
- Replies: 3
- Views: 2871
Re: wxHtmlWindow LoadPage и картинки
Вероятно, до загрузки страницы нужно проинициализировать все image handler'ы. Я об этом писал: Попробовал побегать в отладчике по wxWidgets - выяснил, что были незарегистрированны обработчики I/O для форматов картинок. Хотя PNG при чтении базового HTML из файла (LoadFile) и так работало. Добавил ре...
- Sat Mar 25, 2017 7:47 am
- Forum: wxWidgets Development (Russian)
- Topic: rsdn.org
- Replies: 3
- Views: 2982
rsdn.org
Здравствуйте! Есть такая площадка - форум программистов - rsdn.org. Раньше был rsdn.ru, но что-то там профукали, и в зоне ru неизвестно теперь когда заработает. Но суть не в этом. Там в принципе есть ответы на все вопросы. Кроме wxWidgets :( Мне кажется, было бы неплохо создать там форум по wxWidget...
- Sat Mar 25, 2017 6:47 am
- Forum: wxWidgets Development (Russian)
- Topic: wxHtmlWindow LoadPage и картинки
- Replies: 3
- Views: 2871
wxHtmlWindow LoadPage и картинки
Здравствуйте! wxWidgets 3.1.0 Создал я wxHtmlWindow, создал startpgtpl.htm и в ней картинки <IMG> с SRC без указания пути, только имя. Работает, все грузится и отображается. Загружал через LoadFile с указанием полного пути до основного html. Далее мне нужно все это зашить в exe. О механизмах рассказ...