Jump to content

Recommended Posts

Posted

I have set a UniPanel.Title text and would like to show a hint when someone mouses over the title.

How can I enable a hint to be visible?

Posted
4 minutes ago, mos said:

Anywhere in  the title bar area.

One possible solution:

function afterrender(sender, eOpts)
{
    new Ext.tip.ToolTip({
        target: sender.header,
        html: '<b>H</b>int...'
    });
}

 

Posted
1 hour ago, MOGSY said:

How can the hint be changed dynamically?

1. 

function afterrender(sender, eOpts)
{
    if (sender.header) {
        sender.headerTip = new Ext.tip.ToolTip({
            target: sender.header,
            html: '<b>H</b>int...'
        });
    }
}

2. 

procedure TMainForm.UniButton1Click(Sender: TObject);
begin
  UniPanel1.JSInterface.JSCall('headerTip.setHtml', ['New hint'])
end;

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...