Search found 172 matches

by tomay3000
Mon Aug 03, 2020 5:59 pm
Forum: General Development
Topic: Report Desinger plugin ??? Urgent !
Replies: 11
Views: 3024

Re: Report Desinger plugin ??? Urgent !

Any news to share about the subject?
I am gonna try wxReportDocument and see if I can extend it.

TIA.
by tomay3000
Mon Aug 03, 2020 5:57 pm
Forum: Platform Related Issues
Topic: [wxMSW] What is the best way to get notified when the background or forground colors of a control changes?
Replies: 4
Views: 193

Re: [wxMSW] What is the best way to get notified when the background or forground colors of a control changes?

I completely missed that these methods are virtual and probably was made like that for this reason.
Thank you.
by tomay3000
Mon Aug 03, 2020 5:35 pm
Forum: Platform Related Issues
Topic: [wxMSW] What is the best way to get notified when the background or forground colors of a control changes?
Replies: 4
Views: 193

Re: [wxMSW] What is the best way to get notified when the background or forground colors of a control changes?

I use a sub-classed wxControl , and I need to update the drawing inside that sub-classed control according to the background and foreground colors. So if later I use mySubClassedControl.SetBackgroundColour() or mySubClassedControl.SetForgroundColour() , then how do I know inside the sub-classed cont...
by tomay3000
Mon Aug 03, 2020 11:38 am
Forum: Platform Related Issues
Topic: [wxMSW] What is the best way to get notified when the background or forground colors of a control changes?
Replies: 4
Views: 193

[wxMSW] What is the best way to get notified when the background or forground colors of a control changes?

Hello,
I need to know where to intercept the background and forground color changes of a control.
Is there an event I don't know about?
What is the best way to do it?

TIA.
by tomay3000
Sun Aug 02, 2020 10:36 pm
Forum: Platform Related Issues
Topic: [wxMSW] How can I create a wxBrush from an existing HBRUSH?
Replies: 2
Views: 127

Re: [wxMSW] How can I create a wxBrush from an existing HBRUSH?

Yeah, that's what I thought, because I have searched everywhere.
I can't convince Vadim either to implement it, because the philosophy to add something to wxWidgets is when it is needed by the toolkit itself, not user code.

Thank you for the hint.
by tomay3000
Sun Aug 02, 2020 3:25 am
Forum: Platform Related Issues
Topic: [wxMSW] How can I create a wxBrush from an existing HBRUSH?
Replies: 2
Views: 127

[wxMSW] How can I create a wxBrush from an existing HBRUSH?

Hello,
getting the HBRUSH handle from a wxBrush is easy. But I need to do the inverse, that is create a wxBrush from an existing HBRUSH.
Is it possible? Show me.
TIA.
by tomay3000
Sat Jun 20, 2020 10:33 am
Forum: General Development
Topic: wx support to some feature
Replies: 5
Views: 1308

Re: wx support to some feature

Better come late than never. 3) perform some action when a video in on a specific second/interval of time This is possible using wxVLC: The static function: void OnPositionChanged_VLC(const libvlc_event_t *event, void *data) { wxVLCFrame *mainFrame = ((wxVLCFrame *)wxGetApp().GetTopWindow()); mainFr...
by tomay3000
Tue May 05, 2020 7:38 pm
Forum: C++ Development
Topic: wxFileOutputStream will fail if the directory doesn't exist!
Replies: 4
Views: 357

Re: wxFileOutputStream will fail if the directory doesn't exist!

doublemax wrote:
Tue May 05, 2020 5:51 am
If the flags contain wxPATH_MKDIR_FULL flag, try to create each directory in the path and also don't return an error if the target directory already exists.
My bad, I haven't read that description to the end.
by tomay3000
Tue May 05, 2020 1:02 am
Forum: C++ Development
Topic: wxFileOutputStream will fail if the directory doesn't exist!
Replies: 4
Views: 357

Re: wxFileOutputStream will fail if the directory doesn't exist!

wxFileName::Mkdir() with wxPATH_MKDIR_FULL flag can help with that Thank you, wxFileName::Mkdir with wxPATH_MKDIR_FULL flag is really handy, the question is: should I test for that directory existence before!? using wxDirExists or it is done internally in wxFileName::Mkdir implementation! I need to...
by tomay3000
Mon May 04, 2020 10:42 am
Forum: C++ Development
Topic: wxFileOutputStream will fail if the directory doesn't exist!
Replies: 4
Views: 357

wxFileOutputStream will fail if the directory doesn't exist!

Hello, When creating a file using wxFileOutputStream and the directory in which this file will be created doesn't exist in the first place, then wxFileOutputStream::IsOk will return false and the file won't be created of course. Is this the intended behavior? because nothing is said in the documenta...
by tomay3000
Sun May 03, 2020 7:03 am
Forum: C++ Development
Topic: How to wxDir::GetAllFiles for multiple filespec criterias!
Replies: 1
Views: 174

How to wxDir::GetAllFiles for multiple filespec criterias!

Hello, I need to call wxDir::GetAllFiles for multiple filespec criterias, I thought about calling it multiple times for each filespec criteria since from the documentation it preserves the old content of wxArrayString * files , but this will imply performance issues, because the traversal will be re...
by tomay3000
Mon Apr 27, 2020 10:14 pm
Forum: C++ Development
Topic: How to pass file name list as a function parameter!?
Replies: 8
Views: 452

Re: How to pass file name list as a function parameter!?

I mean something more straightforward: wxArrayString arrStrFileNames; arrStrFileNames.assign(vStrFileNames.begin(), vStrFileNames.end());//from std::vector<> std::vector<wxString> vec(arrStrFileNames.begin(), arrStrFileNames.end());//from wxArrayString I completely missed that. Thank you again.
by tomay3000
Mon Apr 27, 2020 8:22 pm
Forum: C++ Development
Topic: How to pass file name list as a function parameter!?
Replies: 8
Views: 452

Re: How to pass file name list as a function parameter!?

Both class provide iterators so you can use them to create another container. I just figured it out: std::vector<wxString> vStrFileNames; wxArrayString arrStrFileNames; for (wxArrayString::const_iterator it = arrStrFileNames.begin(); it != arrStrFileNames.end(); ++it) vStrFileNames.push_back(*it); ...
by tomay3000
Mon Apr 27, 2020 7:15 pm
Forum: C++ Development
Topic: How to pass file name list as a function parameter!?
Replies: 8
Views: 452

Re: How to pass file name list as a function parameter!?

Hi, The strings vector seems much easier. Also, depending on the scenario you might use const vector... Thank you. I completely forgot about const , also there are situations where I need to convert from a wxArrayString to an std::vector and vice versa, so are there any predefined helper macros to ...
by tomay3000
Mon Apr 27, 2020 6:26 pm
Forum: C++ Development
Topic: How to pass file name list as a function parameter!?
Replies: 8
Views: 452

Re: How to pass file name list as a function parameter!?

Kvaz1r wrote:
Sun Apr 26, 2020 8:29 pm
Why are you want to use reference and not value type? You can share vector via wxSharedPtr<> instead or not share anything at all.
I need a list of wxString or wxFileName to be passed as a function parameter.