Tooltip in one program is colored and has icon, in the other gray and has not icon

Discussions related to Visual Prolog
User avatar
Ferenc Nagy
VIP Member
Posts: 289
Joined: 24 Apr 2007 12:26

Tooltip in one program is colored and has icon, in the other gray and has not icon

Unread post by Ferenc Nagy » 3 Nov 2014 11:42

I have copied a form from one project to another. I have copied the icons, too. The tooltips, including the ones with built-in icons have changed. Why?
Attachments
Custom1.png
Project#1 Custom icon is present. The title is blue.
Custom1.png (16.33 KiB) Viewed 2470 times
Custom2.png
Project#2 Custom icon is missing. The title is gray.
Custom2.png (8.51 KiB) Viewed 2470 times
Standard1.png
Project#1 Built-in icon is present. The title is blue.
Standard1.png (16.41 KiB) Viewed 2470 times
Standard2.png
Project#2 Built-in icon is missing. The title is gray.
Standard2.png (7.31 KiB) Viewed 2470 times
TIA, Regards,
Frank Nagy

User avatar
Thomas Linder Puls
VIP Member
Posts: 1622
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls » 3 Nov 2014 13:20

If you take a second look you may also notice that all other controls also looks different. Project#2 uses "legacy" common controls; Project#1 uses common controls v. 6. To use common controls v.6 (which you definitely should) you have to add a manifest file to the project and turn-on common controls v.6 in that file.

The IDE can one automatically: Project Settings... -> Build Options.
Regards Thomas Linder Puls
PDC

User avatar
Ferenc Nagy
VIP Member
Posts: 289
Joined: 24 Apr 2007 12:26

Successful correction

Unread post by Ferenc Nagy » 3 Nov 2014 13:44

Thank you, Thomas. I understand the reason of the difference. I created Project#1 from scratch under VP 7.5. I upgraded Project#2 from VP 7.4.
TIA, Regards,
Frank Nagy

User avatar
Jan de Lint
VIP Member
Posts: 107
Joined: 6 Mar 2000 0:01

Unread post by Jan de Lint » 7 Nov 2014 10:45

Interesting...
What else do I need?
Do I need to copy a manifest file into the project?
]an
Attachments
manifest.PNG
manifest.PNG (2.19 KiB) Viewed 2376 times

User avatar
Thomas Linder Puls
VIP Member
Posts: 1622
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls » 7 Nov 2014 18:33

Normally you don't need to do anything else. I guess you ask because it didn't work. Try:
  • Switch it off (again)
  • (Maybe delete the manifest file from the disk).
  • Close the dialog and build the project
  • Switch it on (again)
  • Close the dialog and build the project
If that doesn't help you(/we) may need to examine the project file.
Regards Thomas Linder Puls
PDC

User avatar
Jan de Lint
VIP Member
Posts: 107
Joined: 6 Mar 2000 0:01

Unread post by Jan de Lint » 8 Nov 2014 8:56

Thanks, I think it works.
I see the manifest file come and go.
Only the result is not as spectacular as I had expected.
]an

User avatar
Thomas Linder Puls
VIP Member
Posts: 1622
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls » 8 Nov 2014 15:08

The old controls looks quite similar on all versions of Windows, but the new ones are theme aware.

If you choose the "Classic" theme all controls will look "old", i.e. both the old and the new ones.

On older operating systems the themes and theme related styles can make the new and the old controls look nearly identical.

So you may try changing theme and/or style settings.

The image shows Windows 7 buttons to the left and windows 8.1 buttons to the right. The lower buttons are 200% scaled copies of the upper ones. If you had created them in that size the font and corners would have looked better. I think the difference in font smoothing is caused by the Windows 7 image being captured from a remote desktop connection. When used non-remote I believe it will have the same smoothing.

Anyway, it quite clearly shows that currently it swings towards fewer effects.
Attachments
theme.png
Buttons Window 7 and 8.1
theme.png (5.68 KiB) Viewed 2315 times
Regards Thomas Linder Puls
PDC

User avatar
Jan de Lint
VIP Member
Posts: 107
Joined: 6 Mar 2000 0:01

Unread post by Jan de Lint » 9 Nov 2014 19:09

Yes, that explains it all. I use 8.1
I suppose we would have to turn the program into a windows app to get a more appealing look.
]an

Post Reply