Harbour Minigui

Nueva Build 004

005.09.16 Harbour MiniGUI 2.0 ALPHA BUILD 004 Published.


- New: Cell ( nRow , nCol ) property for GRID control (read(write).

- New: Edit routines for GRID control. Edditing is now 'in-cell'.

- New: 'DynamicForeColor' / 'DynamicBackCColor' properties for GRID
control. Codeblock array (one element per column) evaluated
for each cell at any grid change.


This.CellRowIndex, This.CellColIndex and This.CellValue variables are
available at codeblock evaluation.


Sample:

bColor := { || if ( This.CellRowIndex/2 == int(This.CellRowIndex/2) , ;
RGB (128,128,128) , RGB (192,192,192) ) }

DYNAMICBACKCOLOR { bColor , bColor, bColor, bColor, bColor, bColor }

See \hmg\samples\grid\grid_10
\hmg\samples\grid\grid_11
\hmg\samples\grid\grid_12


- New: EDITCONTROLS Property for GRID. Yoou can specify control
type and behavior for cell edit.


EDITCONTROLS { aControlDef1 , aControlDef2 , ... aControlDefN }

Control Definition Array:


TEXTBOX

{ cControlType , cDataType , cInputMask , cFormat }

cControlType = 'TEXTBOX' (Required)
cDataType = 'CHARACTER' , 'NUMERIC' , 'DATE' (Required)
cInputMask = cInputMask (Optional)
cFormat = cFormat (Optional)


DATEPICKER

{ cControlType , cControlStyle }

cControlType = 'DATEPICKER' (Required)
cControlStyle = 'DROPDOWN' , 'UPDOWN' (Required)


COMBOBOX

{ cControlType , acItems }

cControlType 'COMBOBOX' (Required)
acItems (Required)


SPINNER

{ cControlType , nRangeMin , nRangeMax }

cControlType 'SPINNER' (Required)
nRangeMin (Required)
nRangeMax (Required)


CHECKBOX

{ cControlType , cCheckedLabel , cUnCheckedLabel }

cControlType 'CHECKBOX' (Required)
cCheckedLabel (Required)
cUnCheckedLabel (Required)


Data type for each column will depend control specified.

NUMERIC TEXTBOX : NUMERIC
DATE TEXTBOX : DATE
CHARACTER TEXTBOX : CHARACTER
SPINNER : NUMERIC
COMBOBOX : NUMERIC
CHECKBOX : LOGICAL


Sample:

@ 10,10 GRID Grid_1 ;
WIDTH 620 ;
HEIGHT 330 ;
HEADERS {'Column 1','Column 2','Column 3','Column 4',;
'Column 5'} ;
WIDTHS {140,140,140,140,140} ;
ITEMS aRows ;
EDIT ;
COLUMNCONTROLS { {'TEXTBOX','NUMERIC','$ 999,999.99'},;
{'DATEPICKER','DROPDOWN'} ,;
{'COMBOBOX',{'One','Two','Three'}} , ;
{ 'SPINNER' , 1 , 20 } , ;
{ 'CHECKBOX' , 'Yes' , 'No' } }


See \hmg\samples\grid\grid_9
\hmg\samples\grid\grid_10


- New: 'LEGENDSWIDTH' clause (optional) ffor DRAW GRAPH commands
(BARS/LINES/POINTS types).


- Fixed: '!' template symbol allows digitts.


- Fixed: BROWSE control, default Inputmassk incorrect for floating
point fields.


- Fixed: DRAW GRAPH commands, when data sseries values are all '0',
program crash (divide by zero error).


- Fixed: DRAW GRAPH commands, labels backkcolor incorrect when window
backcolor is not the default.


- Fixed: Automatic Inputmask for edit Broowse fail for numeric
fields with no decimals.


- Changed: BROWSE edit is always inplace without regarding about
'InPlace' value (Edit and Inplace properties has now the same
meaning).