>>-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.
This method is protected. It can only be used internally within a class method.
The arguments are:
The name of the resource file
The ID of the dialog. It can be omitted if there is just one dialog; otherwise it has to be specified.
The number of expected dialog items
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)