I would like to simplify BackMagic by eliminating the repeats in the container field and the graphics they need. I have succeeded in using conditional formatting to modify the global container field behind a transparent .png for the back button and another behind the forward button. However, I would also like to eliminate any code that is redundant.
How would I go about doing this? I'm guessing I would have to modify the custom functions, script and container field calculations.
I did look at this post:
viewtopic.php?f=26&t=1450
Let ( [
$$Nav_BackInactive = ValueCount ( $$Nav_BackStack ) = 1 or MiddleValues ( $$Nav_BackStack ; 2 ; 1 ) = SeedCode_BackMagic_LayoutState & "¶" ;
$$Nav_FWDInactive = IsEmpty ( $$Nav_FWDStack )
];
Choose ( Get ( CalculationRepetitionNumber ) ; "" ;
Let ( address = SeedCode_BackMagic_Log ; "" ) ;
If ( $$Nav_BackInactive ≠1 ; TextColor ( "◀" ; RGB ( 0 ; 170 ; 0 ) ) ; TextColor ( "◀" ; RGB ( 170 ; 170 ; 170 ) ) ) ;
If ( $$Nav_BackInactive ≠1 ; TextColor ( "Back" ; RGB ( 0 ; 170 ; 0 ) ) ; TextColor ( "Back" ; RGB ( 170 ; 170 ; 170 ) ) ) ;
If ( $$Nav_FWDInactive ≠1 ; TextColor ( "FWD" ; RGB ( 0 ; 170 ; 0 ) ) ; TextColor ( "FWD" ; RGB ( 170 ; 170 ; 170 ) ) ) ;
If ( $$Nav_FWDInactive ≠1 ; TextColor ( "▶" ; RGB ( 0 ; 170 ; 0 ) ) ;TextColor ( "▶" ; RGB ( 170 ; 170 ; 170 ) )) ;
)// End Choose
) // End LetOne
I understand changing the repetitions to text, but the changes to the CF function above won't paste into the CF in the file and there appear to be illegal characters. Additionally, I would like to eliminate anything being written to the global (if possible), eliminate the repetitions (also, if possible) and depend just upon the conditional formatting (which does work well).
Any suggestions would be appreciated.
Thank you,
Greg

