Added Ctl.as_Control and Menu.as_Menu methods, which take a resource as

argument and return a Control or Menu object.
This commit is contained in:
Jack Jansen 1999-02-07 14:02:03 +00:00
parent b0687899d7
commit e058189040
6 changed files with 52 additions and 0 deletions

View file

@ -3,6 +3,10 @@ f = Function(void, 'OpenDeskAcc',
)
functions.append(f)
f = Function(MenuHandle, 'as_Menu',
(Handle, 'h', InMode))
functions.append(f)
as_resource_body = """
return ResObj_New((Handle)_self->ob_itself);
"""