FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FOLDEREX ON PAINT -> TFolderEx() how ?
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
FOLDEREX ON PAINT -> TFolderEx() how ?
Posted: Fri May 19, 2023 05:57 PM
hi,

which Parameter of TFolderEx() :New() are
ON PAINT TAB
ON PAINT TEXT

=> ;
[<oFolder> := ] TFoldereX():New( <nRow>, <nCol>, <nWidth>, <nHeight>,;
<oWnd>, [\{<cbmps>\}], <.lPixel.>, <.lDesign.>, [\{<cPrompt>\}], ;
<ntabheight>, [\{<cnHelpids>\}], <nRound>, [{|nOption, nOldOption, Self | <uChange>}],;
[{|Self,nOption| <uPaint>}], [{|Self,nOption| <uPaintxt>}], ;
[\{<nAlign>\}], <.lAdjust.>, <nSep>, <nOption>, [{|Self,nOption| <upop>}],;
<.lStretch.>, [ Upper(<(layout)>) ], [{|Self,nOption| <uAction>}], <nBright>,;
<.lAnimate.>, [<nSpeed>], <oFont>, <.lTransparent.>, [\{<cDlgsName>\}], ;
<.lBorder.>, <nClrPane>, [<(oFolder)>] )
Code (fw): Select all Collapse
      oTab_Left  := TFolderEx() :New( 40 + nBB, 1, ( nWidth / 2 ) - 05, nHeight - 180 - nBB, oMain, ;
                               aBitmaps, lPixel, lDesign, aPrompts, nFolderHeight, ;
                               aHelps, nRound, bAction, bClrTabs, bClrText, aAlign, ;
                               lAdjust, nSeparator, nOption, bPopUp, lStretch, ;
                               cLayOut, bBmpAction, nBright, lAnimate, nSpeed, oFontDefault, ;
                               lTransparent, aDialogs, lBorder, nClrPane, cVarName )
greeting,

Jimmy
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Re: FOLDEREX ON PAINT -&gt; TFolderEx() how ?
Posted: Fri May 19, 2023 06:53 PM

Sample of on Paint ?

TestFX1

Marc Venken

Using: FWH 23.08 with Harbour
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: FOLDEREX ON PAINT -&gt; TFolderEx() how ?
Posted: Fri May 19, 2023 09:36 PM
hi

thx for Answer.

i have compile run sample and look into PPO CODE
  oFld := TFoldereX():New( 3, 3,,,,;
        {aBitmaps}, .T., .F., {"&Social", "&OS", "&Games", "&Movies", "&Email", "Mo&nths", "Se&tting", "E&xit"},,;
        ,, {|nOption, nOldOption, Self | ( If( nOption == 8, If( MsgYesNo( "Do you want exit??" ),  oWnd:End(), ( ::SetOption( nOldOption ), ::Refresh() ) ), ) )}, {|Self,nOption| PaintTab( Self, nOption )}, {|Self,nOption| ( If( nOption == ::nOption .AND. nOption == 2, 65535, 0 ) )}, {0, 0, 0, 0, 0, 0, 0, 1},;
        .T.,, 2, {|Self,nOption| MenuTabs( Self, nOption )}, .F.,;
        Upper("TOP"), {|Self,nOption| ( If( nOption == 8, oWnd:End(),  MsgInfo( "Action defined to " + StrTran( ::aPrompts[ nOption ], "&", "" ) ) ) )},, .T., 50,,;
       .F.,, .F.,, "oFld" )
this i compare with Parameter in my CODE
oTab_Left := TFolderEx() :New( 40 + nBB, 1, ( nWidth / 2 ) - 05, nHeight - 180 - nBB, oMain, ;
aBitmaps, lPixel, lDesign, aPrompts, nFolderHeight, ;
aHelps, nRound, bAction, bClrTabs, bClrText, aAlign, ;
lAdjust, nSeparator, nOption, bPopUp, lStretch, ;
cLayOut, bBmpAction, nBright, lAnimate, nSpeed, oFontDefault, ;
lTransparent, aDialogs, lBorder, nClrPane, cVarName )
so
Code (fw): Select all Collapse
ON PAINT TAB  -> bClrTabs 
ON PAINT TEXT -> bClrText
greeting,

Jimmy

Continue the discussion