LoadItems

>>-aUserDialog~LoadItems(--resFile------------------------------>

>--+------------------------------------------------------+----->
   +-,--+----------+--+---------------------------------+-+
        +-dialogId-+  |       .--------------------.    |
                      |       V                    |    |
                      +-,--"----+-CONNECTBUTTONS-+-+--"-+
                                +-CONNECTRADIOS--+
                                +-CONNECTCHECKS--+

>--)-----------------------------------------------------------><


The LoadItems method creates the dialog items, using the data of the given resource script. It is either called by the Load method, or it can be used in the context of a category dialog.

Protected:

This method cannot be called from outside the class.

Arguments:

See Load for a description.

Example:

In the following example the dialog is created either with the items of dialog 200 or dialog 300, depending on the argument:

::class MyDialog subclass UserDialog
      .
      .
      .
::method Load
   use arg view
   self~LoadFrame("Dialog2.rc", 200, "CENTER", 200)
   if view="special" then
      self~LoadItems("Dialog2.rc", 200, "CONNECTBUTTONS")
   else
      self~LoadItems("Dialog2.rc", 300, "CONNECTBUTTONS")