Forums: OpenMIDIProject forum (Thread #35517)

Sekaiju 4.0 English - Graphical bugs with tabbed dialogs (property sheets) (2014-06-02 04:22 by Bavi_H #73250)

Kuzu, thank you for Sekaiju. I like it very much.

When using Sekaiju 4.0 in English, some tabbed dialogs need two rows of tabs, but when you first open them, they incorrectly show one row of tabs. When you click on any tab, it switches to two rows of tabs, but then items at the bottom of the page get cut off.

I tested on Windows XP (1024 x 768) and Windows 8.1 (1600 x 900). For images, rnhart . net / sekaiju-4.0-tabbed-dialog.zip

When the system DPI is set to 96 dpi (100%), this happens with the "Options" dialog. After you click on any tab, then on the Event List tab, the bottom option is cut off. ("Enable short cut key Ctrl+'+''-' for Column zoom")

When the system DPI is set to 120 dpi (125%), this happens with the "MIDI Device and Instrument" dialog. After you click on any tab, the line for port 16 is cut off half way.

I think this happens because the property sheet uses a default font to calculate sizes, then the font is changed making the sizes wrong. I found some pages below that discuss this, but I don't understand all the code. I only have Visual Studio Express, so I can't test them out.

Prpfont.exe sample demonstrates how to set the desired font for your CPropertyPages in Visual C++
http://support.microsoft.com/kb/142170
(You can use 7-Zip to extract the contents from the exe file.)

Changing font of Property Sheet dialog
http://forums.codeguru.com/showthread.php?124935-Changing-font-of-Property-Sheet-dialog

How to change default font of PorpertySheet and its PropPages?
http://social.msdn.microsoft.com/Forums/vstudio/en-US/59b90b36-4e2b-4874-b57d-173e7ebeafbb/how-to-change-default-font-of-porpertysheet-and-its-proppages-?forum=vcgeneral

Reply to #73250×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

Re: Sekaiju 4.0 English - Graphical bugs with tabbed dialogs (property sheets) (2014-06-02 22:15 by kuzu #73261)

Thank you for very detailed bug report.
I'm testing now.
This bug will be fixed at the next release.
Thank you for your patience.
Reply to #73250

Reply to #73261×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

Re: Sekaiju 4.0 English - Graphical bugs with tabbed dialogs (property sheets) (2014-06-06 23:15 by kuzu #73324)

In Window MFC, property sheet and property page use system font forcibly, in spite of specifying the other font in the resource script(*.rc). So we must change the font manually in the source code. I've changed the font in OnInitDialog, but it is too late because all pages and controls are already created and sized along to the system font.

Microsoft's solution doesn't solve this probrem, because specifying font in OnInitDialog.
http://support.microsoft.com/kb/142170

The next solution overrides CPropertySheet::DoModal() and CPropertySheet::BuildPropPageArray().
http://forums.codeguru.com/showthread.php?124935-Changing-font-of-Property-Sheet-dialog
This is very good timing to change font, but this is an old way, perhaps for Visual C++ 6.0.
In Visual Studio 2008, this way causes error.

After all, I've found following solution works very well in Visual Stuido 2008.
http://www.codeguru.com/cpp/controls/propertysheet/previoussectionmanager/article.php/c16651/Custom-Font-in-Property-Sheets.htm
This also overrides CPropertySheet::DoModal() and CPropertySheet::BuildPropPageArray().

Today new Sekaiju4.1 has been released.
Please try Sekaiju4.1.
Thank you for a great information and contribution.

kuzu
Reply to #73250

Reply to #73324×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login