Hint with multiple icons?

Viewing 20 posts - 1 through 20 (of 26 total)
  • Author
    Posts
  • #37028
    HeDiBo
    Participant

    I would like to make a hint looking like a legend.

    Something like this:

    [attachment=7753:IconsInHint.jpg]

    Is that possible?

    #55221
    Support
    Keymaster

    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.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.

    #55236
    HeDiBo
    Participant
    '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:

    #55241
    Support
    Keymaster

    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.

    #55245
    HeDiBo
    Participant
    '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.

    #55284
    Support
    Keymaster

    Thank you, I see and I will improve it soon.

    #55285
    HeDiBo
    Participant
    '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?

    #55286
    Support
    Keymaster

    I'll try to solve it at the nearest days.

    #55288
    Support
    Keymaster

    Try patched files which were sent via PM here.

    #55297
    HeDiBo
    Participant
    '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]

    #55299
    Support
    Keymaster

    The Transparent property of images is True?

    #55300
    HeDiBo
    Participant
    '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]

    #55301
    Support
    Keymaster

    Can you make a demo, please?

    #55302
    HeDiBo
    Participant
    '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]

    #55303
    Support
    Keymaster

    Thank you, I will research it now.

    #55304
    Support
    Keymaster

    I have sent the new path by PM, try it, please.

    #55305
    HeDiBo
    Participant
    '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:

    #55356
    HeDiBo
    Participant
    '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

    #55358
    Support
    Keymaster

    I confirm it and I will fix it in the 11.12 version.

    #55438
    HeDiBo
    Participant
    'Support' wrote:

    I confirm it and I will fix it in the 11.12 version.

    It's not fixed in 11.12😡

Viewing 20 posts - 1 through 20 (of 26 total)
  • You must be logged in to reply to this topic.