SetBProp Method |
[Top] [Chapter] [Previous] [Next] |
This method reads and writes internal property flags. Declaration int SetBProp([In] BPropSel Group, [In] int ID, [In] int Value); Description This method reads and writes a multitude of internal property flags.
The First parameter selects the group of flags, the second "id" the flag and the third the new value.
If the third parameter "Value" is -1 the flag will be cleared, if it is 1 it will be set, if it is 0 only the current state (1 or 0) will be returned.
These groups are used: Group 10 : wpAcceptFilesOptions Group 14 : Global Security Options
Note: Within .NET projects you can use the enum BPropSel to select the group, for example Memo.SetBProp(BPropSel.wpVarBOptions,1,1) to enable the "word wrap" mode.
If you use the method wptextCreateDialog to create the editor window, You can use the bitfields Memo1_SetBProp_ADD.. to set and clear all mentioned flags. Example: param.Memo1_SetBProp_ADD[0] = (1024 * 2) will activate image drag&drop.
New: If the second parameter id=-1 and the value =-1 the complete set of flags will be cleared. (all groups>0) |