Introduction to PowerBuilder

HomePrevious Lesson: Summary
Next Lesson: Window Painter - Exercises

Window Painter - Questions & Answers

Which control has Password property and what does it mean?

SingleLineEdit control has the Password property. When this property is set to true, the text entered into this control at run-time is displayed as stars (***) instead of the actual data. The actual value is available through program. This is useful when you don't want other people to watch the data while you type into the control.

Which control allows you to input multiple lines of text with different attributes such as bold, subscript, tabs, superscript, colors and so on?

RichTextEdit control

What does ExtendedSelect property mean and which control has that property?

Which of the following CommandButton attributes are allowed to change?

You can change Text, Name, Size of a CommandButton. You can't change Border, Background color, Font color of the CommandButton.

What advantage a PictureButton has over a CommandButton?

PictureButton allows you to display a picture along with the text on the button. You can also display text in multiple lines which is not possible in a CommandButton.

If there are ten CheckBoxes placed on a window, how many of them can you check off at any given time?

You can check off any number of Checkboxes.

If there are ten RadioButtons placed on a window, how many of them can you check off at any given time?

You can check off only one RadioButton at any time, unless you place some RadioButtons in a GroupBox control.

What is an accelerator key?

Accelerator key allows you to select a control using the keyboard instead of a mouse.

What is tab order?

Tab order specifies the order in which the focus moves from one control to another when the user presses the tab key.

Explain the Default, Cancel properties that are available for a CommandButton.

In a situation given below, how do you prevent the triggering of CommandButton's clicked event, when the user presses the Enter key.

Explain the behavior of a Response window.

A Response window doesn't allow you to do anything within the application except in the Response window until you close it.

What is a Code Table? Which controls have this property?

Code tables allow you to do translation. It allows you to display long names on the control while allowing you to save short names. Only EditMask control allows you defining CodeTables property.

There are few controls in a window whose visible property is  turned off because you don't want to display them at run-time. How do you make the hidden controls visible while you paint the window.

You need to turn on ShowInvisibles property by choosing 'Design > Show Invisibles' menu option.

How is a Drawing object such as circle, rectangle different from other controls such as CommandButton, StaticText, etc.?

Drawing objects do not have Drag and Drop related events. You can't write scripts for Drawing objects.

Which of the following controls allow multiple item selections?

ListBox, PictureListBox

Visually how do you recognize a CommandButton that has its Default property set.

CommandButtons that have Default property set have thick border.

How a Child window is different from a Popup Window?

A child window can't move outside its parent window where as a popup window can.

What is the behavioral difference when you open the Child window directly from another window?

What is the technique you use to display the accelerator key for a SingleLineEdit control?

You can't display the accelerator key for a SingleLineEdit control, even though you define one. To display the accelerator key, display the accelerator key to the StaticText control that is used for labeling the SingleLineEdit Control.

Which of the following statements is correct?

Only option 2 is correct.
HomePrevious Lesson: Summary
Next Lesson: Window Painter - Exercises