Search found 54 matches

by bertolino
Mon Dec 21, 2020 9:35 pm
Forum: C++ Development
Topic: Chinese characters look bad
Replies: 0
Views: 314

Chinese characters look bad

Hi, In my multilingual application, text rendering is bad when it's in Chinese. In that particular case, the characters are poorly anti-aliased or not anti-aliased at all. Here is an example below (and in comparison the Cyrillic Russian version that is OK. All the other versions using Latin characte...
by bertolino
Thu Nov 26, 2020 2:13 pm
Forum: C++ Development
Topic: Focus notion and how to manage it?
Replies: 4
Views: 201

Re: Focus notion and how to manage it?

Many thanks, your explanations are clear.
I was not sure about all this, trying to understand why my code sometimes behaves oddly.
Have a good day!
by bertolino
Thu Nov 26, 2020 1:57 pm
Forum: C++ Development
Topic: Focus notion and how to manage it?
Replies: 4
Views: 201

Re: Focus notion and how to manage it?

Thanks Doublemax, it helps.
This brings me to another question: what causes a kill focus event?
I guess the fact that another window gets the focus? if so, is this only after a mouse click on it?
In other words, what makes a focus pass from one window to another?
Thanks!
by bertolino
Thu Nov 26, 2020 11:55 am
Forum: C++ Development
Topic: Focus notion and how to manage it?
Replies: 4
Views: 201

Focus notion and how to manage it?

Hi all, I am confused about focus notion / principle and how to handle it in my derived wx classes. I can't really find any satisfactory explanation about this. My questions are: What does it mean for a given wxWindow in relation to the mouse and the keyboard to have the focus? How should this focus...
by bertolino
Sat Aug 29, 2020 3:51 pm
Forum: Compiler / Linking / IDE Related
Topic: Why do I have to add casts in the code generated by wxrc?
Replies: 2
Views: 227

Re: Why do I have to add casts in the code generated by wxrc?

Thanks doublemax for your answer. I use Visual studio 2019 Pro (and I also had the problem with Visual Studio 2015) and its Microsoft compiler. Actually, your answer pushed me to really dig into the error message which is: 1>application_resources.h(1080,1): error C2664: 'bool wxXmlResource::LoadObje...
by bertolino
Sat Aug 29, 2020 1:28 pm
Forum: Compiler / Linking / IDE Related
Topic: Why do I have to add casts in the code generated by wxrc?
Replies: 2
Views: 227

Why do I have to add casts in the code generated by wxrc?

Hello all, I've been using wxrc to turn my resources into source files for many years. I call it like this: ./wxrc application_resources.xml -v -e -c -o application_resources.cpp As you know, wxrc creates a class for each resource like in the example below (application_resources.h): class bitmapLogo...
by bertolino
Wed Jun 24, 2020 7:39 am
Forum: C++ Development
Topic: wxLocale question
Replies: 4
Views: 407

Re: wxLocale question

Can't you just automate this and integrate into the build / create installer process
That's one solution I've been considering if I can't do it directly with wxLocale. But to me less straightforward than what I wanted. Thanks!
by bertolino
Wed Jun 24, 2020 6:59 am
Forum: C++ Development
Topic: wxLocale question
Replies: 4
Views: 407

Re: wxLocale question

Hi PB, thanks for your fast answer. Let me explain my practical reasons: I have to deal with 10 different languages that are often updated by a translation agency to which I must provide poedit files named en.po, es.po, etc. The agency returns me those po files that we "compile" to get mo files. The...
by bertolino
Wed Jun 24, 2020 6:12 am
Forum: C++ Development
Topic: wxLocale question
Replies: 4
Views: 407

wxLocale question

My multilinguale application uses wxLocale and everything works fine if my catalogues files are stored as follows (as shown in the internat example): Languages_folder en myapp.mo es myapp.mo fr myapp.mo For practical reasons, I'd prefer the following structure: Languages_folder en.mo es.mo fr.mo I c...
by bertolino
Thu Jan 16, 2020 10:23 am
Forum: C++ Development
Topic: Save multiple images as one file.
Replies: 3
Views: 465

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

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

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

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

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 393 times
by bertolino
Tue Nov 05, 2019 9:29 pm
Forum: Component Writing
Topic: Dark skinned application that flashes when started
Replies: 13
Views: 3969

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