Message object properties – PB Docs 125

Message object properties

The first four properties of the Message object correspond
to the first four properties of the Microsoft Windows message structure.

Table 21-3: Message object properties

Property

Datatype

Use

Handle

Integer

The handle of the window or control.

Number

Integer

The number that identifies the event
(this number comes from Windows).

WordParm

UnsignedInt

The word parameter for the event (this parameter
comes from Windows). The parameter’s value and meaning
are determined by the event.

LongParm

Long

The long parameter for the event (this
number comes from Windows). The parameter’s value and meaning
are determined by the event.

DoubleParm

Double

A numeric or numeric variable.

StringParm

String

A string or string variable.

PowerObjectParm

PowerObject

Any PowerBuilder object type including structures.

Processed

Boolean

A boolean value set in the script for
the user–defined event:

  • TRUE—The
    script processed the event. Do not call the default window Proc (DefWindowProc)
    after the event has been processed.

  • FALSE—(Default) Call
    DefWindowProc after the event has been processed.

ReturnValue

Long

The value you want returned to Windows
when Message.Processed is TRUE.

When Message.Processed is FALSE, this attribute
is ignored.

Use the values in the Message object in the event script that
caused the Message object to be populated. For example, suppose
the FileExists event contains the following script. OpenWithParm displays
a response window that asks the user if it is OK to overwrite the
file. The return value from FileExists determines
whether the file is saved:

For information on Microsoft message numbers
and parameters, see the Microsoft Software Developer’s
Kit (SDK) documentation.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x