Results 1 to 2 of 2

Thread: Creating a tool tip

  1. #1
    Join Date
    Oct 2007
    Posts
    9
    Rep Power
    8

    Default Creating a tool tip

    I would like to have a tool tip pop up when a panel item is clicked. Can someone please show me how to do this. The code I have so far is

    Zimlet_Name.prototype.singleClicked = function() {
    var toolTip = new DwtToolTip(this.getShell());
    toolTip.setContent('Here is some text');
    toolTip.popup();
    }

    When I click on the panel item I get 2 errors.

    1. "Error in parsing value for property 'left'. Declaration dropped."
    2. "Error in parsing value for property 'top'. Declaration dropped."

    I assume I need to set these properties somehow but I don't know where.

  2. #2
    Join Date
    Nov 2005
    Posts
    477
    Rep Power
    10

    Default

    Quote Originally Posted by cbl016 View Post
    I would like to have a tool tip pop up when a panel item is clicked. Can someone please show me how to do this. The code I have so far is

    Zimlet_Name.prototype.singleClicked = function() {
    var toolTip = new DwtToolTip(this.getShell());
    toolTip.setContent('Here is some text');
    toolTip.popup();
    }

    When I click on the panel item I get 2 errors.

    1. "Error in parsing value for property 'left'. Declaration dropped."
    2. "Error in parsing value for property 'top'. Declaration dropped."

    I assume I need to set these properties somehow but I don't know where.
    There is a existing method (tooltipPoppedUp IIRC - I need to double check the code) that you can override to handle when tooltip messages are poped up.Take a look at ZmZimletBase.js.

Similar Threads

  1. Replies: 12
    Last Post: 05-03-2008, 12:44 PM
  2. Migration tool in 4.5.7?
    By misleb in forum Migration
    Replies: 1
    Last Post: 10-22-2007, 01:20 PM
  3. 4.0.4 to 4.5.6 upgrade failed in network edition
    By chenthil in forum Administrators
    Replies: 1
    Last Post: 08-27-2007, 10:36 AM
  4. [SOLVED] Simple backup question...
    By dameron in forum Administrators
    Replies: 3
    Last Post: 08-25-2007, 10:36 PM
  5. Problems with Wiki / Documents on OSX/PPC
    By GadgetGuru in forum Installation
    Replies: 5
    Last Post: 11-30-2006, 09:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •