home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0040 - 0049 / ibm0040-0049 / ibm0040.tar / ibm0040 / ZINC_6.ZIP / DOSSRC.ZIP / D_CTRL4.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1991-06-01  |  768 b   |  22 lines

  1. //    Zinc Interface Library - D_CTRL4.CPP
  2. //    COPYRIGHT (C) 1990, 1991.  All Rights Reserved.
  3. //    Zinc Software Incorporated.  Pleasant Grove, Utah  USA
  4.  
  5. #include "ui_dsn.hpp"
  6. #include "d_help.hlh"
  7. #include <stdio.h>
  8.  
  9. void UI_DESIGN_MANAGER::ObjectControl(void *data, UI_EVENT &event)
  10. {
  11.     UIW_POP_UP_ITEM *item = (UIW_POP_UP_ITEM *)data;
  12.     UI_WINDOW_OBJECT *(*newFunction)(const char *name, UI_STORAGE *file, USHORT loadFlags);
  13.     UI_JUMP_LIST::_jumpList.GetFunction(item->DataGet(TRUE), &newFunction);
  14.     _currentObject = newFunction(0, 0, L_NO_FLAGS);
  15.     _currentObject->woAdvancedStatus |= WOAS_EDIT_MODE;
  16.     event.type = S_PLACE_OBJECT;
  17.     item->eventManager->Put(event, Q_BEGIN);
  18.     event.type = S_CLOSE_TEMPORARY;
  19.     item->eventManager->Put(event, Q_BEGIN);
  20. }
  21.  
  22.