home *** CD-ROM | disk | FTP | other *** search
-
- ΓòÉΓòÉΓòÉ 1. Picture Control Overview ΓòÉΓòÉΓòÉ
-
- Picture Control Overview
-
- The Guidelines picture control is designed to provide the same functionality as
- the standard PM button and bitmap/icon controls, but with the ability to
- display multiple images which may be animated or used to display different
- states.
-
- Select a topic from the following list for further information on the picture
- control:
-
- Γûá Picture Control Implementation
- Γûá Picture Control Settings
- Γûá Picture Control Reference
-
-
- ΓòÉΓòÉΓòÉ 2. Picture Control Implementation ΓòÉΓòÉΓòÉ
-
- Implementation
-
- The picture control is supplied as a Guidelines extension which is loaded when
- Guidelines is loaded.
-
- The picture control adds the Picture Control submenu to the Create menu and the
- picture button bitmap to the Controls Toolbar.
-
- A picture control is created by selecting one of the options from the Create:
- Picture Control submenu or by selecting the picture button bitmap from the
- Controls Toolbar.
-
- The picture control settings are changed using the Picture Control Details
- Dialog Box, which appears automatically when the control is created (if the
- Dialog on Create option is checked on the Options menu) or when you
- double-click, or press Enter on the control.
-
- The picture control may be created in one of the following styles:
-
- Γûá Picture button
- Γûá Animated button
- Γûá Multistate button
- Γûá Toggle button
- Γûá Set button
- Γûá Picture panel
-
-
- ΓòÉΓòÉΓòÉ 2.1. Picture Button ΓòÉΓòÉΓòÉ
-
- Picture Button
-
- Overview A picture button is similar to a push button control, with the
- additional capability of displaying images which are animated as the
- button is depressed.
-
- The button displays half of the images in its list on the downward
- movement and the other half on the upward movement. The images
- displayed on the picture button are taken from the resources allocated
- to the application.
-
- Toolbar Icon
-
- Remarks If it is desired to only display images on the control, leave the Text
- field empty in the Picture Control Details Dialog Box. or set the Text
- property to Null
-
- Properties Border, Elevation, Enabled, Fill, Height, ID, Index, Interval,
- LineWidth, MousePtr, NumPictures, NumStates, Owner, Parent, State,
- Text, Update, Visible, Width, XOffset, XPos, YOffset, YPos,
-
- Events Click
-
- Methods GetDrawMode, GetImage, SetDrawMode, SetImage
-
- Settings The picture button settings are changed using the Picture Control
- Details Dialog Box.
-
- Using the Control The picture button generates the Click event when clicked on
- using the mouse, or the keyboard.
-
- See Also animated button, multistate button, picture panel set button, toggle
- button,
-
-
- ΓòÉΓòÉΓòÉ 2.2. Animated Button ΓòÉΓòÉΓòÉ
-
- Animated Button
-
- Overview An animated button has the same functionality as the standard Picture
- Button, except that the images assigned to it are displayed in sequence
- without the button being pressed.
-
- Toolbar Icon
-
- Remarks The images displayed on the button are animated at the interval
- specified in the Picture Delay field in the Picture Control Details
- Dialog Box or by the Interval property. If this value is set to 0, the
- button does not animate automatically, but may be animated using the
- Index property.
-
- When the animated button is pressed, the button indents itself and
- continues to animate its images.
-
- Properties Border, Elevation, Enabled, Fill, Height, ID, Index, Interval,
- LineWidth, MousePtr, NumPictures, NumStates, Owner, Parent, State,
- Text, Update, Visible, Width, XOffset, XPos, YOffset, YPos,
-
- Events Click, State
-
- Methods GetDrawMode, GetImage, SetDrawMode, SetImage
-
- Settings The animated button settings are changed using the Picture Control
- Details Dialog Box.
-
- Using the Control The animated button generates the Click event when clicked on
- using the mouse, or the keyboard.
-
- When an image marked as a state is displayed, the animated button
- generates a State event.
-
- See Also multistate button, picture button, picture panel set button, toggle
- button,
-
-
- ΓòÉΓòÉΓòÉ 2.3. Multistate Button ΓòÉΓòÉΓòÉ
-
- Multistate Button
-
- Overview A multistate button behaves in a similar fashion to the standard auto
- check box and auto three-state check box, with the ability to be
- displayed in multiple states.
-
- Toolbar Icon
-
- Remarks A multistate button has as many states as are defined in the Pictures
- list box on the Picture Control Details Dialog Box. If there are two
- states defined, the behaviour is the same as the auto check box. If
- there are three states defined, the behaviour is the same as the auto
- three-state check box.
-
- Properties Border, Elevation, Enabled, Fill, Height, ID, Index, Interval,
- LineWidth, MousePtr, NumPictures, NumStates, Owner, Parent, State,
- Text, Update, Visible, Width, XOffset, XPos, YOffset, YPos,
-
- Events Click
-
- Methods GetDrawMode, GetImage, SetDrawMode, SetImage
-
- Settings The multistate button settings are changed using the Picture Control
- Details Dialog Box.
-
- Using the Control The multistate button displays the image for the current
- state. When it is pressed and released, the button moves on to the next
- image marked as a state. If there are non-state images between the
- state images, the button displays them in sequence, moving half-way
- along on the way down, and the rest of the way on the way up. When the
- new state is reached, a Click event is generated.
-
- When the multistate button is pressed again, it moves forward to the
- next state, or back to state 0, once the last image in the list is
- reached.
-
- See the Multistate Button Example for an example of using the
- multistate button as an automatic check box.
-
- See Also animated button, picture button, picture panel set button, toggle
- button,
-
-
- ΓòÉΓòÉΓòÉ 2.3.1. Multistate Button Example ΓòÉΓòÉΓòÉ
-
- Multistate Button Example
-
- A multistate button may be used to implement an automatic check box, by setting
- it up as follows:
-
- Γûá Add the resources required:
-
- Check0Up This is the image for the check box in the state 0 (unchecked) up
- position (chk0up.bmp)
- Check0Down This is the image for the check box in the state 0 (unchecked)
- down position (chk0down.bmp)
- Check1Up This is the image for the check box in the state 1 (checked) up
- position (chk1up.bmp)
- Check1Down This is the image for the check box in the state 1 (checked) down
- position (chk1down.bmp)
-
- Γûá Create a multistate button with the following styles:
-
- Γûá Text Outside Relief
- Γûá Text Alignment Right
- Γûá Border Width = 0
- Γûá Elevation = 0
-
- Γûá Select the following resources for the list of images:
-
- Γûá Check0Up (State)
- Γûá Check0Down
- Γûá Check1Up (State)
- Γûá Check1Down
-
- When this button is used, it will initially be unchecked (State = 0). When it
- is clicked, the image will appear to be depressed and will then be displayed as
- a checked box (State = 1). When the checked box is clicked, it will appear to
- be depressed and will then be redisplayed as an unchecked box (State = 0).
-
-
- ΓòÉΓòÉΓòÉ 2.4. Toggle Button ΓòÉΓòÉΓòÉ
-
- Toggle Button
-
- Overview Toggle buttons have two states, 'off' and 'on', the 'off' state
- represented by the first image in the controls image list, and the
- second by another image in the list with the state flag set. When a
- toggle button is clicked, it toggles itself between the 'on' state and
- the 'off' state. The toggle button remains pressed when it is 'on' and
- returns to the default position when its state changes to 'off'.
-
- Toolbar Icon
-
- Remarks A toggle button has as many states as are defined in the Pictures list
- box on the Picture Control Details Dialog Box. but it ignores any
- states beyond the first two.
-
- Properties Border, Elevation, Enabled, Fill, Height, ID, Index, Interval,
- LineWidth, MousePtr, NumPictures, NumStates, Owner, Parent, State,
- Text, Update, Visible, Width, XOffset, XPos, YOffset, YPos,
-
- Events Click
-
- Methods GetDrawMode, GetImage, SetDrawMode, SetImage
-
- Settings The toggle button settings are changed using the Picture Control
- Details Dialog Box.
-
- Using the Control
-
- When the toggle button is pressed, it moves to the down position. When
- it is released, the button remains in the down position and moves on to
- the next image marked as a state. If there are non-state images between
- the state images, the button displays them in sequence, moving half-way
- between the states while being pressed, and the rest of the way when
- released.
-
- When the new state is reached, a Click event is generated.
-
- When the toggle button is next pressed, it moves forward through the
- images until it reaches the end and then returns to state 0. Once back
- in state 0, the button is displayed in the up position.
-
- See Also animated button, multistate button, picture button, picture panel set
- button,
-
-
- ΓòÉΓòÉΓòÉ 2.5. Set Button ΓòÉΓòÉΓòÉ
-
- Set Button
-
- Overview A set button behaves in a similar fashion to the standard auto radio
- button control. Set buttons have two states: an 'off' state,
- represented by the default state, where the first image is displayed,
- and an 'on' state, represented by another image in the list with the
- state flag set.
-
- When a group (or 'set') of set buttons are created, only one button in
- the group may be 'on' at any one time. A set button automatically turns
- 'off' any other set button or radio button in the group when it is
- turned 'on'.
-
- Toolbar Icon
-
- Remarks A set button has as many states as are defined in the Pictures list box
- on the Picture Control Details Dialog Box, but it ignores any state
- beyond the first two.
-
- Properties Border, Elevation, Enabled, Fill, Height, ID, Index, Interval,
- LineWidth, MousePtr, NumPictures, NumStates, Owner, Parent, State,
- Text, Update, Visible, Width, XOffset, XPos, YOffset, YPos,
-
- Events Click
-
- Methods GetDrawMode, GetImage, SetDrawMode, SetImage
-
- Settings The set button settings are changed using the Picture Control Details
- Dialog Box.
-
- Using the Control The set button displays the image for the current state. When
- it is pressed and released, the button moves on to the next image
- marked as a state. If there are non-state images between the state
- images, the button displays them in sequence, moving half-way along on
- the way down, and the rest of the way on the way up.
-
- When the new state is reached, a Click event is generated.
-
- When the set button is pressed again, it remains in state 1, but
- displays the images forward to the end of the list when it is pressed
- and then back to state 1 when it is released.
-
- When a set button moves to state 1, it ensures that all other set
- buttons in the same control group are moved back to state 0. The set
- button works in conjunction with any standard radio buttons and will
- automatically uncheck them as appropriate.
-
- See the Set Button Example for an example of using the multistate
- button as an automatic radio button.
-
- See Also animated button, multistate button, picture button, picture panel
- toggle button,
-
-
- ΓòÉΓòÉΓòÉ 2.5.1. Set Button Example ΓòÉΓòÉΓòÉ
-
- Set Button Example
-
- A set button may be used to implement an automatic radio button, by setting it
- up as follows:
-
- Γûá Add the resources required:
-
- Radio0Up This is the image for the radio button in the state 0 (off) up
- position (radio0u.bmp)
- Radio0Down This is the image for the radio button in the state 0 (off) down
- position (radio0d.bmp)
- Radio1Up This is the image for the radio button in the state 1 (on) up
- position (radio1u.bmp)
- Radio1Down This is the image for the radio button in the state 1 (on) down
- position (radio1d.bmp)
-
- Γûá Create a set button with the following styles:
-
- Γûá Text Outside Relief
- Γûá Text Alignment Right
- Γûá Border Width = 0
- Γûá Elevation = 0
-
- Γûá Select the following resources for the list of images:
-
- Γûá Radio0Up (State)
- Γûá Radio0Down
- Γûá Radio1Up (State)
- Γûá Radio1Down
-
- When this button is used, it will initially be 'off' (State = 0). When it is
- clicked, the image will appear to be depressed and will then be displayed as an
- 'on' radio button (State = 1). When the radio button is clicked, it will appear
- to be depressed and will then be redisplayed as an 'on' radio button (State =
- 0).
-
- When the set button is turned 'on', any other set or radio buttons in the same
- group will be turned 'off'. Similarly, when any other set or radio button in
- the same group is turned 'on', this set button will be turned 'off'.
-
-
- ΓòÉΓòÉΓòÉ 2.6. Picture Panel ΓòÉΓòÉΓòÉ
-
- Picture Panel
-
- Overview A picture panel simply displays text or a set of images. This panel
- has no events for interaction with the user, but will generate the
- Change and State events as appropriate.
-
- Toolbar Icon
-
- Remarks The images displayed on the panel are animated at the interval
- specified in the Picture Delay field in the Picture Control Details
- Dialog Box or by the Interval property. If this value is set to 0, the
- panel does not animate automatically, but may be animated using the
- Index property.
-
- Properties Border, Elevation, Enabled, Fill, Height, ID, Index, Interval,
- LineWidth, MousePtr, NumPictures, NumStates, Owner, Parent, State,
- Text, Update, Visible, Width, XOffset, XPos, YOffset, YPos,
-
- Events Change, State
-
- Methods GetDrawMode, GetImage, SetDrawMode, SetImage
-
- Settings The picture panel settings are changed using the Picture Control
- Details Dialog Box.
-
- Using the Control The picture generates the Change event whenever the panel
- image changes, and a State event whenever the displayed image
- represents a state.
-
- The Index property may be used to change the displayed image, if it is
- not desired to use the picture control's own internal timer.
-
- See Also animated button, multistate button, picture button, set button, toggle
- button,
-
-
- ΓòÉΓòÉΓòÉ 2.7. Create: Picture Control Submenu ΓòÉΓòÉΓòÉ
-
- Create: Picture Control Sub-menu
-
- This submenu displays the list of picture control types which may be created
- using Guidelines.
-
- The following types are available:
-
- Γûá Picture button
- Γûá Animated button
- Γûá Multistate button
- Γûá Toggle button
- Γûá Set button
- Γûá Picture panel
-
-
- ΓòÉΓòÉΓòÉ 2.7.1. Create: Picture Control: Picture Button ΓòÉΓòÉΓòÉ
-
- Create: Picture Control: Picture Button
-
- Selecting this menu option allows you to create a picture button.
-
-
- ΓòÉΓòÉΓòÉ 2.7.2. Create: Picture Control: Animated Button ΓòÉΓòÉΓòÉ
-
- Create: Picture Control: Animated Button
-
- Selecting this menu option allows you to create an animated button
-
-
- ΓòÉΓòÉΓòÉ 2.7.3. Create: Picture Control: Multistate Button ΓòÉΓòÉΓòÉ
-
- Create: Picture Control: Multistate Button
-
- Selecting this menu option allows you to create a multistate button
-
-
- ΓòÉΓòÉΓòÉ 2.7.4. Create: Picture Control: Toggle Button ΓòÉΓòÉΓòÉ
-
- Create: Picture Control: Toggle Button
-
- Selecting this menu option allows you to create a toggle button
-
-
- ΓòÉΓòÉΓòÉ 2.7.5. Create: Picture Control: Set Button ΓòÉΓòÉΓòÉ
-
- Create: Picture Control: Set Button
-
- Selecting this menu option allows you to create a set button
-
-
- ΓòÉΓòÉΓòÉ 2.7.6. Create: Picture Control: Picture Panel ΓòÉΓòÉΓòÉ
-
- Create: Picture Control: Picture Panel
-
- Selecting this menu option allows you to create a picture panel
-
-
- ΓòÉΓòÉΓòÉ 3. Picture Control Settings ΓòÉΓòÉΓòÉ
-
- Picture Control Settings
-
- The Picture Control Details Dialog Box is used to change the settings for the
- picture control.
-
- This dialog box contains a number of fields which allow the default settings
- for the picture control to be specified.
-
- Name Use the Name field to enter the name by which this control is to be
- known within Guidelines.
-
- When Guidelines creates the control, its gives it a unique default
- name. This name may be left as is, or changed to something more
- meaningful.
-
- Text Use the Text field to enter the text to be displayed on this control.
-
- Help Panel Name Using the Help Panel Name drop down combo box, select the help
- panel to be displayed when F1 is pressed while this control has the
- focus.
-
- Panel Selection Use the Pictures, Styles and Relief push buttons to select one
- of the three information panels available for changing picture control
- settings.
-
- In addition, this dialog contains the following pushbuttons:
-
- This button displays the Presentation Parameters Dialog Box which
- specifies the colors and fonts to be used by the picture control. The
- presentation parameters used by the picture control are listed under
- the Presentation Parameters heading.
-
- This button loads the Action Editor which is used to write code for the
- events supplied by the picture control.
-
- This button erases the current picture control and returns to the
- Guidelines edit screen. It has the same effect as selecting the picture
- control and pressing the [Del] key.
-
- This button accepts any changes you have made to the picture control
- and dismisses the dialog.
-
- This button discards any changes you have made to the picture control
- and dismisses the dialog.
-
- This button displays this help panel.
-
-
- ΓòÉΓòÉΓòÉ 3.1. Styles Panel ΓòÉΓòÉΓòÉ
-
- Styles Panel
-
- The Styles panel is used to specify various style flags for the picture control
- and is displayed by default if the Picture Control Details Dialog Box is
- displayed when the picture control is created.
-
- Use the Picture Type group to specify the type of picture control to create and
- the Message Type group to specify the type of message the control should send
- when it is clicked.
-
- Use the Styles group to change the basic styles of the picture control and the
- Text Alignment group to specify the alignment of text displayed on the control.
-
-
- ΓòÉΓòÉΓòÉ 3.1.1. Picture Type ΓòÉΓòÉΓòÉ
-
- Picture Type
-
- Select one of the options in this group to specify the type of picture this
- control should be:
-
- Picture Button Selecting this option changes the picture type to picture
- button.
-
- Animated Button Selecting this option changes the picture type to animated
- button.
-
- Multistate Button Selecting this option changes the picture type to multistate
- button.
-
- Toggle Button Selecting this option changes the picture type to toggle button.
-
- Set Button Selecting this option changes the picture type to set button.
-
- Picture Panel Selecting this option changes the picture type to picture panel.
-
-
- ΓòÉΓòÉΓòÉ 3.1.2. Styles ΓòÉΓòÉΓòÉ
-
- Styles
-
- Use the Styles group to select the default style to be applied to the picture
- control when it is created. The following styles are available:
-
- Default Select this style to have this button be selected automatically when
- the user of your application presses the Enter
-
- No Focus Select this style to prevent this control from getting the input
- focus when it is selected using the mouse. Focus may be moved to this
- control by using the keyboard.
-
- Text Outside Relief Select this style to display text on the outside of the
- elevated portion of the picture control. If text is aligned in the
- center of the control, this option will make no noticeable difference.
-
- Visible Select this style to make the picture control visible when it is
- created. If desired, this style may be turned off and the Visible
- property may be used to make the control visible at runtime.
-
- Disabled Select this style to disable the picture control when it is created.
- This style may be turned on and off using the Enabled property at
- runtime.
-
- Tabstop Select this style to make the picture control a tabstop.
-
- Start of Group Select this style to make the picture control the start of a
- group.
-
-
- ΓòÉΓòÉΓòÉ 3.1.3. Message Type ΓòÉΓòÉΓòÉ
-
- Message Type
-
- Select one of the following values to specify the message type generated by
- this control.
-
- Normal A normal notification message is sent to the owner window when it has a
- command to report or when a keystroke has been translated by an
- accelerator table into a notification message.
-
- System Command A system command notification message is sent to the owner
- window when it has a command to report or when a keystroke has been
- translated by an accelerator table into a notification message.
-
- Help Request A help notification message is sent to the owner window when it
- has a command to report or when a keystroke has been translated by an
- accelerator table into a notification message. A help message is
- identical to a normal notification message but it implies that the
- application should respond by displaying help information.
-
-
- ΓòÉΓòÉΓòÉ 3.1.4. Text Alignment ΓòÉΓòÉΓòÉ
-
- Text Alignment
-
- Specify the horizontal alignment of text displayed in the picture control, by
- selecting one of the following:
-
- Left The control text is aligned to the left.
-
- Center The control text is center aligned.
-
- Right The control text is aligned to the right.
- Specify the vertical alignment of text displayed in the picture control, by
- selecting one of the following:
-
- Top The control text is aligned at the top of the control.
-
- Middle The control text is aligned in the middle of the control.
-
- Bottom The control text is aligned at the bottom of the control.
-
-
- ΓòÉΓòÉΓòÉ 3.2. Pictures Panel ΓòÉΓòÉΓòÉ
-
- Pictures Panel
-
- This panel is used to change the images displayed on the picture control. This
- is the default panel displayed once the picture control has been created for
- the first time. Images to be displayed on the picture control are displayed in
- the Pictures list box on this panel. The list box displays the following
- information about the image:
-
- Γûá Whether the image represents a state (indicated by a 'ΓêÖ')
- Γûá The display options. This will be blank if the image is to be drawn normally,
- 'T' if the image is to be drawn tiled, and 'S' if the image is to be
- stretched to fit the control.
- Γûá The image to be displayed. This image will be drawn using the Invert and/or
- Halftone style specified in the Options group.
- Γûá The name of the image. This is the name used to reference this resource in
- Guidelines.
-
- Select an entry in the list box and use one of the movement push buttons to
- change its position in the list, or select the Add, Insert and Remove push
- buttons to change the list contents.
-
- If desired, this list box may be left empty, and pictures may be added to the
- list at runtime using the SetImage method.
-
- Use the Position and Options groups to change the way each image is displayed
- on the picture control.
-
- Use First Picture and Picture Delay to change additional picture settings.
-
-
- ΓòÉΓòÉΓòÉ 3.2.1. Movement push buttons ΓòÉΓòÉΓòÉ
-
- Movement push buttons
-
- The movement push buttons are used to change the order of the images in the
- list and behave as follows:
-
- Moves the selected image up one in the list.
-
- Moves the selected image to the top of the list.
-
- Moves the selected image to the bottom of the list.
-
- Moves the selected image down one in the list.
-
-
- ΓòÉΓòÉΓòÉ 3.2.2. Add ΓòÉΓòÉΓòÉ
-
- Add
-
- Selecting the Add push button displays the Select Pictures Dialog Box which
- allows you to select one or more images to be added at the end of the list of
- images.
-
-
- ΓòÉΓòÉΓòÉ 3.2.3. Insert ΓòÉΓòÉΓòÉ
-
- Insert
-
- Selecting the Insert push button displays the Select Pictures Dialog Box which
- allows you to select one or more images to be inserted after the currently
- selected image.
-
-
- ΓòÉΓòÉΓòÉ 3.2.4. Remove ΓòÉΓòÉΓòÉ
-
- Remove
-
- The Remove push button is used to remove the currently selected image from the
- list of displayed images. This image is not removed from the list of resources
- available to the application and is available for selection again when the Add
- or Insert push buttons are selected.
-
-
- ΓòÉΓòÉΓòÉ 3.2.5. First Picture ΓòÉΓòÉΓòÉ
-
- First Picture
-
- Use the First Picture group to select the behaviour of the first picture in the
- list of images. The following options are available:
-
- Normal If this option is selected, the first image behaves in the same manner
- as any other image in the picture control.
-
- Disabled If this option is selected, the first image is displayed only when
- the picture control is disabled. This allows a separate image to be
- specified as a disabled image. When the picture control is enabled,
- this image is never displayed and the second image in the list becomes
- the default image.
-
-
- ΓòÉΓòÉΓòÉ 3.2.6. Picture Delay ΓòÉΓòÉΓòÉ
-
- Picture Delay
-
- Set the Picture Delay spin button to a nonzero value if it is desired to have a
- delay between images when animation occurs. Animation may occur under the
- following circumstances:
-
- Γûá When the picture control acts as a panel or an animated button and it is
- desired to regularly change the displayed image.
- Γûá When the picture control is a set, toggle, multistate or picture button and
- it moves between states.
- In each case, the delay is applied between each image displayed on the
- control. If this field is set to 0, no animation will occur on a picture panel
- or animated button and there will be no delay between images on set, toggle,
- multistate and picture buttons.
-
-
- ΓòÉΓòÉΓòÉ 3.2.7. Position ΓòÉΓòÉΓòÉ
-
- Position
-
- The Position group specifies the position of the currently selected image in
- the picture control.
-
- Choose one of the following to specify the horizontal position of the image:
-
- Left The image will be positioned at the left of the control.
-
- Center The image will be positioned at the center of the control.
-
- Right The image will be positioned at the right of the control.
- Choose one of the following to specify the vertical position of the image:
-
- Top The image will be positioned at the top of the control.
-
- Middle The image will be positioned in the middle of the control.
-
- Bottom The image will be positioned at the bottom of the control.
-
-
- ΓòÉΓòÉΓòÉ 3.2.8. Options ΓòÉΓòÉΓòÉ
-
- Options
-
- The Options group specifies drawing options for the currently selected image in
- the picture control.
-
- Choose one of the following to specify the drawing style of the image:
-
- Invert The image will be drawn inverted on the control.
-
- Halftone The image will be drawn halftoned on the control.
-
- Select the State check box if this image represents a state on a set, toggle or
- multistate button.
-
- Choose one of the following to specify the arrangement of the image on the
- control:
-
- Normal The image will be displayed at its normal size and will not be tiled.
-
- Tile The image will be tiled to cover the control.
-
- Stretch The image will be stretched to cover the control.
-
-
- ΓòÉΓòÉΓòÉ 3.3. Relief Panel ΓòÉΓòÉΓòÉ
-
- Relief Panel
-
- The Relief panel is used to specify the style of the elevated portion of the
- picture control. Use this panel to specify the Relief Border Style, the Border
- Width and relief Elevation. Use the Relief Fill Style value set to select a
- fill style for the relief and the Size Control group to specify how the control
- dynamically adjusts its size.
-
-
- ΓòÉΓòÉΓòÉ 3.3.1. Relief Border Style ΓòÉΓòÉΓòÉ
-
- Relief Border Style
-
- Select a border style from the styles displayed. These styles represent the
- line type used to draw the border surrounding the elevated part of the button.
- The width of this border is determined by the Border Width spin button.
-
-
- ΓòÉΓòÉΓòÉ 3.3.2. Border Width ΓòÉΓòÉΓòÉ
-
- Border Width
-
- Use this spin button to select the width of the border to be displayed. If the
- border width is 0, no border will be drawn. The border is drawn in the style
- specified by the Relief Border Style field.
-
-
- ΓòÉΓòÉΓòÉ 3.3.3. Elevation ΓòÉΓòÉΓòÉ
-
- Elevation
-
- Use this spin button to select the elevation of the relief. Specifying a
- negative value will result in the picture control appearing as an indent into
- its parent window, greater than zero will result in an outdent. The surface of
- the relief is filled with the pattern specified by the Relief Fill Style.
-
-
- ΓòÉΓòÉΓòÉ 3.3.4. Relief Fill Style ΓòÉΓòÉΓòÉ
-
- Relief Fill Style
-
- Select a fill style from the styles displayed. These types represent the fill
- pattern used to fill the top of the relief. The fill pattern is displayed
- behind the images and text which are also displayed on the relief. If the first
- fill style is selected, there is no apparent pattern displayed in the relief,
- except for the pattern caused by the dithering carried out by PM to represent
- RGB colors.
-
-
- ΓòÉΓòÉΓòÉ 3.3.5. Size Control ΓòÉΓòÉΓòÉ
-
- Size Control
-
- In this group, select one of the following to specify how the picture control
- adjusts its size at runtime:
-
- Retain Normal Size If this option is selected, the picture control does
- nothing to change its size at runtime.
-
- Size To Parent If this option is selected, the picture control sizes itself to
- fit inside its parent window, when the parent window size changes.
-
- Scale to Picture If this option is selected, the picture control sizes itself
- to the size of its first picture when it is created.
-
-
- ΓòÉΓòÉΓòÉ 3.4. Picture Selection ΓòÉΓòÉΓòÉ
-
- Picture Selection
-
- The Select Pictures Dialog Box allows you to select one or more images to be
- added at the end of the list of images.
-
- This dialog box contains a list box from which resources may be selected.
-
- Select one or more resources in the list box and press the Add or Insert push
- button to have these resources placed in the list of images for the control.
-
- Selecting Cancel. closes this dialog box without adding any of the resources to
- the list.
-
- Selecting Help displays this help panel.
-
-
- ΓòÉΓòÉΓòÉ 4. Picture Control Reference ΓòÉΓòÉΓòÉ
-
- Picture Control Reference
-
- This section provides a programming reference to the picture control.
-
- It contains the following sections:
-
- Γûá Properties
- Γûá Methods
- Γûá Events
- Γûá Constants
- Γûá Presentation Parameters
-
-
- ΓòÉΓòÉΓòÉ 4.1. Properties ΓòÉΓòÉΓòÉ
-
- Properties
-
- The following properties are supported by the picture control:
-
- Border Specifies the border style of the picture control
-
- Elevation Specifies the elevation of the picture control
-
- Enabled Specifies whether the picture control is currently enabled
-
- Fill Specifies the fill pattern of the picture control background
-
- Height Specifies the height of the picture control
-
- ID Specifies the ID of the picture control
-
- Index Specifies the current image index for the picture control
-
- Interval Specifies the current timer interval for animated picture controls
-
- LineWidth Specifies the width of the border line drawn around the picture
- control
-
- MousePtr Specifies the pointer to be displayed over the picture control
-
- NumPictures Specifies the number of pictures available for display on the
- picture control
-
- NumStates Specifies the number of images marked as 'State' on the picture
- control
-
- Owner Specifies the owner window of the picture control
-
- Parent Specifies the parent window of the picture control
-
- State Specifies the current state index for the picture control
-
- Text Specifies the text displayed on the picture control
-
- Update Turns updating of the picture control window on and off
-
- Visible Specifies whether the picture control is visible
-
- Width Specifies the width of the picture control
-
- XOffset Specifies the horizontal offset to begin the display of picture
- control images.
-
- XPos Specifies the horizontal position of the picture control
-
- YOffset Specifies the vertical offset to begin the display of picture control
- images.
-
- YPos Specifies the vertical position of the picture control
-
-
- ΓòÉΓòÉΓòÉ 4.2. Events ΓòÉΓòÉΓòÉ
-
- Events
-
- The following events are supported by the picture control:
-
- Change The image displayed on the picture control has changed
-
- Click The picture control has been clicked using the mouse or keyboard
-
- State The picture control state has changed
-
-
- ΓòÉΓòÉΓòÉ 4.3. Methods ΓòÉΓòÉΓòÉ
-
- Methods
-
- The following methods are supported by the picture control:
-
- GetDrawMode Get the drawing mode for an image displayed on the picture control
-
- GetImage Get an image displayed on the picture control
-
- SetDrawMode Set the drawing mode for an image displayed on the picture control
-
- SetImage Set an image to be displayed on the picture control
-
-
- ΓòÉΓòÉΓòÉ 4.4. Constants ΓòÉΓòÉΓòÉ
-
- Constants
-
- The following constants are supplied by the picture control:
-
- PcsBottom The image will be aligned at the bottom of the control.
-
- PcsCenter The image will be centered.
-
- PcsHalfTone The image is being drawn half-toned.
-
- PcsInvert The image is being drawn inverted.
-
- PcsLeft The image will be left aligned.
-
- PcsMiddle The image will be aligned in the middle of the control.
-
- PcsNormal The image will be drawn at its normal size. It will be cropped as
- appropriate by the picture control.
-
- PcsRight The image will be right aligned.
-
- PcsState The image represents a state.
-
- PcsStretch The image will be stretched or shrunk to fill the picture control.
-
- PcsTiled The image will be tiled to fill the picture control.
-
- PcsTop The image will be aligned at the top of the control.
-
-
- ΓòÉΓòÉΓòÉ 4.5. Presentation Parameters ΓòÉΓòÉΓòÉ
-
- Presentation Parameters
-
- The following presentation parameters are used by the picture control:
-
- PP_Background Specifies the color of the relief background
-
- PP_Border Specifies the color of the border drawn around the control
-
- PP_DisabledBackground Specifies the color of the shaded edge of the relief
-
- PP_Foreground Specifies the color of the fill pattern and the text displayed
- on the control
-
- PP_HiliteBackground Specifies the color of the nonshaded edge of the relief
-
-
- ΓòÉΓòÉΓòÉ 4.6. Border Property ΓòÉΓòÉΓòÉ
-
- Border Property
-
- This property specifies the border line style for the picture control.
-
- Syntax SHORT <Window>.Border
-
- Remarks A border line is drawn around the picture control at the width
- specified by the LineWidth property.
-
- The border line type may take one of the following values:
-
- Line_Dot
- Line_ShortDash
- Line_DashDot
- Line_DoubleDot
- Line_LongDash
- Line_DashDoubleDot
- Line_Solid
- Line_Invisible (not drawn)
-
- Example This example sets the border line style to Line_Solid and the width to
- 5 pixels:
-
- Frame1.Picture1.Border = Line_ShortDash
- Frame1.Picture1.LineWidth = 5
-
- See Also Elevation, Fill, LineWidth
-
-
- ΓòÉΓòÉΓòÉ 4.7. Change Event ΓòÉΓòÉΓòÉ
-
- Change Event
-
- This event occurs when a new image is displayed on the picture control.
-
- Prototype
-
- VOID <Window>.Change ()
-
- end
-
- Parameters None
-
- Return Value None
-
- Remarks The image on the picture control may change automatically if it is
- being animated, or the change may be generated if the current image is
- changed using SetImage.
-
- Example This example uses the Change event to generate sounds:
-
- VOID Frame1.Picture1.Change ()
- if Frame1.Picture1.Index = 1
- then
- Sound (600, 75) ; Generate a low sound for this image
- else
- Sound (1200, 75) ; Generate a higher sound for this image
- endif
- end
-
- See Also Click, State
-
-
- ΓòÉΓòÉΓòÉ 4.8. Click Event ΓòÉΓòÉΓòÉ
-
- Click Event
-
- This event occurs when the picture control has been pressed using the mouse or
- keyboard
-
- Prototype
-
- VOID <Window>.Click ()
-
- end
-
- Parameters None
-
- Return Value None
-
- Remarks This event is not generated when the picture control is acting as a
- picture panel.
-
- A user presses a set, toggle, multistate, animated or picture button to
- generate a Click event in the following ways:
-
- Γûá By clicking the control with the left mouse button
- Γûá By pressing the spacebar when a button has the input focus
- Γûá By pressing the Enter
-
- Example This example invokes a dialog box when a picture button is pressed:
-
- VOID Frame1.AddUser.Click
- DlgAddUser.Invoke (Frame1)
- end
-
- See Also Change, State
-
-
- ΓòÉΓòÉΓòÉ 4.9. Elevation Property ΓòÉΓòÉΓòÉ
-
- Elevation Property
-
- This property specifies the elevation of the relief portion of the picture
- control.
-
- Syntax
-
- SHORT <Window>.Elevation
-
- Remarks The elevation of the picture control may be less than 0 to specify an
- indent or greater than 0 to specify an outdent. When a picture control
- defined as one of the button types is pressed, the elevation is made
- the negative of the default elevation to give the 'pushed' appearance.
-
- Example This example sets the elevation of the picture control to be a quarter
- of its width:
-
- Frame1.Picture1.Elevation = Frame1.Picture1.Width / 4
-
- See Also Border, Fill, LineWidth
-
-
- ΓòÉΓòÉΓòÉ 4.10. Fill Property ΓòÉΓòÉΓòÉ
-
- Fill Property
-
- This property specifies the fill pattern for the elevated relief background.
-
- Syntax
-
- SHORT <Window>.Fill
-
- Remarks The fill pattern may take one of the following values:
-
- Fill_Density1
- Fill_Density2
- Fill_Density3
- Fill_Density4
- Fill_Density5
- Fill_Density6
- Fill_Density7
- Fill_Density8
- Fill_Vertical
- Fill_Horizontal
- Fill_Diagonal1
- Fill_Diagonal2
- Fill_Diagonal3
- Fill_Diagonal4
- Fill_NoShade
- Fill_Solid
- Fill_HalfTone
- Fill_Hatch
- Fill_DiagonalHatch
-
- Example This example sets the fill pattern to Fill_HalfTone:
-
- Frame1.Picture1.Fill = Fill_HalfTone
-
- See Also Border, Elevation, LineWidth
-
-
- ΓòÉΓòÉΓòÉ 4.11. GetDrawMode Method ΓòÉΓòÉΓòÉ
-
- GetDrawMode Method
-
- This method gets the current drawing mode of an image in the picture control.
-
- Syntax
-
- SHORT <Window>.GetDrawMode (SHORT PicIndex)
-
- Parameters
-
- PicIndex This is the index of the image to get the drawing mode of. This
- value must be greater than or equal to 0 and less than the current
- value of the NumPictures property.
-
- Return Value This method returns a value made up of the following groups of
- flags:
-
- Drawing Flags This may be a combination of the following flags. If neither
- of these flags is specified, the image is being drawn normally.
-
- Γûá PcsHalfTone
- Γûá PcsInvert
-
- Sizing Flags One of the following flags will be used to specify whether the
- image is drawn at its normal size, or whether it is stretched or
- tiled to fit the control:
-
- Γûá PcsNormal
- Γûá PcsStretch
- Γûá PcsTiled
-
- Horizontal Alignment One of the following flags will be set to indicate the
- horizontal alignment of the image within the picture control:
-
- Γûá PcsLeft
- Γûá PcsCenter
- Γûá PcsRight
-
- Vertical Alignment One of the following flags will be set to indicate the
- vertical alignment of the image within the picture control:
-
- Γûá PcsTop
- Γûá PcsMiddle
- Γûá PcsBottom
-
- State Flag If the image represents a state, it will have the PcsState flag
- set.
-
- Remarks Images are aligned and drawn in the portion of the picture control
- surrounded by the elevated edges (ie, the relief). All alignment and
- drawing are relative to this region of the control. When text is being
- displayed outside the relief (see the Styles panel on the Picture
- Control Details Dialog Box), the size of the relief is the same as that
- of the image to be drawn and the alignment and sizing flags are
- effectively ignored.
-
- Example This example gets the drawing mode of an image, sets the PcsState flag
- and then updates the drawing mode of the image:
-
- SHORT DrawMode
-
- DrawMode = Frame1.Picture1.GetDrawMode (0)
- DrawMode = BitOr (DrawMode, PcsState)
- Frame1.Picture1.SetDrawMode (0, DrawMode)
-
- See Also GetImage, Index, SetDrawMode
-
-
- ΓòÉΓòÉΓòÉ 4.12. GetImage Method ΓòÉΓòÉΓòÉ
-
- GetImage Method
-
- This method retrieves the image at the specified index on the picture control.
-
- Syntax
-
- IMAGE <Window>.GetImage (SHORT PicIndex)
-
- Parameters
-
- PicIndex This is the index of the image to retrieve. This value must be
- greater than or equal to 0 and less than the current value of the
- NumPictures property.
-
- Return Value This method returns the image displayed at the specified index, or
- Null if no image is being displayed at that index.
-
- Remarks This method returns the base image used on the control, not the final
- image as it appears when it is drawn on the control. That is, the
- drawing mode flags used to draw the image are also required if it is
- desired to duplicate this image on another control.
-
- Example This example gets the image at index 0 on the picture control, sets its
- drawing mode to be inverted and then adds the image at index 1 on the
- control:
-
- IMAGE Image0
- SHORT DrawMode0
-
- ; Get the image details for index 0
- Image0 = Frame1.Picture1.GetImage (0)
- DrawMode0 = Frame1.Picture1.GetDrawMode (0)
-
- ; Adjust the drawing mode
- DrawMode0 = BitOr (DrawMode0, PcsInvert)
-
- ; Now, set the image for index 1
- Frame1.Picture1.SetImage (1, Image0)
- Frame1.Picture1.SetDrawMode (1, DrawMode0)
-
- See Also GetDrawMode, Index, SetImage.
-
-
- ΓòÉΓòÉΓòÉ 4.13. Index Property ΓòÉΓòÉΓòÉ
-
- Index Property
-
- This property specifies the index of the currently displayed image in the
- picture control.
-
- Syntax
-
- SHORT <Window>.Index
-
- Remarks This property may take values from 0 up to the value of the NumPictures
- property.
-
- Example This example queries the current image index and uses it to get the
- image displayed on the picture control:
-
- IMAGE CurrImage
- SHORT CurrIndex
-
- ; Get the index of the displayed image
- CurrIndex = Frame1.Picture1.Index
-
- ; Get the image from the picture control
- CurrImage = Frame1.Picture1.GetImage (CurrIndex)
-
- See Also Change, GetDrawMode, GetImage, SetDrawMode, SetImage, State.
-
-
- ΓòÉΓòÉΓòÉ 4.14. Interval Property ΓòÉΓòÉΓòÉ
-
- Interval Property
-
- This property specifies the time interval between images when a picture control
- is animated.
-
- Syntax
-
- SHORT <Window>.Interval
-
- Remarks This property is measured in milliseconds (1000 milliseconds = 1
- second). The interval specified is used as a pause between each image
- when animation is occurring in the picture control. The behaviour of
- the control when this property is set to 0 depends on the Picture Type
- (set in the Styles panel on the Picture Control Details Dialog Box).
- For a picture panel or an animated button, no animation occurs when
- this property is set to 0. For set, toggle, multistate and picture
- buttons, there is no delay between images when animation occurs.
-
- Example This example set the timer interval for a picture control to be 0.25
- seconds (250 milliseconds):
-
- Frame1.Picture1.Interval = 250
-
- See Also Change
-
-
- ΓòÉΓòÉΓòÉ 4.15. LineWidth Property ΓòÉΓòÉΓòÉ
-
- LineWidth Property
-
- This property specifies the width of the border line drawn around the picture
- control.
-
- Syntax
-
- SHORT <Window>.LineWidth
-
- Remarks The border line width of the picture control must be greater than or
- equal to 0. If it is equal to zero, no border line is drawn.
-
- Example This example sets the border line width of the picture control to be a
- quarter of the control's width:
-
- Frame1.Picture1.LineWidth = Frame1.Picture1.Width / 4
-
- See Also Border, Elevation, Fill
-
-
- ΓòÉΓòÉΓòÉ 4.16. NumPictures Property ΓòÉΓòÉΓòÉ
-
- NumPictures Property
-
- This property specifies the number of images currently loaded by the picture
- control.
-
- Syntax
-
- SHORT <Window>.NumPictures
-
- Remarks This property is read-only. Its value is set either at design-time or
- by adding images using SetImage.
-
- Example This example is a code module which loads a specified image file and
- adds it to the end of the list of images for the picture control:
-
- VOID <Window>.Change ()
-
- end
- VOID LoadImageFile (STRING ImageFileName) SHORT NumPics IMAGE
- NewImage NewImage = LoadImage (ImageFileName) NumPics =
- Frame1.Picture1.NumPictures Frame1.Picture1.SetImage (NumPics,
- NewImage) end
-
- See Also Index, NumStates, SetImage
-
-
- ΓòÉΓòÉΓòÉ 4.17. NumStates Property ΓòÉΓòÉΓòÉ
-
- NumStates Property
-
- This property specifies the number of images marked as 'State' on the picture
- control.
-
- Syntax
-
- SHORT <Window>.NumStates
-
- Remarks The value of this property is read-only and is determined by the number
- of images which have their drawing mode set to 'State'. This may be
- done at design-time or at runtime by using the SetDrawMode method.
-
- Example This example finds the number of states defined on the picture control
- and sets the current state to the last one available:
-
- SHORT NumState
-
- NumState = Frame1.Picture1.NumStates
- Frame1.Picture1.State = NumState - 1
-
- See Also Index, NumPictures, State
-
-
- ΓòÉΓòÉΓòÉ 4.18. SetDrawMode Method ΓòÉΓòÉΓòÉ
-
- SetDrawMode Method
-
- This method sets the current drawing mode of an image in the picture control.
-
- Syntax
-
- SHORT <Window>.SetDrawMode (SHORT PicIndex, SHORT DrawMode)
-
- Parameters
-
- PicIndex This is the index of the image to set the drawing mode of. This
- value must be greater than or equal to 0 and less than the current
- value of the NumPictures property.
-
- DrawMode This is the drawing mode for the image. It is made up of the
- following groups of flags:
-
- Drawing Flags. This may be a combination of the following flags. If
- neither of these flags is specified, the image is to be drawn
- normally.
-
- Γûá PcsHalfTone
- Γûá PcsInvert
-
- Sizing Flags. Use one of the following flags to specify whether the
- image is to be drawn at its normal size, or whether it is to be
- stretched or tiled to fit the control:
-
- Γûá PcsNormal
- Γûá PcsStretch
- Γûá PcsTiled
-
- Horizontal Alignment. Set one of the following flags to indicate the
- horizontal alignment of the image within the picture control:
-
- Γûá PcsLeft
- Γûá PcsCenter
- Γûá PcsRight
-
- Vertical Alignment. Set one of the following flags to indicate the
- vertical alignment of the image within the picture control:
-
- Γûá PcsTop
- Γûá PcsMiddle
- Γûá PcsBottom
-
- State Flag If the image represents a state, set the PcsState flag.
-
- Return Value This method returns True if successful, and False otherwise.
-
- Remarks Images are aligned and drawn in the portion of the picture control
- surrounded by the elevated edges (ie, the relief). All alignment and
- drawing are relative to this region of the control. When text is being
- displayed outside the relief (see the Styles panel on the Picture
- Control Details Dialog Box), the size of the relief is the same as that
- of the image to be drawn and the alignment and sizing flags are
- effectively ignored.
-
- Example This example gets the drawing mode of an image, sets the PcsState flag
- and then updates the drawing mode of the image:
-
- SHORT DrawMode
-
- DrawMode = Frame1.Picture1.GetDrawMode (0)
- DrawMode = BitOr (DrawMode, PcsState)
- Frame1.Picture1.SetDrawMode (0, DrawMode)
-
- See Also GetDrawMode, Index, NumPictures, SetImage.
-
-
- ΓòÉΓòÉΓòÉ 4.19. SetImage Method ΓòÉΓòÉΓòÉ
-
- SetImage Method
-
- This method sets the image to be displayed at the specified index on the
- picture control.
-
- Syntax
-
- SHORT <Window>.SetImage (SHORT PicIndex, IMAGE PicImage)
-
- Parameters
-
- PicIndex This is the index of the image to set. This value must be greater
- than or equal to 0. If it is greater than or equal to the current
- value of the NumPictures property, the picture control increases the
- size of its image list appropriately to make room for the extra
- images. Any unused image indices will be assigned a Null image and
- default drawing mode flags.
-
- PicImage This is the image to display at this index, or Null to clear the
- current image.
-
- Return Value This method returns True if successful, and False otherwise.
-
- Remarks Once an image is added to the picture control, use SetDrawMode to set
- its drawing mode appropriately. If the image at the current Index of
- the control is changed, the image will be updated immediately. If the
- drawing mode is subsequently changed, the image may appear to flicker.
- If it is desired to insert a new image and change its drawing mode
- immediately, set the Update property to False, update the image, and
- then reset the Update property to True.
-
- Example This example gets the image at index 0 on the picture control, sets its
- drawing mode to be inverted and then adds the image at index 1 on the
- control:
-
- IMAGE Image0
- SHORT DrawMode0
-
- ; Get the image details for index 0
- Image0 = Frame1.Picture1.GetImage (0)
- DrawMode0 = Frame1.Picture1.GetDrawMode (0)
-
- ; Adjust the drawing mode
- DrawMode0 = BitOr (DrawMode0, PcsInvert)
-
- ; Now, set the image for index 1
- Frame1.Picture1.SetImage (1, Image0)
- Frame1.Picture1.SetDrawMode (1, DrawMode0)
-
- See Also GetImage, Index, NumPictures, SetDrawMode
-
-
- ΓòÉΓòÉΓòÉ 4.20. State Event ΓòÉΓòÉΓòÉ
-
- State Event
-
- This event occurs when the new image displayed on the picture control
- represents a 'state'.
-
- Prototype
-
- VOID <Window>.State ()
-
- end
-
- Parameters None
-
- Return Value None
-
- Remarks The State event may be generated when a state image is displayed
- automatically by animation, or if the state of the current image is
- changed using SetDrawMode.
-
- Example This example uses the State event to generate sounds:
-
- VOID Frame1.Picture1.State ()
- if Frame1.Picture1.State = 1
- then
- Sound (600, 75) ; Generate a low sound for this state
- else
- Sound (1200, 75) ; Generate a higher sound for this state
- endif
- end
-
- See Also Change, Click
-
-
- ΓòÉΓòÉΓòÉ 4.21. State Property ΓòÉΓòÉΓòÉ
-
- State Property
-
- This property specifies the current state index for the picture control.
-
- Syntax
-
- SHORT <Window>.State
-
- Remarks This property may take values from 0 up to the value of the NumStates
- property. This property is the equivalent of the Checked property for
- radio buttons and check boxes and is used in the same way.
-
- Example This example queries the current state of a picture control and sets a
- configuration variable based on the returned state:
-
- SHORT PrinterOn
-
- PrinterOn = Frame1.PrinterToggle.State
-
- See Also Index, NumStates, SetDrawMode
-
-
- ΓòÉΓòÉΓòÉ 4.22. XOffset Property ΓòÉΓòÉΓòÉ
-
- XOffset Property
-
- This property specifies the horizontal offset to begin the display of picture
- control images.
-
- Syntax
-
- SHORT <Window>.XOffset
-
- Remarks If this property is set to a nonzero value, the images displayed on the
- picture control are shifted left the number of pixels specified. This
- provides a means of horizontally scrolling an image within the picture
- control.
-
- Example This example offsets the picture image by the amount specified in a
- horizontal scroll bar when the scroll bar position is changed:
-
- VOID Frame1.HScrollbar1.Change ()
- Frame1.Picture1.XOffset = Frame1.HScrollbar1.Pos
- end
-
- See Also YOffset
-
-
- ΓòÉΓòÉΓòÉ 4.23. YOffset Property ΓòÉΓòÉΓòÉ
-
- YOffset Property
-
- This property specifies the vertical offset to begin the display of picture
- control images.
-
- Syntax
-
- SHORT <Window>.YOffset
-
- Remarks If this property is set to a nonzero value, the images displayed on the
- picture control are shifted down the number of pixels specified. This
- provides a means of vertically scrolling an image within the picture
- control.
-
- Example This example offsets the picture image by the amount specified in a
- vertical scroll bar when the scroll bar position is changed:
-
- VOID Frame1.VScrollbar1.Change ()
- Frame1.Picture1.YOffset = Frame1.VScrollbar1.Pos
- end
-
- See Also XOffset
-