|
160 | 160 | { "aFields", "" }, ;
|
161 | 161 | { "aFile", "" }, ;
|
162 | 162 | { "aFileType", "" }, ;
|
| 163 | + { "aFillRect", "NIL" }, ; |
163 | 164 | { "aFirstItem", .F. }, ;
|
164 | 165 | { "aFit", .F. }, ;
|
165 | 166 | { "aFitImg", .F. }, ;
|
@@ -3748,7 +3749,7 @@ METHOD CreateControl( nControlType, i, nWidth, nHeight, aCtrls ) CLASS TFormEdit
|
3748 | 3749 | ENDIF
|
3749 | 3750 | oCtrl:FontColor := ::myIde:StrToColor( ::aFontColor[i] )
|
3750 | 3751 | oCtrl:BackColor := ::myIde:StrToColor( ::aBackColor[i] )
|
3751 |
| - oCtrl:OnClick := { || ::DrawOutline( oCtrl ) } |
| 3752 | + oCtrl:OnChange := { || ::DrawOutline( oCtrl ) } // OnClick codeblock is ignored |
3752 | 3753 | oCtrl:OnDblClick := { || ::DrawOutline( oCtrl ), ::PropertiesClick() }
|
3753 | 3754 |
|
3754 | 3755 | CASE nControlType == TYPE_CHECKBUTTON
|
@@ -7813,10 +7814,10 @@ METHOD pButton( i ) CLASS TFormEditor
|
7813 | 7814 | /*--------------------------------------------------------------------------------------------------------------------------------*/
|
7814 | 7815 | METHOD pCheckBox( i ) CLASS TFormEditor
|
7815 | 7816 |
|
7816 |
| - LOCAL aBackColor, aFontColor, cBackground, cCaption, cCargo, cField, cFocusRect, cFontName, cHelpID, cNoFocusRect, cObj |
7817 |
| - LOCAL cOnChange, cOnGotFocus, cOnLostFocus, cOOHGDraw, cParent, cSubClass, cToolTip, cVal, cValue, cWinDraw, l3State, lAutoSize |
7818 |
| - LOCAL lBold, lEnabled, lItalic, lLeftJust, lNoTabStop, lRTL, lStrikeout, lTrans, lUnderline, lVisible, nCol, nFontSize, nHeight |
7819 |
| - LOCAL nRow, nWidth, oCtrl, uFontName, uFontSize |
| 7817 | + LOCAL aBackColor, aFontColor, cBackground, cCaption, cCargo, cField, cFillRect, cFocusRect, cFontName, cHelpID, cNoFillRect |
| 7818 | + LOCAL cNoFocusRect, cObj, cOnChange, cOnGotFocus, cOnLostFocus, cOOHGDraw, cParent, cSubClass, cToolTip, cVal, cValue, cWinDraw |
| 7819 | + LOCAL l3State, lAutoSize, lBold, lEnabled, lItalic, lLeftJust, lNoTabStop, lRTL, lStrikeout, lTrans, lUnderline, lVisible, nCol |
| 7820 | + LOCAL nFontSize, nHeight, nRow, nWidth, oCtrl, uFontName, uFontSize |
7820 | 7821 |
|
7821 | 7822 | /* Load properties */
|
7822 | 7823 | nRow := Val( ::ReadCtrlRow( i ) )
|
@@ -7883,6 +7884,8 @@ METHOD pCheckBox( i ) CLASS TFormEditor
|
7883 | 7884 | cParent := ::ReadStringData( i, "PARENT", "" )
|
7884 | 7885 | cParent := ::ReadStringData( i, "OF", cParent )
|
7885 | 7886 | cCargo := ::ReadCargo( i, "LASTFORM.LASTCONTROL.CARGO" )
|
| 7887 | + cFillRect := ::ReadLogicalData( i, "FILLRECT", "N" ) |
| 7888 | + cNoFillRect := ::ReadLogicalData( i, "NOFILLRECT", "N" ) |
7886 | 7889 |
|
7887 | 7890 | /* Save properties */
|
7888 | 7891 | ::aCtrlType[i] := ::ControlType[ TYPE_CHECKBOX ]
|
@@ -7919,6 +7922,7 @@ METHOD pCheckBox( i ) CLASS TFormEditor
|
7919 | 7922 | ::aNoFocusRect[i] := ( cFocusRect == "F" .AND. cNoFocusRect == "T" )
|
7920 | 7923 | ::aParent[i] := cParent
|
7921 | 7924 | ::aCargo[i] := cCargo
|
| 7925 | + ::aFillRect[i] := iif( cFillRect == cNoFillRect, "NIL", iif( cFillRect == "T" .OR. cNoFillRect == "F", "YES", "NO" ) ) |
7922 | 7926 |
|
7923 | 7927 | /* Create control */
|
7924 | 7928 | oCtrl := ::CreateControl( AScan( ::ControlType, ::aCtrlType[i] ), i, nWidth, nHeight, NIL )
|
@@ -13352,7 +13356,7 @@ METHOD MakeControls( j, Output, nRow, nCol, nWidth, nHeight, nSpacing, nLevel )
|
13352 | 13356 | IF ::aCheckBoxes[j]
|
13353 | 13357 | Output += " ;" + CRLF + Space( nSpacing * ( nLevel + 1 ) ) + "CHECKBOXES"
|
13354 | 13358 | ENDIF
|
13355 |
| - IF NOTEMPTY( ::aOnCheckChg[j] ) |
| 13359 | + IF NOTEMPTY( ::aOnCheckChg[j] ) |
13356 | 13360 | Output += " ;" + CRLF + Space( nSpacing * ( nLevel + 1 ) ) + "ON CHECKCHANGE " + AllTrim( ::aOnCheckChg[j] )
|
13357 | 13361 | ENDIF
|
13358 | 13362 | IF NOTEMPTY( ::aOnRowRefresh[j] )
|
@@ -13656,6 +13660,11 @@ METHOD MakeControls( j, Output, nRow, nCol, nWidth, nHeight, nSpacing, nLevel )
|
13656 | 13660 | IF ::aNoFocusRect[j]
|
13657 | 13661 | Output += " ;" + CRLF + Space( nSpacing * ( nLevel + 1 ) ) + "NOFOCUSRECT"
|
13658 | 13662 | ENDIF
|
| 13663 | + IF ::aFillRect[j] == "YES" |
| 13664 | + Output += " ;" + CRLF + Space( nSpacing * ( nLevel + 1 ) ) + "FILLRECT" |
| 13665 | + ELSEIF ::aFillRect[j] == "NO" |
| 13666 | + Output += " ;" + CRLF + Space( nSpacing * ( nLevel + 1 ) ) + "NOFILLRECT" |
| 13667 | + ENDIF |
13659 | 13668 | IF NOTEMPTY( ::aCargo[j] )
|
13660 | 13669 | Output += CRLF + CRLF + Space( nSpacing * nLevel ) + "LastForm.LastControl.Cargo := " + AllTrim( ::aCargo[j] )
|
13661 | 13670 | ENDIF
|
@@ -14425,7 +14434,7 @@ METHOD MakeControls( j, Output, nRow, nCol, nWidth, nHeight, nSpacing, nLevel )
|
14425 | 14434 | IF NOTEMPTY( AllTrim( ::aDynBackColor[j] ) )
|
14426 | 14435 | Output += " ;" + CRLF + Space( nSpacing * ( nLevel + 1 ) ) + "DYNAMICBACKCOLOR " + AllTrim( ::aDynBackColor[j] )
|
14427 | 14436 | ENDIF
|
14428 |
| - IF NOTEMPTY( AllTrim( ::aDynForeColor[j] ) ) |
| 14437 | + IF NOTEMPTY( AllTrim( ::aDynForeColor[j] ) ) |
14429 | 14438 | Output += " ;" + CRLF + Space( nSpacing * ( nLevel + 1 ) ) + "DYNAMICFORECOLOR " + AllTrim( ::aDynForeColor[j] )
|
14430 | 14439 | ENDIF
|
14431 | 14440 | IF NOTEMPTY( ::aOnGotFocus[j] )
|
@@ -17884,6 +17893,7 @@ METHOD PropertiesClick() CLASS TFormEditor
|
17884 | 17893 | { "Disabled", ::aDisabled[j], .F. }, ;
|
17885 | 17894 | { "DrawBy", AScan( { "OOHGDRAW", "WINDRAW" }, ::aDrawBy[j] ) + 1, { "NIL", "OOHGDRAW", "WINDRAW" } }, ;
|
17886 | 17895 | { "Field", ::aField[j], 1000 }, ;
|
| 17896 | + { "FillRect", AScan( { "YES", "NO" }, ::aFillRect[j] ) + 1, { "NIL", "YES", "NO" } }, ; |
17887 | 17897 | { "HelpID", ::aHelpID[j], 1000 }, ;
|
17888 | 17898 | { "Invisible", ::aInvisible[j], .F. }, ;
|
17889 | 17899 | { "LeftAlign", ::aLeftJust[j], .F. }, ;
|
@@ -17916,6 +17926,7 @@ METHOD PropertiesClick() CLASS TFormEditor
|
17916 | 17926 | ::aDisabled[j] := aResults[ ++k ]
|
17917 | 17927 | ::aDrawBy[j] := { "NIL", "OOHGDRAW", "WINDRAW" } [ aResults[ ++k ] ]
|
17918 | 17928 | ::aField[j] := aResults[ ++k ]
|
| 17929 | + ::aFillRect[j] := { "NIL", "YES", "NO" } [ aResults[ ++k ] ] |
17919 | 17930 | ::aHelpID[j] := aResults[ ++k ]
|
17920 | 17931 | ::aInvisible[j] := aResults[ ++k ]
|
17921 | 17932 | ::aLeftJust[j] := aResults[ ++k ]
|
|
0 commit comments