Search found 45 matches

by bertolino
Thu Jan 16, 2020 10:23 am
Forum: C++ Development
Topic: Save multiple images as one file.
Replies: 3
Views: 164

Re: Save multiple images as one file.

Hi,

I suggest to embed the images with a system call to 7-Zip or another file archiver (7-zip is LGPL).

Pascal
by bertolino
Thu Jan 02, 2020 11:39 am
Forum: C++ Development
Topic: Scrolling with SetTargetWindow (small layout issue)
Replies: 2
Views: 199

Re: Scrolling with SetTargetWindow (small layout issue)

Hello doublemax, Thanks for your time and advice. I tried to do so but the behaviour is exactly the same. Following your idea, I also noticed that if we have 2 scrolled windows (each one targeting the other, so we're supposed to be "full symmetric"), the behaviour of each one differs slightly from t...
by bertolino
Tue Dec 31, 2019 10:34 am
Forum: C++ Development
Topic: Scrolling with SetTargetWindow (small layout issue)
Replies: 2
Views: 199

Scrolling with SetTargetWindow (small layout issue)

Hello all, Starting from the scrolling code at https://wiki.wxwidgets.org/Scrolling (to which I've made as few changes as possible...), I wanted to test the use of SetTargetWindow. The final goal is to scroll a left panel with a right wxScrolledWindow (so don't pay attention to the right series of b...
by bertolino
Sun Dec 29, 2019 4:29 pm
Forum: C++ Development
Topic: Scrolling width SetTargetWindow
Replies: 3
Views: 799

Re: Scrolling width SetTargetWindow

Hello Kea_,

I just found your post (it's ten years old) that kindly brings THE solution to the issue I'm having for a couple of hours yet.
Many many thanks for sharing it!
Best regards,

Pascal
by bertolino
Wed Nov 06, 2019 9:52 pm
Forum: C++ Development
Topic: Docked pane status using a wxAuiManager
Replies: 2
Views: 244

Re: Docked pane status using a wxAuiManager

Dear Doublemax,

What a brilliant idea! I missed the right information but you didn't.
Actually, I didn't find it in the window member but right next to it in the rect member.
You really made my day as you can see with the right scrollbar below.
With my grateful thanks,
Pascal
toolbar3.png
toolbar3.png (17.94 KiB) Viewed 177 times
by bertolino
Tue Nov 05, 2019 9:29 pm
Forum: Component Writing
Topic: Dark skinned application that flashes when started
Replies: 13
Views: 2699

Re: Dark skinned application that flashes when started

Hi Shawnee,
Thanks for your kind words and sorry for my very late response.
Unfortunately, I cannot opensource the corresponding piece of code since it is used in a future commercial application.

Pascal
by bertolino
Tue Nov 05, 2019 9:03 pm
Forum: C++ Development
Topic: Docked pane status using a wxAuiManager
Replies: 2
Views: 244

Docked pane status using a wxAuiManager

Hello, I'm using a wxAuiManager with a pane that can float and can be docked. When it is docked on the whole height of its parent, it is OK since its height is available to correctly manage the scroll bar of the panel embedded in the pane: toolbar1.png But I remarked that it can also be docked at an...
by bertolino
Sun Oct 28, 2018 8:12 am
Forum: C++ Development
Topic: How to catch a left click on a wxSlider thumb
Replies: 8
Views: 506

Re: How to catch a left click on a wxSlider thumb

Thanks for the explanation doublemax.
by bertolino
Sat Oct 27, 2018 12:31 pm
Forum: C++ Development
Topic: How to catch a left click on a wxSlider thumb
Replies: 8
Views: 506

Re: How to catch a left click on a wxSlider thumb

Just to confirm that as Kvaz1r stated, the solution with Bind works well.
Of course, two methods are necessary to catch both
wxCommandEvent and wxMouseEvent.
Moral of the story: don't use event tables ;-)
Many thanks for the helps,

Pascal
by bertolino
Sat Oct 27, 2018 11:08 am
Forum: C++ Development
Topic: How to catch a left click on a wxSlider thumb
Replies: 8
Views: 506

Re: How to catch a left click on a wxSlider thumb

Hello Kvaz1r,

Many thanks for your valuable help and piece of code.
I'm going to replace the macro with a call to Bind.
Then I 'll just have to adapt the code to manage my slider range.
Many thanks again for your time,

Pascal
by bertolino
Sat Oct 27, 2018 10:52 am
Forum: C++ Development
Topic: How to catch a left click on a wxSlider thumb
Replies: 8
Views: 506

Re: How to catch a left click on a wxSlider thumb

I have double-ckecked and still have the same issue. To be more precise: I have several sliders, so I use the range macro (this could be the problem): EVT_COMMAND_RANGE(ID_SLIDER, ID_SLIDER + MAX_PARAM_COUNT, wxEVT_LEFT_DOWN, Effects::OnSlider) I've tried the 2 following OnSlider implementations: (1...
by bertolino
Sat Oct 27, 2018 9:24 am
Forum: C++ Development
Topic: How to catch a left click on a wxSlider thumb
Replies: 8
Views: 506

How to catch a left click on a wxSlider thumb

Hi all,

I'd like to detect a left mouse click on a wxSlider thumb (hence the slider value is not changed).
But there is no counterpart to wxEVT_SCROLL_THUMBRELEASE and mouse events are not available
for a wxSlider.
Any help will be welcome.

Regards,
Pascal
by bertolino
Sat Aug 04, 2018 8:02 pm
Forum: C++ Development
Topic: Transparent brush with wxGraphicsContext
Replies: 1
Views: 277

Re: Transparent brush with wxGraphicsContext

I kind of solved my issue. The fact is that my bitmap was not managing transparency (i.e. the alpha channel). So, I tried to initialize it from a PNG file (that manages transparency) and the code works great. I did it with: bitmap= wxXmlResource::Get()->LoadBitmap(wxT("bitmap_in_png_file")); Now I j...
by bertolino
Sat Aug 04, 2018 5:44 pm
Forum: C++ Development
Topic: Transparent brush with wxGraphicsContext
Replies: 1
Views: 277

Transparent brush with wxGraphicsContext

Hello, I'm using a wxGraphicsContext to make some anti-aliased drawing in a bitmap. I want to draw a kind of donut with the hole and the outside transparent. All I can have is a donut with a black hole and a black outside. :-( Here is my code (obviously, using the transparent brush is not the thing ...
by bertolino
Fri Jul 20, 2018 7:42 pm
Forum: Component Writing
Topic: Question about skinned wxMessageBox
Replies: 7
Views: 1720

Re: Question about skinned wxMessageBox

Wow! I missed that (but you didn't!).
Only 2 lines to change and it works great!
Doublemax, you're the best and saved my evening.
I am very grateful for your valuable help.
Have a very good weekend!

Pascal