Without Containers..

Using and extending SeedCode's free "back" button technique.
Posts: 2
Joined: Mon Mar 12, 2007 10:36 am
PostPosted: Fri Mar 23, 2007 4:09 pm
another trick you can do this with out a graphic container, or a graphic field storing the arrows.

Modify your field to use a formated text...

like this (fmp use unicode) â—€ â–¶

so in your calc field you could change it to a text field using this calc
And not need any parameters and the result is text repeat 5.
Code: Select all
SeedCode_BackMagic


And then adjust the CF and remove all the parameters from the CF.
Code: Select all
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


You can choose the "color" you wish the text or arrow depending on your preference. Then in your layout adjust the button masks to match the alignment of this field.
SeedCode Staff
SeedCode Staff
Posts: 2493
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Fri Mar 23, 2007 6:14 pm
Very nice Stephen; thanks!
John Sindelar
SeedCode LLC

Return to BackMagic

Who is online

Users browsing this forum: No registered users and 1 guest