- This topic has 25 replies, 2 voices, and was last updated 7 years, 9 months ago by HeDiBo.
-
AuthorPosts
-
June 27, 2016 at 2:49 pm #37028HeDiBoParticipant
I would like to make a hint looking like a legend.
Something like this:
[attachment=7753:IconsInHint.jpg]
Is that possible?
July 2, 2016 at 7:04 am #55221SupportKeymasterHello!
We have several ways to do it:
1) Make a frame with any graphic controls and place this frame into the hint window.
Example may be found in this demo: http://www.alphaskins.com/sfiles/demos/alphahints.zip
2) Paint in the hint window directly using the TsAlphaHints.OnPaint event.
If you need I can make a special demo for you, but time is required.
July 2, 2016 at 11:30 am #55236HeDiBoParticipant'Support' wrote:Hello!
We have several ways to do it:
1) Make a frame with any graphic controls and place this frame into the hint window.
Example may be found in this demo: http://www.alphaskin…/alphahints.zip
2) Paint in the hint window directly using the TsAlphaHints.OnPaint event.
If you need I can make a special demo for you, but time is required.
If I understand correctly, you create a special TFrame containing the information as a bitmap. Then you set the OnShowHint event in the TsAlphaHint control. In the event procedure you show the frame, if the hint control is the right one.
Although that will work, you will not see any Hint skinning any more.
My question was to generate a hint fully skinned, but with small images on certain points in the text. Is that possible?
Thank you for your efforts so far :a7:
July 2, 2016 at 2:22 pm #55241SupportKeymasterBefore showing of hint the OnShowHint event called.
You can create and initialize the own frame with some information in this event.
Frame will not be painted on the hint window, visible controls will be shown only.
So, you can place any images and labels on this frame, initialize them and they will be shown on the hint window.
Otherwise, you can output any own information on the skinned hint window with using of the OnPaint event.
July 3, 2016 at 4:09 pm #55245HeDiBoParticipant'Support' wrote:Before showing of hint the OnShowHint event called.
You can create and initialize the own frame with some information in this event.
Frame will not be painted on the hint window, visible controls will be shown only.
So, you can place any images and labels on this frame, initialize them and they will be shown on the hint window.
Otherwise, you can output any own information on the skinned hint window with using of the OnPaint event.
Thanks for your info. I have it working now.
But the pictures in the frame will not show with the right transparency.
If the frame is used on a normal form, the transparency is OK.
If the frame is created on the fly in the OnShowHint event, the transparency is not very good.
For your info, this is the frame: [attachment=7760:HintFrame.rar]
The icons are 8 bit gray scale with an alpha channel transparency.
July 10, 2016 at 10:24 am #55284SupportKeymasterThank you, I see and I will improve it soon.
July 10, 2016 at 10:40 am #55285HeDiBoParticipant'Support' wrote:Thank you, I see and I will improve it soon.
That's great!
The application is very near to delivery. Can you give an indication of the time frame to improve this?
July 10, 2016 at 12:37 pm #55286SupportKeymasterI'll try to solve it at the nearest days.
July 12, 2016 at 10:07 am #55288SupportKeymasterTry patched files which were sent via PM here.
July 12, 2016 at 3:38 pm #55297HeDiBoParticipant'Support' wrote:Try patched files which were sent via PM here.
Unfortunately it does not work.
This is the result with the frame uploaded earlier:
[attachment=7774:HintImages.jpg]
July 12, 2016 at 4:07 pm #55299SupportKeymasterThe Transparent property of images is True?
July 12, 2016 at 4:20 pm #55300HeDiBoParticipant'Support' wrote:The Transparent property of images is True?
If the png image uses an alpha channel, that should not matter, should it?
With Transparent property on for all three icons, this is the result (it's even worse}:
[attachment=7775:HintImagesTransparent.jpg]
July 12, 2016 at 7:36 pm #55301SupportKeymasterCan you make a demo, please?
July 13, 2016 at 10:41 am #55302HeDiBoParticipant'Support' wrote:Can you make a demo, please?
I use a datamodule that registers the hints.
This is the demo with very simplified units. It shows the same wrong behavior as it does in my application.
[attachment=7776:acIconsHint.zip]
July 13, 2016 at 5:05 pm #55303SupportKeymasterThank you, I will research it now.
July 13, 2016 at 9:21 pm #55304SupportKeymasterI have sent the new path by PM, try it, please.
July 14, 2016 at 10:31 am #55305HeDiBoParticipant'Support' wrote:I have sent the new path by PM, try it, please.
Now even the setting for Transparent doesn't matter anymore. This bug fix did the trick. Thank you! :a7:
July 26, 2016 at 1:26 pm #55356HeDiBoParticipant'HeDiBo' wrote:Now even the setting for Transparent doesn't matter anymore. This bug fix did the trick. Thank you! :a7:
Unfortunately, AC 11.11 reintroduces another failure.
Look at this picture:
[attachment=7792:HintIconTransparency.jpg]
Notice that the little square (at the left side of the last line) is not transparent any more!
To test this yourself, use the Earlier Test Project
July 26, 2016 at 7:28 pm #55358SupportKeymasterI confirm it and I will fix it in the 11.12 version.
August 13, 2016 at 3:58 pm #55438HeDiBoParticipant'Support' wrote:I confirm it and I will fix it in the 11.12 version.
It's not fixed in 11.12😡
-
AuthorPosts
- You must be logged in to reply to this topic.