Search found 221 matches

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

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

[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: 116

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

[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: 258

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

[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: 151

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

[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: 187

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

[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: 196

[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), wxMEMORY...
by Rudra
Mon Aug 05, 2019 9:06 am
Forum: C++ Development
Topic: [wxMSW[3.0.3] Convert plain text to html text
Replies: 4
Views: 205

Re: [wxMSW[3.0.3] Convert plain text to html text

Thanks for the reply. What kind of issues? Initially, I was not handling '<', so it was not getting displayed in list if input string has it. e.g if input string is "a<c" then I was seeing only "a" in list. I don't see any problem with '>' and '&'. It gets displayed okay. I have to replace the '<'' ...
by Rudra
Fri Aug 02, 2019 7:46 am
Forum: C++ Development
Topic: [wxMSW[3.0.3] Convert plain text to html text
Replies: 4
Views: 205

[wxMSW[3.0.3] Convert plain text to html text

Hi In my wx application, I am getting plain text from wxTextCtrl and loading to wxSimpleHtmlListBox. The text can contain new line and any html entity like & >, < etc. I am handling it manually (i.e Replacing _T('<') with _T("<"), _T('\n') with _T("<br/>") and so on) when I find issue in displaying ...
by Rudra
Fri Jul 05, 2019 11:37 am
Forum: C++ Development
Topic: [wxMSW][wx3.0.3] wxSimpleHtmlListBox: Wrapping long text without spaces
Replies: 3
Views: 128

Re: [wxMSW][wx3.0.3] wxSimpleHtmlListBox: Wrapping long text without spaces

Thanks for the reply. yes, the <wbr>, ­ or ​ (Zero-width space) are not supported by wxHTML. Let me explain little bit more what I am doing. Each row of my wxSimpleHtmlListBox is a table. I am calculating the possible width using wxDC::GetTextExtent(wxString) and setting the width of HTML ...