Search found 224 matches

by Rudra
Fri Apr 26, 2019 12:52 pm
Forum: C++ Development
Topic: [wxMSW][wx3.0.3] Drawing text over bitmap
Replies: 5
Views: 1262

Re: [wxMSW][wx3.0.3] Drawing text over bitmap

I also tried the solution provided by Kvaz1r's post link. It worked. here is code, // Draw the text // Set a color which is not used in bitmap // There is a known issue that text comes transparent even if foreground color is set // the work around is set an unused color then iterate the each pixel a...
by Rudra
Fri Apr 26, 2019 11:26 am
Forum: C++ Development
Topic: [wxMSW][wx3.0.3] Drawing text over bitmap
Replies: 5
Views: 1262

Re: [wxMSW][wx3.0.3] Drawing text over bitmap

1. Original image Circle.png 2. When Saved As PNG : SavedIcon.png I get error : "Invalid extension" on attaching .bmp here. Attaching screen shot : screen-shot.png I see black background in case bmp. Converting to icon without saving the membmp, I get icon like saved as png. I get same res...
by Rudra
Fri Apr 26, 2019 9:17 am
Forum: C++ Development
Topic: [wxMSW][wx3.0.3] Drawing text over bitmap
Replies: 5
Views: 1262

[wxMSW][wx3.0.3] Drawing text over bitmap

Hi, In my wx application, i am creating an icon from drawing a text over bitmap. I am able to create the icon but I see that I can't set foreground color of the text. It comes transparent always. I tired SetTextForeground(*wxRED), SetBrush(*wxRED_BRUSH), SetPen(*wxRED_PEN) but none of them worked. w...
by Rudra
Tue Nov 13, 2018 9:33 am
Forum: C++ Development
Topic: [wxMSW][wx3.0.3] How to prevent editing some cells of a wxDataViewListCtrl
Replies: 2
Views: 684

[wxMSW][wx3.0.3] How to prevent editing some cells of a wxDataViewListCtrl

Hi, In my wx application, I show a wxDataViewListCtrl. One of it's column's cell mode is set for wxDATAVIEW_CELL_EDITABLE. I don't want all cells to be editable. Is it possible to do so or somehow prevent user to edit some cells. I looked into dataview sample and tried using wxDataViewVirtualListMod...
by Rudra
Mon Jul 30, 2018 7:32 am
Forum: C++ Development
Topic: [wxMSW][wx3.0.2] Sending Email from default configured mail
Replies: 4
Views: 1633

Re: [wxMSW][wx3.0.2] Sending Email from default configured mail

Thanks for the reply. I downloaded and built the wxEmail lib http://wxcode.sourceforge.net/showcomp.php?name=wxEMail . It uses wxOpenSSL.h header which includes openssl stuff but I am already using libcurl and other libs that depends on it. So, when I include "wx/smtp/wxsmtp.h", I get erro...
by Rudra
Fri Jul 27, 2018 10:38 am
Forum: C++ Development
Topic: [wxMSW][wx3.0.2] Sending Email from default configured mail
Replies: 4
Views: 1633

[wxMSW][wx3.0.2] Sending Email from default configured mail

Hi, In my wx application, I want to send email from my configure mail. While looking into forum, I found some sample code as follows, wxMailMessage email(wxT("this is the subject"), // subject wxT("wxWolf@yahoo.com"), // TO: wxT("body of the email - hello wxWidgets") //...
by Rudra
Fri Jul 06, 2018 8:04 am
Forum: Platform Related Issues
Topic: [wxMSW][wx3.0.2]Getting network path of directory
Replies: 5
Views: 1581

Re: [wxMSW][wx3.0.2]Getting network path of directory

What are you using to access that path? wxDirPicker? wxFileDialog? Or you are trying the hardcoded way? Once the user selects the path (i. e E:\\Shared) through wxDirPickerCtrl. I use hardcoded way assuming it is shared. That's what I what to do through code. I want a function which gives me path l...
by Rudra
Fri Jul 06, 2018 5:49 am
Forum: C++ Development
Topic: [wxMSW][wx3.0.2] Unable to get file name on watch directory notification
Replies: 7
Views: 1776

Re: [wxMSW][wx3.0.2] Unable to get file name on watch directory notification

m_watcher->AddTree(wxFileName(wxT("D:\\Projects\\wxTest")), wxFSW_EVENT_CREATE, wxT("*.*")); Yes, the above code works for me as well. On comparing with my code, I found that the issue is in how I was adding the path. bool CUFrame::AddFSEntry(const wxString& dirPath) { if(m_...
by Rudra
Mon Jul 02, 2018 11:08 am
Forum: C++ Development
Topic: [wxMSW][wx3.0.2] Unable to get file name on watch directory notification
Replies: 7
Views: 1776

Re: [wxMSW][wx3.0.2] Unable to get file name on watch directory notification

You probably need to add the directory for watching via AddTree() call. I tried AddTree() with wxFSW_EVENT_ALL event and see same issue. event.ToString() is as follows, FSW_EVT type=1 (CREATE) path='C:\Users\Rudresh Pandey\Documents\Rudresh\Send' FSW_EVT type=8 (MODIFY) path='C:\Users\Rudresh Pande...
by Rudra
Mon Jul 02, 2018 10:42 am
Forum: C++ Development
Topic: [wxMSW][wx3.0.2] Unable to get file name on watch directory notification
Replies: 7
Views: 1776

Re: [wxMSW][wx3.0.2] Unable to get file name on watch directory notification

PB wrote: Did you check the string provided by event.ToString() to see if there's anything useful?
Yes, it gives : FSW_EVT type=1 (CREATE) path='C:\Users\Rudresh Pandey\Documents\Rudresh\Send' which is the watching directory path.
by Rudra
Mon Jul 02, 2018 8:02 am
Forum: C++ Development
Topic: [wxMSW][wx3.0.2] Unable to get file name on watch directory notification
Replies: 7
Views: 1776

[wxMSW][wx3.0.2] Unable to get file name on watch directory notification

HI, In my wx application, using wxFileSystemWatcher, I am watching a directory for file being added to it. I get notification when a file is added but I can't get it name/path. The event.GetPath().GetFullPath() gives the watching directory path. My code is as follows, bool CUFrame::CreateFSWatcher()...
by Rudra
Wed Jun 20, 2018 6:42 am
Forum: Platform Related Issues
Topic: [wxMSW][wx3.0.2]Getting network path of directory
Replies: 5
Views: 1581

Re: [wxMSW][wx3.0.2]Getting network path of directory

Thanks for the reply. If I shared a folder (i.e E:\\Shared) on my machine, I can access it as "\\RUDRESH\Shared" or "\\192.168.43.46\Shared" on same machine or from other machine on LAN. By network path I meant "\\RUDRESH\Shared" or "\\192.168.43.46\Shared". W...
by Rudra
Thu Jun 14, 2018 9:30 am
Forum: Platform Related Issues
Topic: [wxMSW][wx3.0.2]Getting network path of directory
Replies: 5
Views: 1581

[wxMSW][wx3.0.2]Getting network path of directory

Hi,

In my wx application, I browse for directory where user selects the directory which may be shared. I path to convert the selected path to network path,
(e.g E:\Shared\Doc to \\RUDRESH\Shared\Doc) if it is shared.

I couldn't figure to do so. Please suggest.

Thnaks,
R.
by Rudra
Thu Apr 12, 2018 4:55 pm
Forum: C++ Development
Topic: wxTextCtrl with wxTE_MULTILINE and wxTE_NO_VSCROLL
Replies: 13
Views: 2548

Re: wxTextCtrl with wxTE_MULTILINE and wxTE_NO_VSCROLL

ONEEYEMAN,
I removed event.Skip(). I still see same issue. I am unable to set the caret to the first line from code. Once user presses enter, caret comes to second line and remains there. However, if I use wxTE_AUTO_URL along with wxTE_MULTILINE then it works fine.

Thanks,
R
by Rudra
Thu Apr 12, 2018 9:54 am
Forum: C++ Development
Topic: wxTextCtrl with wxTE_MULTILINE and wxTE_NO_VSCROLL
Replies: 13
Views: 2548

Re: wxTextCtrl with wxTE_MULTILINE and wxTE_NO_VSCROLL

Please show some code. Explaining things in words usually only explains what you think you coded ;) Do you call event.Skip() in the key event handler? If you handled the enter key, you should *not* do that. Otherwise it will be processed again. Yes, I do. // Ctor m_txtCtrl = new wxTextCtrl(m_bgPane...