Hints show at the wrong position

Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #69387
    HeDiBo
    Participant

    Have a look at the screen capture below. It shows the MegaDemo with hints on the wrong place.
    The radiogroup “Kind of hints” is clocked first, to make sure it has focus. Then the cursor is moved to hoover over “Disabled Edit” control. The hint comes at the previous mouse position.

    Attachments:
    You must be logged in to view attached files.
    #69403
    Support
    Keymaster

    I see it, thanks.
    This issue will be solved in the nearest release.

    #69439
    HeDiBo
    Participant

    Not solved in 15.15

    #69502
    Support
    Keymaster

    Are you sure? This issue is repeated in the latest AMegaDemo.exe?

    #69517
    HeDiBo
    Participant

    I still had it in my own project. In AMegaDemo I could not repeat it. However, if I repeat the actions from the Gif in the new AMegoDemo, I have no problem getting to a state where the two hints on disabled controls don’t show at all.

    #69543
    Support
    Keymaster

    >> the two hints on disabled controls don’t show at all.

    I saw it, this issue will be solved in the nearest release.

    #69556
    HeDiBo
    Participant

    I have another situation where Hints appear at the wrong place: hints for column headers in a TcxGrid. Attached a GIF that shows it. It is always wrong, not related to HandleDisabledCtrls

    • This reply was modified 4 years, 1 month ago by HeDiBo.
    Attachments:
    You must be logged in to view attached files.
    #69568
    Support
    Keymaster

    You should disable the AutoAlignment property in this case, because hint window is aligned to the control bottom/center in this case.

    #69575
    HeDiBo
    Participant

    I would do that, if the AutoAlignment property could be set on an individual basis. But I like it almost everywhere, except here.
    I think you should come up with a better solution.

    Even if AutoAlignment is off, the hints are still in the wrong place for grid headers. Have a look at the video. As you can see, the hint covers the header field completely.

    Attachments:
    You must be logged in to view attached files.
    #69583
    Support
    Keymaster

    Coordinates and size of the hint window is defined by the DevExpress engine.
    If TsAlphaHints component is not active, standard hints will be shown at the same place.
    TsAlphaHints can’t control it there because hasn’t any information about the column header position.

    #69584
    HeDiBo
    Participant

    About the cxGrid: you’re right. I didn’t know that.
    However the AutoAlignment setting is still a problem. And since you’re saying that the coordinates of the hint window are determined by cxGrid, the AutoAlignment problem could be solved, I think.

    #69585
    HeDiBo
    Participant

    In order to get the hints on headers in cxGrid on the right position, you need to define a TcxHintStyleController and do some manipulations in its OnShowHint event.
    Unfortunately, if SkinManager is active, that code is not executed.

    Enclosed is a sample project.
    If you remove the TsSkinManager, TsSkinProvider and the TsAlphaHints components, the OnShowHint event is called and the hint is shown at the right position. As it is, the OnShowHint event is not called.

    Attachments:
    You must be logged in to view attached files.
    #69615
    Support
    Keymaster

    Thank you for sample, I will check it.

    #69650
    HeDiBo
    Participant

    In AC 15.16 the hints are positioned OK, but now they are not skinned anymore 😢

    #69666
    HeDiBo
    Participant

    I still think you should come up with a solution for the placement of hints on grid headers with AutoAlignment set to True. Maybe don’t honor it if the hint is for a grid header?

    #69680
    Support
    Keymaster

    When hint is shown there, I have information about the control, but not about the cell or header which call the hint.

    #69687
    HeDiBo
    Participant

    I don’t know about that. All I know is that it’s unacceptable this way.

    #69688
    HeDiBo
    Participant

    Maybe as a last resort you could make a new TsHintStyleController that inherits from TcxHintStyleController. That’s a good idea anyway, because if a TcxHintStyleController is present, hints are not skinned at all.

    #69712
    Support
    Keymaster

    I hope to find solution for positioning in the nearest release.
    But, TcxHintStyleController should be removed, otherwise hints will not be skinned.

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