Search found 176 matches

by tomay3000
Mon Mar 29, 2021 10:48 pm
Forum: C++ Development
Topic: How to get the Pressed, Focused and Disabled state bitmaps from a Normal state wxBitmap?
Replies: 9
Views: 222

Re: How to get the Pressed, Focused and Disabled state bitmaps from a Normal state wxBitmap?

Hi, But this is incorrect. You are asking: "How to get the Pressed state bitmap", when you should be asking: "How to modify the regular bitmap in order to set it as pressed" I am really sorry about that. Is English you second language? Thank you. Actually, it is the third one. Thank you for your un...
by tomay3000
Mon Mar 29, 2021 7:35 pm
Forum: C++ Development
Topic: How to get the Pressed, Focused and Disabled state bitmaps from a Normal state wxBitmap?
Replies: 9
Views: 222

Re: How to get the Pressed, Focused and Disabled state bitmaps from a Normal state wxBitmap?

If you really need these states (do you?) Sure I do, and I guess I have found where to start, you have to implement the functions yourself I have to copy the function implementation wxImage wxImage::ConvertToDisabled(unsigned char brightness) const source code and simply change the code wxColour::M...
by tomay3000
Mon Mar 29, 2021 6:13 pm
Forum: C++ Development
Topic: How to get the Pressed, Focused and Disabled state bitmaps from a Normal state wxBitmap?
Replies: 9
Views: 222

Re: How to get the Pressed, Focused and Disabled state bitmaps from a Normal state wxBitmap?

Hi, Why do you need to get it? What problem you are trying to solve? Thank you. Hello, I am trying to implement an owner-draw bitmap button that changes the lightness on mouse hover, click or disabled states. One state (Disabled) is already implemented [wxBitmap|wxImage]::ConvertToDisabled(), but t...
by tomay3000
Sun Mar 28, 2021 10:29 pm
Forum: C++ Development
Topic: How to get the Pressed, Focused and Disabled state bitmaps from a Normal state wxBitmap?
Replies: 9
Views: 222

How to get the Pressed, Focused and Disabled state bitmaps from a Normal state wxBitmap?

Hello,

I need to get the Pressed, Focused and Disabled state bitmaps from a Normal state wxBitmap?
Is this possible?
I can't see it anywhere in the documentation.

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

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

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

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

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

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

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

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

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

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

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

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...