COBOL sp2 Change Log

5.3.71
——
If SP2EDT set, separator characters and invalid input in date entry fields will be ignored
Problem with tab controls if TC OnDemand being used

5.3.70
——
Problem with current color for transparent windowed icons
set-clipboard returning bad return code in thin client

5.3.69
——
Panel Options-7 X”02″ means put message text in last statusbar slot rather than first

5.3.68
——
Obscure problem with mouse click on a non-active window with no tab fields

5.3.67
——
Date separators handled incorrectly for DotNet fields

5.3.66
——
Problem with Dotnet color conversion
Usage-option=a for ActiveX items not being handled correctly
Mouse wheel issue

5.3.65
——
Dotnet linked system color

5.3.64
——
Link DotNet property to sp2 Colors area item using entry in sp2 Value (fd-initial-val) eg. /ForeColor=$colorf/BackColor=$colorb
When color is linked also set both sp2-fd-options-5 X”20″ bit for linked property and sp2-fd-more-optons X”04″ bit for changed color
Improve SP2SAV=4 logic
Standard validation for DotNet controls with program data option set
Vertical cursor movement for DotNet controls with program data option set

5.3.63
——
Allow SP2OWN to be reset using sp2-set-configuration
Set SP2OFD=1 to cause the editor to use the last accessed folder rather than the current folder for File/Open/New

5.3.62
——
Right-to-left tabbing in repeat group (repeat Miscellaneous options X”20″ bit)
Problem with repeat group cursor movement when sp2-rx-type-ptr used
Link DotNet property to sp2 property using entry in sp2 Value (fd-initial-val) including standard prop key eg. /MaxLength=$propFN-0002600002
Set sp2-fd-options-5 X”20″ bit to indicate that properties are being linked

sp2-get-property bit handling calls
———————————–
Call sp2-get-property with sp2-pr-var-act = B (bits to byte) or Y (byte to bits) to set or get bits in a byte
B means use sp2-pr-bit-value items (1 is on, 0 is off, – is leave) to reset sp2-pr-byte-value
Y means use sp2-pr-byte-value to set sp2-pr-bit-value items (1 is on, 0 is off)
sp2-property in sp2.cpy updated as follows:
88 SP2-PR-BITS-TO-BYTE VALUE “B”.
88 SP2-PR-BYTE-TO-BITS VALUE “Y”.
10 SP2-PR-BIN-VALUE REDEFINES SP2-PR-VALUE.
15 SP2-PR-BIT-VALUE OCCURS 8 PIC X.
15 SP2-PR-BYTE-VALUE PIC X.
Returned sp2-pr-byte-value might be used to update item in sp2-fd-data
Returned sp2-pr-bit-value might be used to check if option is set
For example, to set properties linkage option (as above):
move low-values to sp2-pr-data
set sp2-pr-bits-to-byte to true
move “–1—–” to sp2-pr-bin-value
move sp2-fd-options-5 to sp2-pr-byte-value
call “SP2” using sp2-get-property using sp2-property
move sp2-pr-byte-value to sp2-fd-options-5

5.3.61
——
Add 4 to SP2CUS configuration value to allow Ctrl C/V/X to be used for Copy/Paste/Cut in custom fields

5.3.60
——
Problem with DotNet dates if Format begins with 4 digit year
Assume cutoff year of 30 for 6 digit DotNet dates if SP2CEN not set

5.3.59
——
Problem with field font during zooming

5.3.58
——
Problem overwriting internal indicators on set-window-def

5.3.57
——
Adjust zoom logic
Adjust bitmap scaling

5.3.56
——
Allow for SP2DTE setting when handling Net dates

5.3.55
——
Adjust zoom logic

5.3.54
——
5.3.53 fix stops detection of shift+alt+function key

5.3.53
——
Problem with font on last line of justified special text
Misinterpretation of Windows keyboard event can cause duplicate key to be returned after window close

5.3.52
——
Support alt+function key properly (returns 360-369,395,396)
Also shift+alt+function key (returns 440-449,491,492)
Also ctrl+alt+function key (returns 450-459,493,494)

5.3.51
——
Support new option to specify key code to be returned for a Net event (/event-name:key-code)

5.3.50
——
Repaint ActiveX/Net controls individually on a forced window repaint if clipchildren set
SP2SAV=4 applies to ActiveX/Net controls with program data option set
Allow for Format beginning with period when checking if control is numeric

5.3.49
——
ActiveX protection code causing problems for other controls
Attempt to set control Enabled property as well as window property

5.3.48
——
Stop toolbar/statusbar window shifting on mouse click
Problem with sp2check and old format panels

5.3.47
——
Possible problem with arrow down in repeat groups
Mouse wheel might act on wrong repeat group
Allow for icon cursor when zooming
Stop windows exceeding screen size when zooming
Zoom setting saved immediately rather than on end-session if SP2ZOO=3
Zoom keys causing problems if zoom not activated

5.3.46
——
Properly reorder panels in memory on display-panel call

5.3.45
——
Set SP2RPO=1 to turn on relative positioning so that a dialog box’s position relative to its owner is maintained even if this window is moved
Set SP2ZOO=1 to allow the Ctrl plus/minus keys to zoom windows in/out (also available on a window’s System menu)
Zoom setting applies to all open windows
Add 2 to this value to cause the zoom setting to be saved across sessions
Set the SP2FON x6 switch if you have trouble with zoomed text being truncated

5.3.44
——
Problem with DotNet boolean items initialized to spaces

5.3.43
——
Problem with nested field loops/performs in generator
Exit perform not working in field loops/performs in generator
Clip rounded group borders to avoid black corners
Reset low-value program fields entry for DotNet boolean item
Use /init-val=xxxx in Value string to set initial value for DotNet items with ActiveX program value option set
Fix field Misc-options usage by ActiveX items

5.3.42

——
Allow fields in groups to use same program offset as fields in container or other contained panels
New sp2.cbx included to support the above
Use %public%\Flexus (usually C:\Users\Public\Flexus) before %appdata%\Flexus

5.3.41

——
Display toolbar background and border properly in wide windows
Set Special format to z to cause non-bmp images to be clipped (sp2ima??.dll v5.3.41 also needed for this feature)

5.3.40
——
Search %appdata%\Flexus in Win64

5.3.39 production release

——

5.3.38
——
Remove superfluous debug messages

5.3.37
——
Problem accessing files via PATH
Allow user to cancel out of lock message
5.3.36
——
Problem with keyboard event
Add 512 to SP2EDT to cause system entry fields to use panel color as default
5.3.35
——
Set fd-output = X”01″ to leave protection alone on display-field call
5.3.34
——
Disable repeat in editor
Specify repeat group for window scrollbar in editor
Set pr-var-act=A to add option to listbox or combobox
Problem with calling set-record a second time for fonts or colors
Memory problem in properties box
5.3.33
——
No visibilty adj (pd-options-7 X”01″) means don’t adjust window pos to make it wholly visible
Clipboard data > 32k
SP2TMX=1 means terminate on SP2TMO timeout
5.3.32
——
Problem with new 64k static limit
5.3.31
——
Problem with static fonts
5.3.30
——
5.2.23 set-property fix not installed properly
5.3.29
——
Colored and disabled radiobuttons and checkboxes
5.3.28
——
Problem setting next-subpanel to a subwindow that hasn’t been opened
Output panel name to sp2dbg file on converse-panel with wait-sw=n
5.3.27
——
Link a font id to a color id so font can be changed via program Colors area for a custom field within a repeat
Color name not being shown in change color dialog box
Set pd-width = -1 on get-panel-def to retrieve panel from any window
Force uib.dbg to be generated by making get-version call with bf-data set to “DUMPMEM”
5.3.26
——
Don’t check image file if streaming the image – see image add-on
Don’t show error on get-configuration if SP2DBG=1
5.3.25
——
menu-id contains last key pressed on key-enter-field
5.3.24
——
Problem opening subwindows
5.3.23
——
Problem with set-property and ActiveX
Set rd-misc-options X”10″ bit to use window scroll bar for this repeat if more than one repeat
Problem opening toobar
Subwindow not being displayed properly
Set program Type to “z” to suppress display of subwindow
5.3.22
——
Set mo-state=a to force a new option on set-menu-option call to allow duplicate ids
Width of italic fonts not calculated correctly
5.3.21
——
Get rid of erroneous debug code in av code
Problem handling very old repeats
5.3.20
——
Reset radio button group on display-field only if setting changed
5.3.19
——
Problem with navigation within container
5.3.18
——
Dotnet checkboxes and radiobuttons not being set properly
Create clipboard file in TEMP folder if necessary
5.3.17
——
Problem with key-mouse-move
5.3.16
——
Problems with colored radio buttons and check boxes or with color change set
Allow format string longer than 30 to be entered in props box
Format combo and list box entries properly in props drop down
5.3.15
——
get-field-data returns selection index for combos in fd-prog-off
Problem with set-property delete and insert options
Group title being corrupt during setting tab sequence
5.3.14
——
Miscellaneous changes
———————
Set proper values for DotNet boolean fields with discrete values
Return key-select for DotNet field with program control = s/o when program value changes
Set last-field for DotNet field with program value
5.3.13
——
Miscellaneous changes
———————
If DotNet date is 01/01/01 return 00/00/00
5.3.12
——
Miscellaneous changes
———————
System menu as panel property
5.3.11
——
Miscellaneous changes
———————
Problem with propbox bitmap dialog box
Reference SP2CEN when setting DotNet date from 6 digits
Extract year from DotNet date when getting 6 digits
5.3.10
——
Miscellaneous changes
———————
Allow for 6 digit dates and zero dates in DotNet
5.3.9
—–
Miscellaneous changes
———————
SP2SAV=4 problem

5.3.8
—–
Problem generating repeat group offsets spanning 32k boundary

5.3.7
—–

Miscellaneous changes
———————
Problem setting DotNet values

5.3.6
—–

Miscellaneous changes
———————
If “container” is used for sp2gen panel parameter the first container panel will be generated
Program length can be less than Item length for listbox/combobox

5.3.5
—–

Miscellaneous changes
———————
Field Options-5 X”08″ means field is secured (same as Protection = s)
Static Misc-options X”20″ means calculate width based on text
Group Title color

5.3.4
—–

Key-mouse-move
————–
Set Hint text to “$return” to cause sp2-key-mouse-move to be returned when mouse is on a system field
panel-last-fld-id, etc. identifies field or is set to zero when mouse leaves field

Miscellaneous changes
———————
rd-misc-options X”08″ means repeat is disabled
Allow for DateTime object when setting DotNet value
0xff means blank entry in listbox
panel-wait-sw=h same as t except that time is in 1/100 seconds
Allow sp2-mo-name to be used as key for set-menu-option, etc.

5.3.3
—–

Miscellaneous changes
———————
Enter in repeat group field does not activate default pb if return on entry and click outside columns set (pseudo-listbox)
No border and no program Fields area entry when subwindow field created in editor
Problem with color handling for ActiveX fields
Problem with control key handling in add-on controls
Font created with Width=0 uses default width
Get-property pr-action=P retrieves Proptection as set by program
Group Title in border (gd-misc-options X”04″) forces title to overlay border
Add 128 to SP2DEC to disable 5.2.109 numeric keypad change
Icon field Suppress return on exit (fd-options-5 X”02″) (same behavior as pushbutton Immediate return)
Icon field Default button (fd-options-5 X”04″) (same behavior as Default pushbutton)
Mnemonics will jump to fields in other subpanels
Problem with handling Activex color event
Suppress message box for enter field event in editor test
Check for existing font properly before adding new font
SP2SAV=4 suppresses the setting of system entry field values during repaints

5.3.2
—–

Miscellaneous changes
———————
Problems with pushbutton Fields area feature
Grey out image button
Last-subpanel not set on window open

5.3.1
—–

Miscellaneous changes
———————
Generator not allowing for a menu in a subpanel
Close up combo dropdown if enter pressed
Suppress combo dropdown if no values
Allow click in image button in another panel within container
Correct handling of focus rectangle for icons
Set last-subpanel correctly when button clicked

5.3.0
—–

Text with image buttons
———————–
Control type = “i”
Type = X”02″
Special format = w
Miscellaneous = X”20″ – multi-image button
Item length = length of image slot in Value (set to Max length / 4 in editor)
Slot 1 starting at offset 8 (Text/Icon file in editor) = text for button
Slot 2 starting at offset 8 + Item length (Icon details in editor) = name of bitmap file for background image
Image will be stretched to fit by dividing it into 3 parts, the first used for left side of button, the second stretched to fill middle of button, the third for right side of button

Max space for statics
———————
Increased from 32k to 64k

View subpanels menu option in editor
————————————
If there are multiple subpanels within a container this option allows a subpanel to be edited with the container and other subpanels visible
Subwindows are displayed as a grey block but still have to be edited separately
View/Test tests the container rather than the panel

Key-change
———-
Alternative to panel-wait-sw = 1/2
Field Options-5 X”01″ flag
Returns sp2-key-change-field on any change to custom or system entry field
Panel-last-col contains offset of cursor and normally should not be changed

ActiveX/DotNet control value
—————————-
Field Options-4 X”80″ (ActiveX program value) means set/get Text property for ActiveX/DotNet control from program Fields area entry
Targeting the Text property can be overriden by setting sp2 Caption property to a new property name
Field Options-4 X”40″ (ActiveX protection) means protect ActiveX/DotNet control based on program Types area entry

Repeat group options
——————–
Option to click outside column (space between columns if present) to select row in repeat group – rd-misc-options X”04″
Repeat group color

Miscellaneous changes (including changes in versions 5.2.111 thru 5.2.119)
————————————————————————–
Unused panels deleted from sp2.pan
If window opened with hide-sw=y it can be converted to a system window using set-window-def and hide-sw=n (visible) or x (hidden)
Allow Clipchildren flag to be set after window has been opened
Check for push button mnemonics in other panels within container
Adjustment to rimmed and thick border type
Always allow scrollbars if sbar-sw = r
Check for default push button in panels within container
Suppress hatch pattern at runtime for X”05″ controls if Icon file set to “nohatch”
Menu accelerator overrides control key if both set
SP2OIC=2 causes icons to scale up a bit better
Group Misc options X”01″ means shift group title up so it overlays border
Window color for group title if transparent panel
Problem with colored radio buttons in multi-panel window
Allow menu to be internally defined in hidden window
Field Usage option = e sends enter to control (but not tab)
Allow field change to unprotected when no Types area
Problem selecting item in group if fields not defined in sequence
Allow for zero suppression with minus signs in Format
Reset other radio buttons in group if display-field used to set radiobutton
Jump to default pb if not display-only and enter pressed
Hand mouse shape – set Current color to 2 for a windowed icon
Problem with set-property for an ActiveX/DotNet control
Mnemonics in text buttons
Close up combo dropdown if enter pressed
Suppress combo dropdown if no values

5.2.124
——-
Colored and disabled radiobuttons and checkboxes
Problem setting next-subpanel to a subwindow that hasn’t been opened

5.2.123
——-
Remove erroneous debug audiovideo code

5.2.122
——-
Problems with colored radio buttons and check boxes or with color change set
Create clipboard file in TEMP folder if necessary

5.2.121
——-
Add 128 to SP2DEC to disable 5.2.109 numeric keypad change

5.2.120
——-
Problem with setting color for listview/add-on’s
Problem with detecting escape key, etc. for listview/add-on’s

5.2.119
——-
Close up combo dropdown if enter pressed
Suppress combo dropdown if no values

5.2.118
——-
Reset group if display-field used to set radiobutton
Jump to default pb if not display-only and enter pressed
Allow for zero suppression with minus signs in Format

5.2.117
——-
Problem with justified multi-line text

5.2.116
——-
If window opened with hide-sw=y it can be converted to a system window using set-window-def and hide-sw=n (visible) or x (hidden)
If Caption is set use this as data property name for items with ActiveX Program Value (see 5.2.113)
Fix get-field-data for items with ActiveX Program Value
Set chg-sw for items with ActiveX Program Value
Support date format for items with ActiveX Program Value
Allow Clipchildren flag to be set after window has been opened

5.2.115
——-
Check for push button mnemonics in panels within container
Adjustment to rimmed and thick border type

5.2.114
——-
Always allow scrollbars if sbar-sw = r
Check for default push button in panels within container

5.2.113
——-
Suppress hatch pattern at runtime for X”05″ controls if Icon file set to “nohatch”
Menu accelerator overrides control key if both set
SP2OIC=2 causes icons to scale up a bit better
Allow for multiple panels in window when setting control color
Field Options-4 X”80″ (ActiveX program value) means set/get Text property for ActiveX/Net items from program Fields area entry
Targeting the Text property can be overriden by setting sp2 Caption property to a new property name

5.2.112
——-
Group Misc options X”01″ means shift group title up so it overlays border
Problem with 111 unprotected change
Window color for group title if transparent panel
Problem with colored radio buttons in multi-panel window
Allow menu to be internally defined in hidden window

5.2.111
——-
Field Usage option = e sends enter to control (but not tab)
Allow field change to unprotected when no Types area
Problem selecting item in group if fields not defined in sequence

5.2.110
——-
Problem with quotes in new generator syntax
Problem with generating Fields area for a container with toolbar

5.2.109
——-
Adjustment to SP2OBO logic
Handle numeric keypad period in system field as comma if SP2DEC=1

5.2.107
——-
Stop extra window scrolling during cursor postioning if window sbar-sw = r
Do whole window repaint at end of scrolling if scaling active (see 5.2.101)
Problem with clear-window in text mode
SP2OBO=1 causes borders to be adjusted to attempt to allow for scaling

5.2.106
——-
Problem with erase-window call if hide-sw=y set

5.2.105
——-
Zero values in signed fields should be returned with sign byte set
Problem with SP2NCS=1 causes window to scroll after scrolling repeat group

5.2.104
——-
Problems with justify=j
Specify Range values to set spin button range (also set Value to specify initial value with range)

5.2.103
——-
Justify = j for statics

5.2.102
——-
Justify = j means justify left and right, Special text = y must also be set

5.2.101
——-
Allow menu option name to be maintained in editor
Suppress whole window repaint when scrolling window and scaling active
Reset program length in editor if push button has fields area entry

5.2.100
——-
Set SP2EDT=256 to trap double-click in a system entry field
Correct handling of types and colors using display-field rather than Types and Colors areas
Correct handling of repeat group vertical occurs when Types area not used

5.2.99
——
Generator problem if subwindow field points to non-existent panel
Set fd-prog-spec X”40″ bit on display-field call to select item in listbox using zero-based index held in fd-prog-off
Problem with Special format=a icon fields linked to jpg’s

5.2.98
——
Problem with tab windows containing unprotected subwindow fields

5.2.97
——
Allow display-field to change type/color without effecting data if fd-initial-len = 0
Special format=f can cause jpg’s to be scaled twice
Return correct last-fld-id, etc. after switch within container then return on select

5.2.96
——
Problems with editor select all

5.2.95
——
Allow for Special format=f in 5.2.93 jpg sizing logic

5.2.94
——
Problem with SP2EDT=128

5.2.93
——
Button jpgs not being scaled correctly
SP2EDT=128 means no insertion allowed if field is full
Problem with get-field-data function if Program data X”02″ flag set
ActiveX protection (field More options X”40″) means treat display-only and protected types as for regular fields

5.2.92
——
Adjust shifting for custom fields with more characters that fit in visible area
Avoid resetting focus for third party controls if child of parent control already has focus
Keep panels in sequence within window

5.2.91
——
Problem with sp2-pr-var-act=L introduced in 5.2.88

5.2.90
——
Support UTF-8 in buttons, listboxes and comboboxes
Allow regular environment variables to be retrieved with get-configuration

5.2.88
——
sp2-pr-var-act = D allows deletion of data of length=pr-len from a var-data section at offset=pr-offset
Problem in code generator with panels with more than 500 fields
Allow environment variables (%…%) to be embedded in SP2DIR as long they equate to single directories

5.2.87
——
sp2-pr-var-act = I allows insertion of data of length=pr-len into a var-data section at offset=pr-offset

5.2.86
——
Editor supports up to 500 fields in a group

New code generator template language (beta)
——————————————-
The code generator now supports more user-friendly cobol-like tokens alongside the old numeric ones.  Use the command line “sp2cbxcv old-cbx-file” to convert an existing cbx file into the new format – the new file will be called sp2cbxcv.out and can be renamed appropriately, for example:
sp2cbxcv sp2.cbx
ren sp2.cbx sp2cbx.bak
ren sp2cbxcv.out sp2.cbx
Here are the new tokens with their numeric equivalents:
$000 – $new-file name
$001 – $panel-name
$002 – $panel-prog-len
$003 – $panel-prog-cnt
$007 – $perform for fields with prog-len
$008 – $end-perform
$009 – $field-name
$010 – $field-fmt
$011 – $if repeat
$012 – $else
$013 – $repeat-vert-occ
$014 – $perform for fields in repeat
$015 – $end-if
$016 – $end-perform
$017 – $field-id
$018 – $perform for fields with prog-num
$019 – $perform for base fields
$021 – $if first-time
$022 – $file-name
$024 – $field-filler
$026Lx(y) – $field-len (x+1:y) –new token uses position rather than offset to be consistent with cobol reference modification
$026Nx(y) – $field-num (x+1:y)
$026Cx(y) – $field-char (x+1:y)
$026VAx(y) – $field-var-A (x+1:y)
$026VBx(y) – $field-var-B (x+1:y)
$027x=(y) – $if x = y –put y in quotes if it contains embedded spaces
$027x!=(y) – $if x != y –not =
$027x>(y) – $if x > y
$027x<(y) – $if x < y
$027x>=(y) – $if x >= y
$027x<=(y) – $if x <= y
$028 – $end-if
$029 – $new-file-ask
$030 – $group-len, etc.
$031 – $else
$032 – $panel-len, etc.
$033 – $perform for statics
$034 – $static-len, etc.
$036 – $dollar
$040-$049 – $var-0 thru $var-9
$050x=(y) – $set $var-x = y –put y in quotes if it contains embedded spaces
$050x+(y) – $set $var-x + y
$050x-(y) – $set $var-x – y
$050x*(y) – $set $var-x * y
$050x/(y) – $set $var-x / y
$050x%(y) – $set $var-x % y –remainder from dividing x by y
$050x#(y) = $set $var-x # y –convert to numeric (eg #(A) is 65)
$050x&(y) = $set $var-x & y –and
$050x@(y) = $set $var-x @ y –character within x specified by index y beginning at 0
$051 – $perform until exit
$052 – $exit perform
$053 – $end-perform
$054 – $menu-len, etc.
$056 – $perform for fields with tab
$057 – $perform for groups
$060 – $toolbar
$061 – $end-toolbar
$070-$079 – $var-10 thru $var-19
$087 – $decimal
$091 – $perform for fields and statics
$098 – $group-name
$100 – $no-sp-lv
$106 – $perform for repeats
$107 – $repeat-len, etc.
$111 – $perform for panel and subpanels
$113 – $or
$117 – $perform for fields
$120-$139 – $var-20 thru $var-39
$143 – $quote

5.2.83
——
Problem with poff/pdup
Fix RM set-panel-fields, etc.
Group flat border not being deleted

5.2.82
——
Show panel description alongside name in editor treeview
Repeat group values
SP2OCH
– adjusts scaling in a similar way to SP2OCW so that vertical position is consistent during scaling
– set SP2OCH to the cell height that you are using
Set sp2-ms-line-cnt = -1 to make a beep rather than display a message box
sp2.cpy updated for compatibility with converter

5.2.81
——
Same poff for dup flds in repeats

5.2.80
——
Set “Same poff for dup flds” (pd-options-6 = X”04″) to specify that fields duplicated across panels within a container
should share the same Fields area item
Set “Same pnum for dup flds” (pd-options-6 = X”08″) to specify that fields duplicated across panels within a container
should share the same Colors/Types area items
SP2END=2 means allow end and home to be used as control keys

5.2.79
——
Allow for multiple container levels when issuing editor warning about container generation
Set “All keys control keys” (pd-options-6 = X”10″) to specify that any key returns control (apart from input to system fields)
Repeat group name (rd-name)

5.2.78
——
Enhanced WC/X flag

5.2.77
——
Exclude hidden windows from bring to foreground logic

5.2.76
——
Try to ensure window is top level when bring to foreground

5.2.75
——
Problem tabbing into subwindow field with no tab fields in subpanel
Themed border for windowed icon focus if border=d and SP2VST=1

5.2.74
——
Problem with get-field-def by name

5.2.68
——
Problem with classes

5.2.67
——
Set SP2NCS to prevent cursor relocation during vertical scrolling
Avoid half hidden fields during vertical scrolling if SP2VTS set

5.2.66
——
Get rid of pointers in RM version of sp2.cpy

5.2.64
——
SP2OWN=8 means bring window to foreground when made visible

5.2.62
——
SP2OWN=4 means bring all new windows to foreground

5.2.61
——
Problem with tab sizing

5.2.60

——

Still problems with self-drawn buttons

5.2.58

——

Problems with new self-drawn colored radio buttons and check boxes

5.2.57

——

Help not working properly for container panels

Problem with popup subwindows

5.2.56

——

Problem with working-storage panels in existing windows

5.2.54

——

Problem with special text justification

Problem with copy file import

5.2.53

——

Support for animated gif’s in JPG add-on

5.2.52

——

Problem with assigning window ownership

Updated sp2.chm help file

Handle configuration values longer than 256

Problem with dynamic icons

Problem with special text justification

5.2.51

——

set-mouse-file

————–

New function to set the mouse shape based on a file – .cur (static) and .ani (animated) files supported – see \windows\cursors folder for example files. Parameter is sp2-buffer with file name in sp2-bf-data.

Miscellaneous

————-

Problem retrieving system date format

Field Options-4 X”20″ – pushbutton fields area – use program Fields area for push button text

5.2.50

——

Class settings for disabled not being picked up correctly

Allow for repeat fields with auto-input

5.2.49

——

Field Options-4 X”10″ – no icon bg clear – allow transparent graphic (png,gif) to be used with windowed icon

5.2.48

——

Problem with colored radio buttons/check boxes

5.2.47

——

Problem with transparency code for windowed icons

Allow non-jpg image formats – new sp2ima??.dll required

Problem control key handling in generator template

5.2.46

——

Problem with transparency code for windowed icons

5.2.45

——

Allow for transparency and alpha blending with windowed icons

Stop windowed statics being redrawn unnecessarily

Multi-line windowed static

Make sure controls redrawn properly after anchor processing

Alt-F12 returning wrong code

Problem with fonts in 64 bit mode

5.2.44

——

Problem with anchored fields in subwindows

Allow for clipchildren and transparent windowed fields

5.2.43

——

sp2-get-configuration call – put var to be queried (eg. SP2DIR) in sp2-bf-data

Field as windowed static – fd-options-4 = X”08″

Allow transparent background for windowed statics, radio buttons, check boxes

Support set-property action=R for windows and panels

5.2.41

——

Specify display date format with SP2DTE= (eg. MM/DD/YYYY)

5.2.38

——

Problem with immediate return push buttons

5.2.37

——

Allow for fields preceding grid in sp2grid sample code

5.2.36

——

Problem with tabs

5.2.35

——

Problem with clear-menu function

5.2.34

——

Problem with window scrolling

5.2.33

——

Hidden push buttons created hidden

5.2.32

——

Grid

—-

Define header fields and data fields then set panel grid flag to create grid

– grid flag is panel Options-5 = X”80″

– panel cell size must be 1 by 1

– number of fields divided by 2, first half assumed to be headers, second half data

– all fields sized and positioned automatically

– splitter fields (see below) added automatically

– repeat group and window scroll bars added automatically

– options may be set in panel User data:

rc – total number of rows (default = 100)

dw – divider width (default = 2)

dh – divider height (default = 2)

hd – headings y/n (default = y)

sz – column resize allowed y/n (default = y)

Eg. rc=500,dw=1,dh=1

– include grid panel as a subwindow if you want other fields in same window

– see sp2grid.cbl for sample code for dynamically created grid

Splitter field

————–

Allows mouse movement to be tracked so fields or whatever can be resized

Control type = i, Type = X”06″, Protection = y, Usage option = w

panel-key = -32, panel-last-col = mouse column

Miscellaneous

————-

Problem with special characters in multi-line text file display

Backtab not working properly moving between subpanels

Problem with error handling in system entry fields

Allow for scroll bar when scaling a multi-line entry field

Entry field margins (pd-options-6 = X”01″)

5.2.30

——

Colored radio buttons and check boxes not displaying properly

Radio button in child window being checked on focus

5.2.29

——

Problem display container panels in editor test

5.2.28

——

Allow text color in radio buttons and check boxes

Preserve window centering after editor View/Size

5.2.27

——

pr-action=C supported for repeat groups

Problem with activating child windows

Check fields in other panels when handling events

$141=parent of current subpanel in generator

pd-tab-options X”20″ means tabs handled manually

Usage option = n for a subwindow field means subpanel only (no separate child window)

Allow panel switch if in container

pd-options-5 X”40″ means panel is not visible

Set Value TEXTFILE=myfile.txt to display a text file in a multi-line system field

get-field-def with fd-name will search all panels in current window

5.2.26

——

Editor issues error if you try to generate a subpanel – must generate container

Copy files generated using sp2nofil.cbx can be imported into the editor – original panel file not needed

Option to hold converted program info in User data (pd-options-5 X”20″)

fd-options-4 = X”04″ means icon is a hyperlink with Help as its href

5.2.25

——

Return on entry (fd-options-4 X”02″) (sp2-key-enter-field = 31)

Another problem with justified special text

5.2.24

——

Allow for ActiveX event fired as a result of a method call

5.2.18

——

Option to use default field value if program value is blank (fd-options-4 X”01″)

Panel not saved properly after directory switch for graphic

Problems with justification of special text

Cursor-col not being returned properly for system fields that don’t initially have focus

5.2.11

——

Problem with justfied fields and unicode changes

5.2.10

——

Problem with autotab in system fields

Cut for custom fields if SP2CUS set

5.2.8

—–

Unicode support

—————

Limited support for program data in UTF-8 format is provided if SP2IBM=32 is

set. This currently only applies to static text and system entry fields.

5.2.3

—–

Generator

———

Support colors 1 and 7

Allow for program colors

$119XXX where XXX is configuration variable

$050x@(y) set x to a character within x specified by index y beginning at 0

Editor

——

Allow multi-line entry for multi-line push button

Class changes

————-

Allow class in special text \a”myclass”

Miscellaneous

————-

Set converse-data last-field items properly after container switch

5.2.2

—–

Class changes

————-

font-family recognized rather than font-name

font-weight:bold recognized

5.2.1

—–

Class changes

————-

Problem with blank text if no graphics in window

Dynamic icon mods need not be set if hover defined for class

5.2.0

—–

Class for text buttons

———————-

New field property is name of a class. This name can be referenced in a regular CSS file.

The CSS file should itself be referenced by configuration variable SP2CSS to activate

the styles within it. The following sample definitions show all the styles that are

supported:

.myclass

{

font-family:arial;

font-size:13px;

color:white;

background-color:#0000FF;

cursor:pointer;

border-color:#00FF00;

border-style:solid;

border-radius:10px

}

.myclass:hover

{

background-color:teal;

text-decoration:underline

}

.myclass:active

{

background-color:green;

text-decoration:underline

}

.myclass:disabled

{

background-color:gray;

}

The above styles would apply to a text button with Class set to “myclass” given that

they were contained in a file referenced by SP2CSS. The corresponding field properties

should be set to “default” for the styles to take effect. These properties are:

Font

Color

Current color

Border color

Border type

——-

5.0.101

——-

Miscellaneous

————-

Problem repainting controls after anchor resize

5.0.100

——-

Miscellaneous

————-

Problems setting Program field length and count for dynamically defined repeat groups

5.0.99

——

Miscellaneous

————-

Problem with hints for system fields

5.0.98

——

Miscellaneous

————-

Problem with subwindow colors/types

5.0.97

——

Miscellaneous

————-

Fix problem with SP2CUS=2

Stop blank lines being inserted during paste

Reset $103 token in generator

5.0.96

——

Miscellaneous

————-

SP2CUS=1 support for pasting column into a repeat

SP2CUS=2 disallows copy/paste if mouse-sw=r or o

5.0.95

——

Miscellaneous

————-

Allow more than 1 field in horizontal occurs

Check for valid jpg file

5.0.94

——

Miscellaneous

————-

Allow for renamed dll in SP2VST=1 logic

5.0.93

——

Miscellaneous

————-

Set nd-name to high-values and read-next-panel will retrieve panels in current window

5.0.92

——

Miscellaneous

————-

Container panel in existing window still not working properly

5.0.91

——

Miscellaneous

————-

Disallow click on field in another panel within same window

5.0.90

——

Miscellaneous

————-

Set SP2CUS=1 for limited copy/paste for custom fields with right mouse button

Correct vertical justify for static text

5.0.89

——

Miscellaneous

————-

Problem with windowed icon event handling

5.0.88

——

Miscellaneous

————-

Problem setting Program number >= 32k

5.0.84

——

Miscellaneous

————-

Allow separator in popup menu

5.0.83

——

Special text

————

Use \sx to specify a different control character to be used instead of \.

5.0.82

——

SP2OCW

——

Adjusts scaling so that scaled fixed pitch fonts will still be in sync with

the scaled cell size. Set SP2OCW to the cell size that you are using. For

example, if SP2OCW=2 scaling will be done in increments of 1/2 so that

SP2OWD=640 would scale to 960 on a 1024 monitor rather than 1024.

SP2CAS

——

Set to u or l to turn on global case conversion. The field Case property

overrides this – use a value of n to specify no case.

5.0.81

——

Miscellaneous

————-

Problem with clear-panel

5.0.80

——

Special text

————

Set Special text property (fd-options-3 x”80″) to have multi-line custom fields

accept imbedded control characters to set font and color of specific text:

\fxxx – set font where xxx is font id

\cxxx – set color where xxx is color id

\n – new line

No input is allowed into multi-line custom fields

5.0.79

——

Miscellaneous

————-

Allow for up to 500 panels in memory

5.0.77

——

Miscellaneous

————-

Problem with field font after scrolling

5.0.76

——

Miscellaneous

————-

Stop reading color record in advance

5.0.75

——

Miscellaneous

————-

Panels with zero size not clearing properly

5.0.74

——

Miscellaneous

————-

Problem with display-field/get-field-data and numeric fields

5.0.73

——

Miscellaneous

————-

Improve appearance of scaled down bitmaps

Use black group border if no themes

Support row-col-sw=2 in justified fields

5.0.72

——

Miscellaneous

————-

Problem with text file listboxes and item-len gtr than 256

5.0.69

——

Miscellaneous

————-

Problem with deleting characters in special format field

sp2thred not working properly as sp2cli in thin client

Problem with system field hints

5.0.68

——

Miscellaneous

————-

wait-sw=2 not returning properly when entry field truncated

Make sure current panel set after window close

Test for group name properly in template file

5.0.67

——

Miscellaneous

————-

Problem with entering key properties

5.0.66

——

Miscellaneous

————-

Problem with generator token 110

Properties static getting into user panels

5.0.65

——

Miscellaneous

————-

Still a problem closing windows with toolbars

5.0.64

——

Miscellaneous

————-

Problem closing windows with toolbars

5.0.63

——

Miscellaneous

————-

Problem with subpanels in generator

Scroll justfied custom fields as necessary

Allow for container panel in existing window

Clear-panel must closes subwindows if container panel

5.0.62

——

Miscellaneous

————-

No delete on resize flag causes problem with fields added out of sequence

SP2END=1 not working properly

Colors above x”fa” used by editor but ok for use at runtime

Set field Blank first to “n” to stop highlight on entry for a system field

Allow up to 11000 for initialized multiline text

Prevent truncation of long icon details in editor

5.0.61

——

Miscellaneous

————-

Check for presence of alpha channel in 32-bit bitmap

Stop scroll bars in Icon value box

5.0.60

——

Miscellaneous

————-

Do sp2-wd-ownr-id=-3 logic if no windows open

Problem with unix write-panel

5.0.59

——

Miscellaneous

————-

Problem with Refresh only on change property

Current color will highlight text icon on focus rather than mouse down if Protection = p

Support anchor property for subwindow fields so subwindows can be anchored

Use SP2OWN=2 as equivalent to sp2-wd-ownr-id=-3

5.0.58

——

Miscellaneous

————-

Problem with get-input and subpanels

5.0.57

——

Miscellaneous

————-

Automatically close child windows to prevent problems in thin client

5.0.56

——

Miscellaneous

————-

Allow for no decimal point when Format changed and program Decimals set

Allow for 7 digit values in generator

No autoskip in open panel dialog

5.0.55

——

Miscellaneous

————-

Support SP2EBC=1 in Fujitsu version

5.0.50

——

Miscellaneous

————-

Open help file properly

5.0.49

——

Miscellaneous

————-

Repeat group field not always returning if Program control set

5.0.48

——

Miscellaneous

————-

Use proper character set for font

5.0.47

——

Miscellaneous

————-

Make sure cursor is displayed

Problem after deleting static

Allow for repeat vertical gap in cells when coloring group

5.0.46

——

Miscellaneous

————-

Problem setting window title

5.0.45

——

Miscellaneous

————-

Resize tabs if contained in a no border window

5.0.44

——

Miscellaneous

————-

SP2DEC=32 means update Fields area even if no change

5.0.43

——

Miscellaneous

————-

Keep memory blocks in sequence to layer panels correctly

5.0.39-42

———

Miscellaneous

————-

Updates to support non-intel chip

5.0.38

——

Miscellaneous

————-

Problem selecting icon file from dialog box

Preserve long file names during selection

5.0.37

——

Miscellaneous

————-

Problem displaying extended repeat items when count is less than visible

sp2-execute-file

—————-

move “myfile.doc” to sp2-bf-data

call “SP2” using sp2-execute-file sp2-buffer

If you want to wait till app has finished:

move “-w myfile.doc” to sp2-bf-data

call “SP2” using sp2-execute-file sp2-buffer

5.0.36

——

Miscellaneous

————-

Problem with extended repeats during anchor resizing

5.0.35

——

Miscellaneous

————-

Problem with hints for icon field in a repeat group

5.0.34

——

Miscellaneous

————-

Additional sp2thred issues

5.0.33

——

Miscellaneous

————-

Problem setting Program numbers in horizontal repeat

5.0.32

——

Miscellaneous

————-

Problem with sp2thred after opening a window

5.0.31

——

Miscellaneous

————-

Problem saving off field data when program length less than max length

5.0.27

——

Miscellaneous

————-

Problem with set-property call and expanded field record

5.0.26

——

Miscellaneous

————-

Clipchildren still not being applied properly to tabs

5.0.25

——

Miscellaneous

————-

Check for windows version before using gradient functions

5.0.24

——

Miscellaneous

————-

Problem with statics

5.0.23

——

Miscellaneous

————-

Problem with containers in thin client

5.0.22

——

Miscellaneous

————-

Problem setting long Fields length in existing panels

5.0.21

——

Miscellaneous

————-

Ensure hints appear on appropriate screen

Ignore set-record if record already in memory

Allow additional panels in memory

Issue message from editor to regenerate main container panel if panels changed

5.0.20 (beta)

————-

Containers

———-

Set subwindow field Usage option to “t” to make a child window initially active

Problems with status bars

Properly select icon if linked to initial child window

Force proper resising of child windows within maximized container

Problem displaying field values within multiple window levels

Allow clipchildren property in tabs parent

Miscellaneous

————-

Set field Options-3 x”20″ flag to suppress use of return as new line within multi-lines

5.0.19 (beta)

————-

Miscellaneous

————-

Still problem with hints in editor window

5.0.18 (beta)

————-

Miscellaneous

————-

Tabbing messed up in repeats containing display-only fields

Toolbar messing up child window resizing in containers

Handle gradient as window background color

Hints being erroneously displayed in editor window

Editor scrollbars missing for panels with size children to fit set

Font not set properly for text buttons

5.0.17 (beta)

————-

Miscellaneous

————-

Additional code to handle new long values on non-Intel machines

5.0.16 (beta)

————-

Miscellaneous

————-

Problems with generator and runtime if container panel has toolbar

Problems with container panel toolbar)

5.0.15 (beta)

————-

Miscellaneous

————-

Correction to alpha channel processing

5.0.14 (beta)

————-

Miscellaneous

————-

Allow additional open windows

Draw 32bit bitmaps with alpha channel

5.0.13 (beta)

————-

Miscellaneous

————-

Problem with container popups in thin client

5.0.12 (beta)

————-

Miscellaneous

————-

Problem generating panels with toolbars from editor

5.0.11 (beta)

————-

Miscellaneous

————-

Internal problem with system field color logic

5.0.10 (beta)

————-

Miscellaneous

————-

Adjustments to support container panels in thin client

Problem with indexing large panel file records

Get rid of thousands separator in spin button fields

Change label on editor icon properties dropdown to support text buttons

Problem with display of new format panel records on Open panel popup

Tab numbers being lost during anchor processing

5.0.9 (beta)

————

Miscellaneous

————-

Allow for long reclen in internal functions used by tc avc

5.0.8 (beta)

————

sp2check

——–

-L option creates log called checked.log

-M option deletes unused menus

Miscellaneous

————-

Allow for long items in get/set-panel/field-def calls

Support long items in property calls

Alt+function keys

SP2RTL is the same as SP2LTR

Increase maximum number of panel file index entries to around 4500

5.0.7 (beta)

————

Miscellaneous

————-

Problem with menu memory usage

Check century is 1900, 2000 or 2100 if SP2CEN set

5.0.6 (beta)

————

Panel colors and types area

—————————

Maximum size increased from 32k to 2gb

Only size limit on regular repeat group is 32k occurrences

Visual styles

————-

Set SP2VST=1 to activate visual styles without the need for a manifest file

Miscellaneous

————-

Must set field Options-3 x”10″ flag to make a pushbutton multi-line

Problem displaying listboxes

New sp2check with option to create checked.log

5.0.5 (beta)

————

HTML help

———

HTML help (.chm files) is now supported in the same way as WinHelp (.hlp files).

Set panel and field Help keywords to point to keywords embedded in the html.

Scaling

——-

Set SP2OAR=1 to maintain aspect ratio during scaling with SP2OWD and SP2OHT

Miscellaneous

————-

Preserve properties of fields if moved during anchoring

Problem with delete-menu-option

5.0.4 (beta)

————

Miscellaneous

————-

Editor not allowing for group title

Set fd-max-len to -1 and set-field-def will calculate it based on fd-format

Multi-line pushbuttons

Field Options3 x”04″ flag means no tab stop

Problem with justified entry fields in repeat groups

Long file names allowed for activex controls if Format set

Set fd-output=r on display-field call to force refresh of an icon

Hints on non-icon fields

————————

Set field Options3 x”08″ flag and Message text will be displayed as a hint

Notify icon

———–

Use the set-notify-icon function to place an icon in the notification area of the

task bar. Pass parameter sp2-buffer with sp2-bf-data set to the text to appear in

the icon hint. The icon itself will be the window icon set by the first panel file

opened or the set-icon-file-name function. Use an initial hidden window with border

set to “f” if you want to avoid a standard icon on the task bar and then define the

main window with border set to “r” so that it’s owned by the hidden window. See

sample program notifyic for suggested code.

5.0.3 (beta)

————

Miscellaneous

————-

Internal problems related to limit increases

5.0.2 (beta)

————

Miscellaneous

————-

Internal problems related to limit increases

Miscellaneous

————-

5.0.1 (beta)

————

Miscellaneous

————-

Problem with setting properties after item has been selected

Can’t assign null value to property if multiple items selected

Editor menu accelerator keys

Editor select all

Problem reading 4.x panels greater than 32k

Problem with scaling default font

Vertical scroll repeat

———————-

Set panel Options-5 x”10″ flag to cause the same behavior as window Scrollbar switch = r

Allows container panels to be used to define grids, etc.

Causes the window vertical scrollbar to control the repeat group in the window’s panel

Allows the repeat group to scroll horizontally within the window so that more columns

can be defined than are originally visible

See horzscrl.pan for example

Unprotected subwindow fields

—————————-

Allows the panel referenced by the subwindow field to be given focus as a result of

hitting tab/backtab in another field in the container panel – including the last or first

field of another subpanel

See horzscrl.pan for example

Splitters and frames

——————–

Use window Border = v or h to define vertical or horizontal splitter windows to delimit

frames within containers

All resizing is handled automatically if the container has More options x”04″ flag set

See frames.pan for example

5.0.0 (beta)

————

Introduction

————

This release is hopefully about making things easier. There are more changes (mostly as

requested by customers) to come but below is what we have so far. Please send comments

and further enhancement requests directly to andy@flexus.com – all emails will receive

a response.

Panel size

———-

Maximum panel size increased from 64kb to 1mb

Maximum number of fields increased from 500 to 5000

Panel fields area

—————–

Maximum fields area size increased from 32k to 2gb

See newrep and newrep2 programs for simplified extended repeat group logic

Container panels

—————-

Set panel Options-4 x”80″ flag for container panel (see Properties box below)

Use Subwindow fields (see below) to define subpanels

Handle all windows in subsystem using container panel converse-data area

Ideal for handling tab windows – see newtabs program

Subpanel fields area, etc. included in container panel area by generator

Current subpanel specified by next-subpanel and last-subpanel

Set next-subpanel to low-values to display container panel or an external panel

Dialog box subpanel (see below) closed automatically by enter, escape or close

Set Options-5 x”01″ flag for return-on-open (see Properties box below)

Set Options-5 x”02″ flag for return-on-entry (not popup)(see Properties box below)

Set Options-5 x”04″ flag for return-on-exit (not popup)(see Properties box below)

Set Options-5 x”08″ flag for return-on-close (see Properties box below)

See newexamp program

Subwindow fields

—————-

Control type = w

Value defines panel/window to be opened

Always a one to one panel to window correspondence

Usage option = low-value specifies a child window opened immediately

Usage option = p specifies a popup window (dialog box) opened as needed

Help key specifies key to open popup window

Help key may link to a Control key, pushbutton/icon Help key or menu Accelerator key

Set-record function

——————-

Records kept in memory until all container panels closed

Font and color records now supported so fonts.sp2 doesn’t have to be distributed

Generator template

——————

Extra code for all Key values returned including key-window-open, etc.

Extra code to handle subpanels

Extra code in sp2nofil.cbx for font and color set-record calls

Properties box

————–

Reorganized with binary options listed separately

Allow properties to be set for multiple rubber-banded items (fields only) in editor

Gradient background colors

————————–

Specify start and end RGB colors in editor

Use co-fg-bg (2) and co-fg-bg (3) with set-color-def

Set co-type (3) to “h” for horizontal gradients or “v” for vertical

Text icons

———-

Set Special format=t for simple colored buttons with text

Current color specifies color when clicked

These icons can also be used for simple tabs with a different look – see newtabs2

New tab styles

————–

Set Tabs Options x”01″ flag for focus (same as SP2TAB)

Set Tabs Options x”02″ flag for multi-line (same as SP2TAB)

Set Tabs Options x”04″ flag for vertical

Set Tabs Options x”08″ flag for bottom/right

Set Tabs Options x”10″ flag for old-style

XP/Vista themes do not support vertical/right/bottom tabs so you automatically

get non-themed (old-style) tabs if you select anything but default (top) tabs

Miscellaneous

————-

Allow current item to be changed during get-next-def sequences

Justify=v (vertical) for static text

Field border color

Rounded border for groups and icons

Flat border (usually light blue) for fields, groups and repeats

Set field options-3 x”02″ flag for delayed combobox select – only if dropdown closed

Allow cursor skip in system entry fields in insert mode (if SP2EDT=1/2 set)

Flat look and feel in editor