DataFlex Studio: Difference between revisions

From DataFlex Wiki
Jump to navigationJump to search
No edit summary
Jka (talk | contribs)
m updating current version
Line 2: Line 2:




Current edition is 12.1
Current edition is visual dataflex stuido 2008


available from:
available from:
Line 20: Line 20:
I do it this way.
I do it this way.


<source lang="vdf">
  //Object Freddialog is a cmydbmodalpanelnomodel //uncomment to hide from modelling
  //Object Freddialog is a cmydbmodalpanelnomodel //uncomment to hide from modelling
  Object Freddialog is a cmybmodalpanel          //comment this line to hide from modelling
  Object Freddialog is a cmybmodalpanel          //comment this line to hide from modelling
  ...
  ...
  End_object
  End_object
<source>


and here's the class, the only important line being the { DesignerClass=None }  at the top
and here's the class, the only important line being the { DesignerClass=None }  at the top


<source lang="vdf">
''
''
  //***************************************************************************
  //***************************************************************************
Line 44: Line 47:
  End_Class // cMyDbModalPanel
  End_Class // cMyDbModalPanel
''
''
</source>

Revision as of 19:04, 8 June 2008

A set of tools that can be used for developing DataFlex applications.


Current edition is visual dataflex stuido 2008

available from:

http://www.dataaccess.com

Tips and Tricks


Visual Modelling of multiple visual objects

The VDF studio is geared towards handling source code with one main panel or dialog, and accordingly when the programmer switches to a visual represntation the Studio will display the first such object in the source file. However in some cases the programmer may find it useful to be able to include such items as password or other popup dialogs in the same source file as the main object. To allow the main object to be modelled and hide the 'lesser' objects, it is necessary to change the class of the popup objects to be non-modellable.

I do it this way.

 //Object Freddialog is a cmydbmodalpanelnomodel //uncomment to hide from modelling
 Object Freddialog is a cmybmodalpanel           //comment this line to hide from modelling
 ...
 End_object
<source>

and here's the class, the only important line being the { DesignerClass=None }  at the top

<source lang="vdf">
''
 //***************************************************************************
 //*
 //* Class:        cMyDbModalPanelnomodel
 //* Package Name: cMyDbModalPanelnomodel.pkg
 //* Use for password popups etc. This stops a popup being modelled in the Studio
 //  as otherwise the main panel isn't getting seen. Mostly used in Menus
 //*
 //***************************************************************************
 Use dfdbmdpn.pkg
 { DesignerClass=None } //Daves mod to stop this sneaking in and being modelled when  the meaty stuff is MUCH lower
 Class cMyDbModalPanelnoModel is a dbModalPanel
    Procedure Construct_object
        Forward Send Construct_Object
    End_Procedure
 End_Class // cMyDbModalPanel
''