Surface frame problem - Advanced Installer Community
aleksandr.shtifanov
Posts: 20
Joined: Mon Jun 02, 2014 8:31 am

Surface frame problem

Hello AI team, i have a small problem.

I'm using Surface theme and trying to customize the border (mainly the caption).

"Use custom frame only if Aero Glass is not available" is not active.
And i was trying to follow this hint:
http://www.advancedinstaller.com/forums ... 599#p60100

What did i do:
1. i copied all frame images (from Caphyon\Advanced Installer 11.2.1\themes\common-res\frame\metroblack) to a separate folder (because i will repaint them)
(i don't think it's relevant, but still..)

2. i override (Themes -> Images) the properties to the new images.
it works fine.
img1.PNG
img1.PNG (35.24 KiB) Viewed 5290 times
3. i changed the image for the AI_CF_FrameCaption property to one from metroLime theme.
(just to check, that this changing of the image works as it should)
it works also fine (active - green, inactive - black).
img2.png
img2.png (47.05 KiB) Viewed 5290 times
4. Problem. I change (in Gimp if it's important) the image (only the color [RGB 139-168-212]), which is used for the AI_CF_FrameCaption property.
i have this in the result (see image). no frameCaption at all :( for both active/inactive windows.
no Close button visible, but i still can click on the upper right corner of the window (highlighted on an image) and there is (somewhere :) ) the X button.
img3.PNG
img3.PNG (68.32 KiB) Viewed 5290 times

Could you advise me something, to solve this?

I've also send the aip file and the image for the frameCaption i want to use to your email address.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Surface frame problem

Hello and welcome to Advanced Installer forums,

The solution presented by my colleague Daniel in this thread was to hide the related X button.
In order to suppress its functionality you need to delete the display a specific child dialog control event from the published events of the Cancel control.

Please use the following image for your reference:
CancelDlg.png
CancelDlg.png (81.28 KiB) Viewed 5276 times
So, when the user will click in that area nothing will happen. Please note that you need to delete this event from each dialog where it appears.

Please let me know if you have other questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
aleksandr.shtifanov
Posts: 20
Joined: Mon Jun 02, 2014 8:31 am

Re: Surface frame problem

Hm..my problem was not the X button. The question is, where is the frame's caption? I want just to change it's color, why it disappears?
aleksandr.shtifanov
Posts: 20
Joined: Mon Jun 02, 2014 8:31 am

Re: Surface frame problem

I would appreciate, if someone could help me
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Surface frame problem

Hi Aleksandr,

I replied the e-mail you sent, please see your Inbox.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Surface frame problem

For anyone else encountering similar problems, it seems GIMP or other free image editing tools are not compatible with the rendering engine.

In this thread for example GIMP vs Paint.NET both generated an image with the same bit depth but different in size (274 bytes vs 206 bytes). Also the .BMP image generated with GIMP doesn't seem to be recognized by the engine.

We recommend using Photoshop if there's a purchase choice, for any image customization.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
aleksandr.shtifanov
Posts: 20
Joined: Mon Jun 02, 2014 8:31 am

Re: Surface frame problem

wow, it's a miracle :)

Thank you for your help. it works.

P.s. if you change the original frame image with MS Paint, it works also fine.
P.p.s. other images (buttons, logos...), that are png, changed in Gimp, worked fine.

Return to “Common Problems”