hintmanager hint position

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #32782
    ronel11
    Participant

    what is the format of TsMousePosition?
    Form1.sHintManager1.DefaultMousePos := TsMousePosition;
    I dont know if it's the right code but i want to show the hint in the mouse positon. Using

    TComboItemHint = Class(THintWindow)
    pt := Mouse.CursorPos;
    r:= Rect(pt.X + 16 ,pt.Y + 16,pt.X + 100, pt.Y + 32);
    hw : TComboItemHint;
    hw.ActivateHint(r,Text);

    is ok but no skin, its only display the default hint style. how can i control the position where hint show in Tshintmanager. its only have sHintManager1.ShowHint(TControl,HintText)

    please see attach files. i want to do like this using TsHintManager..
    any help..
    Thank You…

    #39954
    ronel11
    Participant

    Pls help, how can i add Trect in tshintmanager

    Pls see atachment 2, i want to show the tsHintmanager in the position of the default hint

    #39956
    ronel11
    Participant

    Ok, I solve It <img src="style_emoticons//smile.gif” style=”vertical-align:middle” emoid=”:)” border=”0″ alt=”smile.gif” />

    #39967
    Support
    Keymaster

    Hello
    You can check also your inbox, a letter with other solution was sent there. Maybe this solution will be more universal.

    #39985
    HeDiBo
    Participant

    QUOTE (Support @ Jul 17 2009, 09:35 AM)
    Hello
    You can check also your inbox, a letter with other solution was sent there. Maybe this solution will be more universal.

    By publishing solutions here in the forum, the forum is more useful. So, can you do that? <img src="style_emoticons//unsure.gif” style=”vertical-align:middle” emoid=”:???:” border=”0″ alt=”unsure.gif” />

    #40050
    Support
    Keymaster

    Yes, I can paste this letter there :

    QUOTE
    TsMousePosition = (mpLeftTop, mpLeftBottom, mpRightTop, mpRightBottom);
    It's not the TPoint. This type shows a position of the mouse near hint.
    For more universal hint creation try to use HintWindowClass instead THintWindow, something like that :

    type
    TComboItemHint = Class(THintWindow);


    hw := TComboItemHint(HintWindowClass.Create(Application));

    hw.ActivateHint(r,Text);

    Hints will be skinned in this case if sHintManager used.

    Just this letter was sent before my visiting of forum.

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