Macro Language Reference > Macros > Window > wdpref
  
wdpref
Description
Allows direct access to, and edit of, PTC ALD interface options.
 
Example 326. Define additional termination characters for ttword
The following example will add the additional termination characters x, y and z to be used in the ttword macro:
wdpref w"xyz"
These characters can also be set via the Misc tab of the Interface Options dialog box.
 
Example 327. Enable the macro recorder function via macro
This example will enable the macro recorder function to a text file called m--record.
wdpref +12,m,"c:/m--record"
 
Example 328. Activate multiple interface options via macro
wdpref +1,+2,+6,+7,+11
This syntax will switch on the following interface options:
show macros in menus, dialog boxes and status bar
display dialog boxes at center
disable frame 'inside-out' deletion
Syntax
wdpref w:L w_chars:s
wdpref s:L s_chars:s
wdpref e:L e_size:n
wdpref c:L c_size:n
wdpref b:L b_size:n
wdpref m:L file_name:s
wdpref r:L number:n
wdpref toggle:L flag:n
wdpref raise_border:n
wdpref k:L option:n
wdpref l:L scroll_lock:o
wdpref A:L font_smooth:o
wdpref x:L smooth_scheme:o
wdpref a:L smooth_level:n
wdpref o:L editbarfoc_onetoone:o
wdpref v:L editbarfoc_vert:o
wdpref f:L window_focus:o
wdpref n:L num:n
wdpref S:L db_size_pos:o
wdpref
[no parameter]
Invoke the Interface Options dialog box.
w
Set additional characters at which PTC ALD will terminate when using the ttword macro.
w_chars
The additional characters called for by the inclusion of w
s
Set additional characters at which PTC ALD will terminate when using the ttsent macro.
s_chars
The additional characters called for by the inclusion of s
e
Set the font size for text in the edit bar.
e_size
The font size option, as called for by the inclusion of e:
0
Standard size
1
Small size
2
Large size
c
Set the font size for text in the color menu.
c_size
The font size option, as called for by the inclusion of c:
0
Standard size
1
Small size
2
Large size
b
Set the font size for text in the menu bar.
b_size
The font size option, as called for by the inclusion of b:
0
Standard size
1
Small size
2
Large size
m
Select the file name to use for the macro recorder.
file name
The name of the file, as called for by the inclusion of m
r
Set the number of files to be displayed in the File > Recent Documents menu.
number
The number of files, as called for by the inclusion of r
toggle
Set or toggle preference flags.
+
On
-
Off
^
Toggle
flag
The flag(s) to be toggled, as called for by the inclusion of toggle
1
Show macros in menus
2
Show macros in dialog boxes
3
Use Yes/No buttons instead of check boxes
4
Display edit fields like combo boxes (display dialog box edit fields in white)
5
Do not exit dialog box on return
6
Show macros in status bar
7
Always display dialog boxes at centre
8
Use Windows colors
9
Use Windows colors for buttons
10
Simulate mouse with keyboard in dialog boxes
11
Disable frame deletion by sizing inside out
12
Enable the macro recorder
13
Turn on case sensitive sorting
-14
Enable sorting of embedded digits as numbers
14
Enable sorting of embedded digits by character
15
Ignore punctuation when sorting
19
Highlight edit fields
raise border
The value for border thickness in dialog boxes and menus.
k
Define PTC ALD keyboard shortcuts.
option
The keyboard shortcut, as called for by the inclusion of k:
0
Warn when PTC ALD starts - ask which keyboard layout is to be used on startup.
1
Use new keyboard layout.
2
Use original keyword layout
l
Set the scroll lock.
scroll_lock
The scroll lock option, as called for by the inclusion of l:
0
off
1
on
A
Set font smoothing.
font_smooth
The font smoothing setting, as called for by the inclusion of A:
0
off
1
on
x
Define the font smoothing scheme.
smooth_scheme
The font smoothing scheme option, as called for by the inclusion of x:
0
Normal
1
High contrast
a
Set the font smoothing level.
smooth_level
The number of the font smoothing level, as called for by the inclusion of a:
num
A number to specify the level of font smoothing
o
Set the edit bar focus 1:1 mode.
editbarfoc_onetoone
The edit bar 1:1 setting, as called for by the inclusion of o:
0
off
1
on
v
Set the edit bar focus if vertical edit bar mode
editbarfoc_vert
The edit bar setting, as called for by the inclusion of v:
0
off
1
on
f
Set the switch window focus on click mode
window_focus
The switch window focus setting, as called for by the inclusion of f:
0
off
1
on
n
Set the edit bar focus if number of lines is greater than the number specified mode
num
The number of lines, as called for by the inclusion of n
S
Set the save dialog sizes and positions mode
db_size_pos
The save setting, as called for by the inclusion of S:
0
off
1
on
Additional Information
 
For more information on the Clear all dialog size and position data option under the Dialog Boxes tab in the Interface Options dialog box, see the wdbmi keyword.
Related Links