Search found 224 matches

by Rudra
Wed Oct 14, 2020 8:19 am
Forum: C++ Development
Topic: [wxMSW][wx3.0.3] Showing hand cursor only above bitmap of wxDataViewListCtrl's bitmap column
Replies: 4
Views: 630

Re: [wxMSW][wx3.0.3] Showing hand cursor only above bitmap of wxDataViewListCtrl's bitmap column

What platform? On windows 10 It may not be possible, because tooltip might change the cursor position. and showing it has preference (from the native platform perspective). It could be possible. I checked mouse over in explorer. When it shows tooltip it shows the arrow cursor and when it shows the ...
by Rudra
Sat Oct 10, 2020 9:44 am
Forum: C++ Development
Topic: [wxMSW][wx3.0.3] Showing hand cursor only above bitmap of wxDataViewListCtrl's bitmap column
Replies: 4
Views: 630

Re: [wxMSW][wx3.0.3] Showing hand cursor only above bitmap of wxDataViewListCtrl's bitmap column

Use wxDataViewCtrl::GetItemRect to get the rect for the cell. If the bitmap is always 20x20 and centered, you can calculate its exact coordinates and check if the mouse cursor is inside. Thanks for the reply. yes, it works. I noticed one thing that if tooltip is also being shown for the bitmap then...
by Rudra
Sat Oct 10, 2020 7:05 am
Forum: C++ Development
Topic: [wxMSW][wx3.0.3] Showing hand cursor only above bitmap of wxDataViewListCtrl's bitmap column
Replies: 4
Views: 630

[wxMSW][wx3.0.3] Showing hand cursor only above bitmap of wxDataViewListCtrl's bitmap column

Hi, In my wx application, I show a wxDataViewListCtrl in which I have a bitmap column along with Text columns. The bimap size is 20x20 but I have set row height to 60 due to showing multiline text. I want to show the hand cursor when mouse is above the bitmap only. I added wxEVT_MOTION for the list ...
by Rudra
Fri Dec 06, 2019 1:34 pm
Forum: C++ Development
Topic: [wxMSW][wx3.0.3] Pasting URL as text even if using wxURLDataObject while setting clipboard data
Replies: 3
Views: 674

Re: [wxMSW][wx3.0.3] Pasting URL as text even if using wxURLDataObject while setting clipboard data

Thanks for the reply.

I tried setting html but it copies html content as string.

If I copy url from Firefox, it also comes as text
by Rudra
Fri Dec 06, 2019 11:41 am
Forum: C++ Development
Topic: [wxMSW][wx3.0.3] Pasting URL as text even if using wxURLDataObject while setting clipboard data
Replies: 3
Views: 674

[wxMSW][wx3.0.3] Pasting URL as text even if using wxURLDataObject while setting clipboard data

Hi, In my wx application, I show an URL and copying it to clipboard on a button clicked. Even if I am using wxURLDataObject while setting data in wxTheClipboard, it is getting paste as text. I tried pasting on Thuderbird/Gmail compose mail but don't see it as URL. wxTheClipboard->Open(); if(wxTheCli...
by Rudra
Thu Dec 05, 2019 2:38 pm
Forum: C++ Development
Topic: [wxMSW][wx3.0.3] Detecting PC sleep/wake
Replies: 2
Views: 733

Re: [wxMSW][wx3.0.3] Detecting PC sleep/wake

Thanks for the reply.
PB wrote: Thu Dec 05, 2019 12:48 pm there is wxEVT_POWER_SUSPENDED and wxEVT_POWER_RESUME

It works.

Thanks,
R.
by Rudra
Thu Dec 05, 2019 12:27 pm
Forum: C++ Development
Topic: [wxMSW][wx3.0.3] Detecting PC sleep/wake
Replies: 2
Views: 733

[wxMSW][wx3.0.3] Detecting PC sleep/wake

Hi, I want to detect if PC is going in sleep mode or when it wake up. I couldn't find a way to do so. I tried wxEVT_HIBERNATE but it doesn' t work for sleep. I use wxEVT_QUERY_END_SESSION to detect if PC is shutting down and it works fine. I want similar for sleep or wake. Please suggest. Thanks, R.
by Rudra
Mon Oct 14, 2019 6:22 am
Forum: C++ Development
Topic: Re: [wxMSW][wx3.0.3] wxRichTextHTMLHandler ignores textbox
Replies: 1
Views: 633

Re: [wxMSW][wx3.0.3] wxRichTextHTMLHandler ignores textbox

Hi, In my wx applciation, I have a rich text control from which I create html string using wxRichTextHTMLHandler. If I have added text box(s) using wxRichTextCtrl::WriteTextBox then it doesn't create it's HTML string. I see the XML handler does but HTML handler doesn't. I couldn't find a way to get ...
by Rudra
Thu Sep 05, 2019 2:29 pm
Forum: C++ Development
Topic: [wxMSW][wx3.0.3] wxExecute with wxEXEC_ASYNC in wxThreadEventHandler triggers wxApp::OnExit()
Replies: 1
Views: 461

[wxMSW][wx3.0.3] wxExecute with wxEXEC_ASYNC in wxThreadEventHandler triggers wxApp::OnExit()

Hi I my wx application, I have a join able thread. From wxThread::Entry() function, I am posting an event as follows, wxThreadEvent* evt = new wxThreadEvent(); evt->SetId(kMerge); wxQueueEvent(wxTheApp, evt); When wxThreadEventHandler is triggered, I am launching an exe (ffmpeg app) using wxExecute ...
by Rudra
Tue Aug 20, 2019 7:04 am
Forum: C++ Development
Topic: [wxMSW][wx3.0.3] wxRichTextCtrl: Getting buffer as HTML does not add width and height of embedded image
Replies: 3
Views: 713

Re: [wxMSW][wx3.0.3] wxRichTextCtrl: Getting buffer as HTML does not add width and height of embedded image

Thanks for the reply I use the output html string to insert in a web page. Even if I don't set the wxRICHTEXT_HANDLER_SAVE_IMAGES_TO_BASE64 flag, I get same html data. Hence always get image in original size rather than modified size on web page. // Get as html data wxString text; wxStringOutputStre...
by Rudra
Mon Aug 19, 2019 2:46 pm
Forum: C++ Development
Topic: [wxMSW][wx3.0.3] wxRichTextCtrl: Getting buffer as HTML does not add width and height of embedded image
Replies: 3
Views: 713

[wxMSW][wx3.0.3] wxRichTextCtrl: Getting buffer as HTML does not add width and height of embedded image

Hi I am trying to get the wxRichTextCtrl's buffer as HTML string using wxRichTextHTMLHandler. I set handler's flag to wxRICHTEXT_HANDLER_SAVE_IMAGES_TO_BASE64. If I resize the embedded image using Picture Properties Dialog that comes on right clicking the image, It does not add any width or height p...
by Rudra
Tue Aug 13, 2019 7:21 am
Forum: C++ Development
Topic: [wxMSW][wx3.0.3] wxRichTextCtrl: Loading HTML string.
Replies: 2
Views: 824

Re: [wxMSW][wx3.0.3] wxRichTextCtrl: Loading HTML string.

Thanks for the reply. I was stuck. I tried XML handler and it works for me. I can save the rich text as XML and load it later. Code is as follows, // Save wxStringOutputStream strStream(m_rtcStr); wxRichTextXMLHandler xmlHander; xmlHander.SetFlags(wxRICHTEXT_HANDLER_SAVE_IMAGES_TO_BASE64); // save e...
by Rudra
Mon Aug 12, 2019 11:40 am
Forum: C++ Development
Topic: [wxMSW][wx3.0.3] wxRichTextCtrl: Loading HTML string.
Replies: 2
Views: 824

[wxMSW][wx3.0.3] wxRichTextCtrl: Loading HTML string.

Hi, I looked into forum and found following links that says loading HTML content is not supported in wxRichTextCtrl. https://forums.wxwidgets.org/viewtopic.php?t=38274 https://forums.wxwidgets.org/viewtopic.php?t=45019 I have a function in which I can save the RTC's content as HTML and edit later if...
by Rudra
Mon Aug 12, 2019 7:16 am
Forum: C++ Development
Topic: [wxMSW][wx3.0.3] Get menu-item label on click of a dynamically added menu in toolbar
Replies: 2
Views: 828

[wxMSW][wx3.0.3] Get menu-item label on click of a dynamically added menu in toolbar

Hi, In my wx application, I have wxITEM_DROPDOWN tool in which I am adding menu-items dynamically as follows, m_tooBar = new wxToolBar(m_titlePanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTB_NODIVIDER|wxTB_HORZ_TEXT); m_tooBar->AddTool(wxID_LOAD, wxT("Load"), wxMEMORY_PNG(ICON_LOAD)...