Stylebits - Help file topic needs clarification

From Liberty BASIC Family
Jump to navigation Jump to search


Description

There is no hint about only one STYLEBITS command is permitted per handle. If there are more, than only the last one is applied.

In addition the constants concatenation using OR is described for the addBits, where it is a general rule.

Quote from the help file.

...

addBits

This contains all style bits that should be added to the control. If there are more than one, they must be put together with the bitwise OR operator, like this: _ES_AUTOVSCROLL or _ES_MULTILINE

...

Proposed change.

...

The STYLEBITS command must be issued before the command to open the window. Only one STYLEBITS command is allowed for each control or window.

If there are more than one style bits applied through an argument, they must be put together with the bitwise OR operator, like this: _ES_AUTOVSCROLL or _ES_MULTILINE

...

addBits

This contains all style bits that should be added to the control. To add a vertical scroll bar, this value would be _WS_VSCROLL.

...