DataFlex Studio: Difference between revisions

From DataFlex Wiki
Jump to navigationJump to search
Jka (talk | contribs)
m updating current version
Jka (talk | contribs)
mNo edit summary
Line 10: Line 10:
[[Category:Stub]]
[[Category:Stub]]


'''Tips and Tricks'''


= Tips and tricks =


== Visual Modelling of multiple visual objects ==
== Visual Modelling of multiple visual objects ==
Line 25: Line 25:
  ...
  ...
  End_object
  End_object
<source>
</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

Revision as of 19:05, 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

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

''
 //***************************************************************************
 //*
 //* 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
''