Results 1 to 2 of 2

Thread: Creating a tool tip

  1. #1
    cbl016 is offline Junior Member
    Join Date
    Oct 2007
    Posts
    9
    Rep Power
    7

    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
    JoshuaPrismon is offline Zimlet Guru & Moderator
    Join Date
    Nov 2005
    Posts
    477
    Rep Power
    9

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 12
    Last Post: 05-03-2008, 11:44 AM
  2. Migration tool in 4.5.7?
    By misleb in forum Migration
    Replies: 1
    Last Post: 10-22-2007, 12: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, 09:36 AM
  4. [SOLVED] Simple backup question...
    By dameron in forum Administrators
    Replies: 3
    Last Post: 08-25-2007, 09: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
  •