resAppl macro when using images

Using images in Dynamics AX can sometimes be a painful experience, just keeping track of the Integer that represents the images is almost impossible. But with a macro called resAppl this becomes much easier, mainly because you, most of the time, can guess what commands to use to get the image you want. This makes it easier to remember between times you are going to use it, and above all it makes your code much easier to read and follow.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  static void FO_ resAppl (Args _args)
  {
      #resAppl
      ;
 
      // Commonly used in forms
 
      print #ImageWarning;
      print #ImageError;
      print #ImageInfo;
 
      pause;
 
      // Some more
 
      print #ImageEmployee;
      print #ImageQty;
      print #ImageOK;
 
      print #ImageEnum;
      print #ImageReal;
      print #ImageDate;
 
      // Some images from the toolbar
 
      print #ImageNew;
      print #ImageDelete;
      print #ImageAOT;
 
      pause;
 
  }

Last 5 posts in Development

Leave a Reply

Your email address will not be published. Required fields are marked *