Using the components in CasualFrame


CasualFrame includes several reusable components, if you are not going to use CasualFrame as the frame of application, you can use the reusable components individually.

Document of these components are coded in the entries in cw_frame.pbl, please use CasualWriter to print it.

[application service] n_application -> u_application
The basic application service is coded in n_application, u_application is inherited from n_application as extension layer to code the special service for current application.
Recommend to declare a global variable "u_application app" and create it in the open event of application, then you can call the service like app.watch(testing)
PS: named with "app" instead of "gnv_app" as more readable purpose.

[Transaction Object] n_transaction -> u_transaction
The basic service is coded in n_transaction, u_transaction is inherited from n_transaction as extension layer to code the special service for current application.
Recommend to declare all transaction object include sqlca using u_transaction.

[Global Access Functions] n_function -> u_function
Because it is not recommend to use too many global function (function entry of pb), this object provide a collections of global access functions. You can enhance n_function with the function which will be useful for all application, and code the special global access functions in the extension layer.
Recommend to declare a global variable "u_function func" and create it in the open event of application, then you can call these function like func.iif( ls_flag, true, false).
PS: named with "func" instead of "gnv_func" as more readable purpose.

[Last Window Menu] n_lastwindow
Sometimes, we would like to list the information in the [File] section of main menu. Now, it will be a casual work to do it, please refer the description in n_lastwindow.open to get more info.

[Report Support] - w_preview, m_preview
w_preview and m_preview provide a solution for preview datawindow (report), to get more info., please refer to the description in w_preview and n_application.previewreport()

[Error Handling] - w_system_error
Provide four options while error happen - [Print] [LogtoFile] [Ignore] [Quit]
To use it, just code open(w_system_error) in the event systemerror of application

[Others]
w_about - AboutBox
w_cancel - cancel window for long process
w_progress - display a progress bar for long process (NEW)
w_menu_navigator - a treeview of menu navigator (NEW)
d_std_report - standard report layout
m_frame - frame menu (note that the menu items are named using the prefix of mm_)
m_sheet - sheet menu (note that the menu items are named using the prefix of ms_)

CasualFrame - Overview
Using CasualFrame
CasualWriter - Powerbuilder Document Utility

Download CasualWriter and CasualFrame (cw5p.zip,402k)



For any comment, please send e-mail to ckhung@geocities.com or casualwriter@bigfoot.com