LoadFrame

>>-aUserDialog~LoadFrame(--resfile------------------------------>

>--+-------------------------------------------------------+---->
   +-,--+----------+--+----------------------------------+-+
        +-dialogid-+  +-,--+----------+--+-------------+-+
                           +-"CENTER"-+  +-,--expected-+

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


The LoadFrame method creates the window frame using the data of the given dialog resource with dialogid in file resfile. It is usually called by the Load method.

Protected:

This method is protected. It can only be used internally within a class method.

Arguments:

The arguments are:

resfile

The name of the resource file

dialogid

The ID of the dialog. It can be omitted if there is just one dialog; otherwise it has to be specified.

expected

The number of expected dialog items

Example:

The following example overrides the Load method, so it loads the dialog window (just the frame) but not its contents:

::class WindowOnlyDialog subclass UserDialog
     .
     .
     .
::method Load
self~LoadFrame("Dialog2.rc", 100, "CENTER", 20)