Discussions related to Visual Prolog
User avatar
Ferenc Nagy
VIP Member
Posts: 215
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 »

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
Project#1 Custom icon is present. The title is blue.
Project#1 Custom icon is present. The title is blue.
Custom1.png (16.33 KiB) Viewed 8950 times
Project#2 Custom icon is missing. The title is gray.
Project#2 Custom icon is missing. The title is gray.
Custom2.png (8.51 KiB) Viewed 8950 times
Project#1 Built-in icon is present. The title is blue.
Project#1 Built-in icon is present. The title is blue.
Standard1.png (16.41 KiB) Viewed 8950 times
Project#2 Built-in icon is missing. The title is gray.
Project#2 Built-in icon is missing. The title is gray.
Standard2.png (7.31 KiB) Viewed 8950 times
TIA, Regards,
Frank Nagy
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

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: 215
Joined: 24 Apr 2007 12:26

Successful correction

Unread post by Ferenc Nagy »

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: 83
Joined: 6 Mar 2000 0:01

Unread post by Jan de Lint »

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 8856 times
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

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: 83
Joined: 6 Mar 2000 0:01

Unread post by Jan de Lint »

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: 1398
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

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
Buttons Window 7 and 8.1
Buttons Window 7 and 8.1
theme.png (5.68 KiB) Viewed 8795 times
Regards Thomas Linder Puls
PDC
User avatar
Jan de Lint
VIP Member
Posts: 83
Joined: 6 Mar 2000 0:01

Unread post by Jan de Lint »

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