Visit Gigasoft's Web Site
 ProEssentials v9 Help

SBCode

Scope

Pego, Pesgo, Pe3do, Pepso, Pepco

Type

Int32

Default

0

.NET

PeUserInterace.Scrollbar.SBCode

Ocx|Vcl

SBCode

DLL

PEP_nSBCODE

 

Purpose

The .NET developer reads this property in response to a PePreHScroll or PePreVScroll event.

When using the ActiveX/VCL interface, in response to a PreHScroll or PreVScroll event handler.

When implementing the DLL, in response to a PEWN_PREHSCROLL or PEWN_PREVSCROLL notification message.

 

This property returns the scroll bar code which allows the developer to know what type of scroll bar event is about to happen.

 

If the developer wants to prevent the future scroll event, set this property to 1. If the developer wants to alter the future scrollbar position, set this property to SB_LINEUP or SB_LINEDOWN and set SBCode to a value 1 less or 1 more so that after the event, the position is as desired.

 

ProEssentials.Enums.

ActiveX and

 

SBCode

DLL Constants

Description

LineUp

SB_LINEUP (0)

Up one position

LineLeft

SB_LINELEFT (0)

Left one position

LineDown

SB_LINEDOWN (1)

Down one position

LineRight

SB_LINERIGHT (1)

Right one position

PageUp

SB_PAGEUP (2)

Up by one page

PageLeft

SB_PAGELEFT (2)

Left by one page

PageDown

SB_PAGEDOWN (3)

Down by one page

PageRight

SB_PAGERIGHT (3)

Right by one page

ThumbPosition

SB_THUMBPOSITION (4)

User dragging scrollbar

ThumbTrack

SB_THUMBTRACK (5)

User dragging scrollbar

Top

SB_TOP (6)

User selects top position

Left

SB_LEFT (6)

User selects left position

Bottom

SB_BOTTOM (7)

User selects bottom position

Right

SB_RIGHT (7)

User selects right position

 

Comments

PeUserInterface.Scrollbar.SBCode members of Pego.PeUserInterface.Scrollbar, Pesgo.PeUserInterface.Scrollbar, Pe3do.PeUserInterface.Scrollbar, Pepso.PeUserInterface.Scrollbar, Pepco.PeUserInterface.Scrollbar

 

See Also: SBCode, PePreHScroll, PePreVScroll, PreHScroll, PreVScroll, PEWN_PREHSCROLL, o rPEWN_PREVSCROLL.