i have many Place where it work but 2 place where "something" is going wrong ... but NO Error recorded
it is a Visual "Problem" which it got when try below CODE
- Code: Select all Expand view
- STATIC PROCEDURE NewActiveIcon( oTab, nTabs )
LOCAL ii, iMax
LOCAL nOption
LOCAL bSaveError, oError
IF oTab:IsKindOf( "TFOLDEREX" )
* #define Use_SEQUENCE
#ifdef Use_SEQUENCE
bSaveError := ERRORBLOCK()
ERRORBLOCK( { | e | BREAK( e ) } )
BEGIN SEQUENCE
#endif
nOption := oTab:nOption
FOR ii := 1 TO nTabs
if ii = nOption
oTab:SetBitmap( "MYGREEN", nOption )
else
oTab:SetBitmap( "MYTRANSPARENT", ii )
endif
* fwlog ii
* SysRefresh()
NEXT
#ifdef Use_SEQUENCE
RECOVER USING oError
ERRORBLOCK( bSaveError )
fwlog oError:description, oError:operation, oError:osCode
END SEQUENCE
ERRORBLOCK( bSaveError )
#endif
ENDIF
RETURN
---
1st "Problem" was CODE to show Item of does not appear ...
but it was in my CLASS so may some Side-Effect
now 2nd "Problem" is where i set Bitmap for TAB-Header in STATIC FUNCTION which is in MAIN.PRG
it does contain only Fivewin Method "SetBitmap()" of TFOLDEREX and not my CLASS
i don´t understand why CODE work not as expect when use ERRORBLOCK / SEQUENCE
is my CODE Syntax wrong for Fivewin
will try to make a Sample
---
edit : when try to make Sample i recognize i mean Hilight-Bar of TGrid "lost" Color, not TAB-Header
so Sample must be full Release ... work on it