` Printed Icetips Article

Icetips Article



Par2: Conditionally changing tab colors based on sort order
1998-08-11 -- Dobi Sandor
 
Here is the code

on ?sheet1 newselection

execute choice(?sheet1)
  begin
          tab1{prop:color} = selectedcolor
          tab1{prop:fontstyle} = selectedfontstyle
          tab2{prop:color} = unselectedcolor
          tab2{prop:fontstyle} = unselectedstyle
          .
          .
          tabn{prop:color} = unselectedcolor
          tabn{prop:fontstyle} = unselectedstyle

  end
  begin
          tab2{prop:color} = selectedcolor
          tab2{prop:fontstyle} = selectedfontstyle
          tab1{prop:color} = unselectedcolor
          tab1{prop:fontstyle} = unselectedstyle
          .
          .
          tabn{prop:color} = unselectedcolor
          tabn{prop:fontstyle} = unselectedstyle

  end
  .
  .
  .
  begin
          tab1{prop:color} = unselectedcolor
          tab1{prop:fontstyle} = unselectedfontstyle
          tab2{prop:color} = unselectedcolor
          tab2{prop:fontstyle} = unselectedstyle
          .
          .
          tabn{prop:color} = selectedcolor
          tabn{prop:fontstyle} = selectedstyle

  end

end

In MH free templates there are the limitation, You only can select Bold
style for fonts.



Printed November 23, 2024, 2:10 am
This article has been viewed/printed 35189 times.