*MCURSOR (SETMODE)


PLBCMP GUI Only

*MCURSOR={type | value}

 

The *MCURSOR list control sets the mouse cursor to one of the following cursor {types}: *ARROW, *CROSS, *DRAG, *DROP, *HAND, *IBEAM, *PLUS, or *WAIT. The default is *MCURSOR=*ARROW.

 

If {value} is specified, the number refers to a resource id in a resource DLL file. The {value} range from 0 to 127 is reserved for PLBWIN and values greater than 127 can be used for user resources. In addition, when a {value} greater than 127 cannot be resolved as a user-defined resource, the runtime attempts to resolve the id as a windows resource.

 

It is not possible to support all SETMODE *MCURSOR cursor settings for NETCONTROL objects because the .NET objects can only support a limited set of .NET cursors.

 

The following values are defined in the runtime and indicate the settings that can be applied to the NETCONTROL objects:

 

Value

Cursor

NETCONTROL

1

Arrow

Yes

2

Cross

Yes

3

I Beam

Yes

4

Plus

Yes

5

Wait

Yes

6

Hand

Yes

7

Drag

N/A

8

Drop

N/A

9

(hidden)

N/A

 

The following *MCURSOR values are supported for the PWS runtimes:

 

Value

Cursor

CSS 'cursor' Style

1

Arrow

auto

2

Cross

crosshair

3

I Beam

text

4

Plus

cell

5

Wait

wait

6

Hand

grab

7

Drag

not allowed

8

Drop

not allowed

9

(hidden)

none

>9

Arrow

auto

Note:

  1. When executing using a PWS runtime, the CSS 'cursor:' style can be changed using the 'SetWebStyle' for an individual PLB GUI object supported by the PWS runtime.

  2. Example:

     

    Panel PANEL ;Panel must be created!

    UseDiv INTEGER 4,"0x01" ;Change HTML 'DIV'

               ...

    .

               Panel.SetWebStyle USING CssName="cursor":

                         StrValue="crosshair",Flags=UseDiv

    .

 

See Also: Example Code, List Controls (SETMODE), SETMODE

 



PL/B Language Reference *MAXDMRECVTIME (SETMODE) *NODEFTABID (SETMODE)