Navigation:  Updates >

Update to Version 1.3

Print this Topic    Previous pageReturn to chapter overviewNext page

New classes

bArrayServer
bComboEdit
bComboEditChoice
bCompoundValue
bDBServer
bDrawValueEvent

New methods

bBrowser:CaptionDoubleClick()
bBrowser:DrawFooter()
bBrowser:FirstVisibleRecNo
bBrowser:FooterHeight
bBrowser:FooterView
bBrowser:GetColumnContextMenu()
bBrowser:GetContextMenu()
bBrowser:RecordRestore()
bBrowser:RecordSave()
bBrowser:SetContextMenu()
bBrowser:VisibleRowCount

 

bDataColumn:Alignment
bDataColumn:Background
bDataColumn:Font
bDataColumn:Foreground
bDataColumn:Footer
bDataColumn:FooterView
bDataColumn:FooterVisible
bDataColumn:GetContextMenu()
bDataColumn:SetContextMenu()

 

bViewStyle:Grid

Changes at methods

bBrowser:AutoClose
bBrowser:AutoEdit
bBrowser:ContextMenuShow()
bBrowser:CurrentMode
bBrowser:EnableCaptionClick()
bBrowser:GetColumnAlignment()
bBrowser:GetColumnBackground()
bBrowser:GetColumnFont()
bBrowser:GetColumnForeground()
bBrowser:GetColumnGrid()
bBrowser:Refresh()
bBrowser:Redraw()
bBrowser:SelectionMode

 

bCellEditEvent:EditFlags

New functions

bfntSizeText()

Other changes and extensions

OwnerDrawValue
The bBrowser offers the possibility to show values of the data type Object as column values. Since the bBrowser cannot draw this, it examines whether in its owner a method DrawValue() is implemented. In this case the bBrowser calls this for drawing the object. As argument an event of the class bDrawValueEvent is passed to the method.
Support of the Wheel Mouse
The bBrowser supports now the Wheel Mouse for scrolling with the vertical scrollbar.
Strong typing changed into "slack typing"
Since the compiler of CA-Visual Objects has again and again problems with the return of strictly typed values from methods and accesses, these were converted into slack typing. This can be illustrated best by an example.
 
Example:

ACCESS CaptionView AS bViewStyle PASCAL CLASS bBrowser

 

ò

 

ACCESS CaptionView AS OBJECT PASCAL CLASS bBrowser

 
This change concerns only those developers that inherited the bBrowser. In this case the new typing must be transferred to the inherited class.

Grid added to bViewStyle
From the classes bBrowser and bDataColumn the instance variable oGrid was removed or not and added to the class bViewStyle. By this change, the column caption, the column values and the column footer can now assigned different grids. By creating an object of the class bBrowser in the method Init() a grid was created or not for the CaptionView, the DataView and the FooterView. This has the consequence that in your program code the following source code fragments must be revised:
 
Old:

oBrowser:DataView := bViewStyle{...}

 
New:

IF oBrowser:DataView=NULL_OBJECT

       oBrowser:DataView := bViewStyle{,, BALIGN_RIGHT}

ELSE

       oBrowser:DataView:Alignment := BALIGN_RIGHT

ENDIF

 
Setting the access Alignment stands only exemplarity for all other accesses of the class bViewStyle.
 
If the adjustments specified above are not accomplished, with the old proceeding the defined grid was overwrites by the bBrowser.

Error Messages

bBrowser and the character &
The character & was not draw so far, but caused that the following character was underlined. The character is now correctly drawn.
bBrowser and Append
Appending records could lead in the bBrowser to an abort, if many deleted records at the beginning of the database were and deleted records over SetDeleted() were not visible. This error is now repaired.
bBrowser Append
After an append the new record was not always scrolled into the visible area. This error is now repaired.
bBrowser:AutoAppend
The AutoAppend was not executed, if
no record were contained in the server or
bBrowser:EnableSkipEoF() were enabled.

 
This error is now repaired.

bBrowser:GetFirstVisibleRow()
The call of the method could lead to an abort, if many deleted records at the beginning of the database were and deleted records over SetDeleted() were not visible. This error is now repaired.
bBrowser and vertical scroll/skip
If deleted records were not visible over SetDeleted(), skipping with the file beginning led to problems when reorganizing the internal buffer. This error is now repaired.
bBrowser and multiple selection
By the SelectionMode #Multiple the existing selection was rejected, if a record movement (Skip(), Goto(), etc..) directly in the server and not by the bBrowser was executed. This error is now repaired.
bBrowser and multiple selection
After changing the SelectionMode the new selection was not always correctly redrawn. This error is now repaired.
bBrowser and multiple selection
If the current cell/row in the bBrowser were not selected and the bBrowser lost afterwards the focus, the current cell/row was drawn nevertheless in the selected state. This error is now repaired.
bBrowser and multiple selection
If several cell/rows were selected and afterwards the right mouse button were pressed over selected cells, the whole selection was deleted and the cell under the mouse was only selected. The existing selection remains now.
bBrowser and multiple selection
By the CurrentMode #Line could pass it that after changing a Scopes or changing the index in a server, the call of bBrowser:SelectionFirst() returned a wrong record number. This error is now repaired.
bBrowser and CurrentMode
By the CurrentMode #Line also the cells were selected drawn, with which in the column the access Selectable were set to FALSE. This error is now repaired.
bBrowser and selective relation
If in the child server of the selective relation still no records were contained and afterwards a new record were appended, that could lead to an abort in the method bBrowser:StabilizeServer(). This error is now repaired.
bBrowser and mouse click on column caption
If with the mouse on the caption of a column were clicked, afterwards the width of any column could no more be changed with the mouse. This worked only then again correctly, after a record movement was executed by the keyboard. This error is now repaired.
bBrowser and mouse click on a cell/row
By a mouse click into the empty area below the last row (EoF) no CellSelect() event were generated. The same applied also to a double click. This error is now repaired.
bBrowser and drawing of the last records
If e.g. after a missed seek the record pointer were on EoF, the bBrowser drawn only this record. So that the last record is not alone visible, now also still previous records are drawn.
bBrowser:KeyDown()
Pressing the key RETURN could lead to an abort, if no records were contained in the server. This error is now repaired.
bBrowser and edit
If by editing were scrolled horizontal, the edit control was not always moved correctly. This error is now repaired.
bBrowser:WordBreakInMemo
The flag was not supported correctly when drawing and during the edit. This error is now repaired.
bBrowser and background color
An active background color (bBrowser:Background) was not used correctly in the bBrowser in all places. This error is now repaired.
bKeyCommand:Eval()
The method aborted, if by creating the object the argument <auArguments> were not specified. This error is now repaired.

 


Page url: http://www.YOURSERVER.com/index.html?update_version_1_3.htm