AxAssist

Main Features Downloads Purchase Forum Support  

Features

Contents
  1. All contents

  2. 1. Dynamics AX AOT
  3. 2. Dynamics AX Editor
    1. 2.1. Suggestions
      1. 2.1.1. Variable list
      2. 2.1.2. Variable names list
      3. 2.1.3. Name Matching
      4. 2.1.4. Acronyms
      5. 2.1.5. User list
    2. 2.2 Browsing and navigation code
  4. 3. Hotkeys
  5. 4. Settings
  6. 5. Code reformatter
  7. 6. How to...
    1. 6.1. How to add new button on toolbar
    2. 6.2. How to add new hotkey
    3. 6.3. How to use your text as suggestion
      1. 6.3.1. In User list
      2. 6.3.2. In Acronyms list
    4. 6.4. How to customize tooltips
    5. 6.5. How to set up the auxiliary panel (HelpPane) in Dynamics AX Editor
    6. 6.6. How to start AxAssist after Dynamics AX startup
How to


How to customize tooltips

DEV_AxAssistTooltips class used for tooltip processing.

Description of the class DEV_AxAssistTooltips.
Methods:

Tooltips for classes:
static str getClassToolTip(DictClass dictClass, boolean isVariable);

Tooltips for extended data types (EDT):
static str getEDTToolTip(DictType dictType, boolean isVariable);

Tooltips for enums:
static str getEnumToolTip(DictEnum dictEnum, boolean isVariable);

Tooltip for enums (of type ItemType::Item):
static str getEnumValToolTip(DictEnum dictEnum, int idx);

Tooltip for table field:
static str getTableFieldToolTip(DictTable dictTable, DictField dictField);

Tooltip for tables, maps and views:
static str getTableToolTip(DictTable dictTable, boolean isVariable);

Each of methods return tooltip as string. To change tooltip it is necessary to change return value within corresponding method.

Variable isVariable is true, if tooltip is defined for variable, not for AOT element (e.g. class variable). For example, in this case it is usefully to show variable type, because it might be differ from variable name.
You can use some HTML tags to enrich tooltip representation. Have look into the sample:

Tooltip definition (returning value):

str strTip;
;
strTip += "<p align=right> Right" ;
strTip += "<p align=center> Center</center>" ;
strTip += "<b>bold</b><br>" ;
strTip += "<i>italic</i><br>" ;
strTip += "<u>underline</u><br>" ;
strTip += "<i><b>bold+italic</b></i>" ;
strTip += "<ul><li> FirstListItem<li> SecondListItem</ul>" ;
strTip += "<font color=#FF0000> red color</font><br>" ;
strTip += "<font color=#00FF00> green color</font><br>" ;

Tip: use <br> tag instead of “/r/n”.
Tooltip will be presented as shown below:

Take into account that if you change logic of tooltips then tooltips for «Name Matching» and «Acronyms» lists will be changed after reload Microsoft Dynamics AX client only. List «Variables list» refreshed dynamically, therefore all changes become active immediately.
Tip: use «Variables list» to play with tooltips.
© 2007 - 2008 - axassist.com