At 11:43 AM 4/28/2009, Dan Goldberg wrote:
I am playing with the create object for the first time and have run into a couple of snags.I am creating a bit button that runs a form action when pressed. I have the code below running in the "after start eep" of the form. CREATEOBJECT bitbtn 'ceditunitbtn' 'RBASE_FORM' 345 525 96 41 SET VAR vquote = (CVAL('QUOTES')) SET VAR vcommand1 TEXT = + ('PROPERTY rbase_form_action editviewunit '&vquote&' '&vquote&';RETURN') PROPERTY ceditunitbtn 'Custom_EEP->OnClickEEP' .vcommand1 PROPERTY ceditunitbtn init true PROPERTY ceditunitbtn caption 'Edit/View a Unit' 1. It creates the button but when I click on the button the eep does not fire. 2. I am using the "one clear blue" theme. The bit button created above does not reflect the theme and looks different than my other buttons. I traced the eep and it does not give any errors when running. Any suggestions or help is greatly appreciated.
Dan, There are a few examples on your Super Advanced Training (SAT) sample applications that demonstrate the use of CREATEOBJECT & DELETEOBJECT commands to dynamically create or delete form objects on demand. 2009 SAT Sample Applications: http://www.rupdates.com/sat2009 Folder: \CreatingDynamicFormObjects Database: CDFO Forms: . CDFO_AsgnEEPAction (Dynamically Assigning EEP Actions) . CDFO_DBControls_01 (Creating Dynamic DB Form Objects as OASE) . CDFO_DBControls_02 (Creating Dynamic DB Controls) . CDFO_GroupBar (Creating Dynamic Group Bar with Items) . CDFO_MixControls (Creating Dynamic Mixture of All Controls) . CDFO_TreeView (Creating Dynamic TreeView with Nodes and Items) . CDFO_VARControls01 (Dynamic Variable Form Objects as OASE) . CDFO_VARControls02 (Dynamic Variable Form Objects as OFSE) Command File: CreatingDynamicFormObjects.DAT External Form File: AssigningEEPActions.rff Have fun! Very Best R:egards, Razzak.

