OLE controls and insertable objects – PB Docs 120
OLE controls and insertable objects The OLE control contains an insertable OLE object. You can change the object in the control in the painter or in a script. You specify what is allowed in the control by setting PowerBuilder properties. Setting up the OLE control When you create an OLE control and insert an object,…
Building a style from scratch – PB Docs 120
Building a style from scratch Once you understand how form styles work, you can build one from scratch. To build a form style from scratch: Create a new window. Place a DataWindow control in the window. In the Properties view for the control, name the control using one of the special names. For the list…
Delivering your application to end users – PB Docs 120
Delivering your application to end users When you deliver the executable version of your application to users, you need to install all of the various files and programs in the right places, such as on their computers or on the network. Automating the deployment process If you want to automate the deployment process, you might…
Building an MDI frame window – PB Docs 120
Building an MDI frame window When you create a new window in PowerBuilder, its default window type is Main. Select mdi! or mdihelp! on the General property page to change the window to an MDI frame window. Using menus When you change the window type to MDI, you must associate a menu with the frame….
Identifying the dragged control – PB Docs 120
Identifying the dragged control To identify the type of control that was dropped, use the source argument of the DragDrop event. This script for the DragDrop event in a picture declares two variables, then determines the type of object that was dropped:
1 |
CommandButton lcb_button |
1 |
StaticText lst_info |
1 |
1 |
IF source.TypeOf() = CommandButton! THEN |
1 |
lcb_button = source |
1 |
lcb_button.Text = "You dropped a Button!" |
1 |
ELSEIF source.TypeOf() = StaticText! THEN |
1 |
lst_info = source |
1 |
lst_info.Text = "You dropped the text!" |
1 |
END IF<i></i> |
Using CHOOSE CASE If your window has a large number of controls…
Customizing the Tab control – PB Docs 120
Customizing the Tab control The Tab control has settings for controlling the position and appearance of the tabs. Each tab can have its own label, picture, and background color. All tabs share the same font settings, which you set on the Tab control’s Font property page. Pop-up menus and property sheets for Tab controls and…
Using graphs – PB Docs 120
Using graphs In PowerBuilder, there are two ways to display graphs: In a DataWindow, using data retrieved from the DataWindow data source In a graph control in a window or user object, using data supplied by your application code This chapter discusses the graph control and describes how your application code can supply data for…
Language Techniques – PB Docs 120
Language Techniques This part presents a collection of programming techniques you can use to take advantage of PowerBuilder object-oriented features and PowerScript® language elements, including the ClassDefinition object. Document get from Powerbuilder help Thank you for watching.
Printing a job – PB Docs 120
Printing a job PrintOpen must be the first function call in every print job. The PrintOpen function defines a new blank page in memory, specifies that all printing be done in the printer’s default font, and returns an integer. The integer is the print job number that is used to identify the job in all…
Printing data – PB Docs 120
Printing data You can use a DataStore to print data on a remote server if the server is running on Windows or Solaris. Platform note The following example would not work on HP-UX or AIX. On these platforms, EAServer uses a windows-free version of the PowerBuilder runtime environment that does not provide support for graphical…