!******************************************************************************!
! Test the visual state of a selected/non-selected button in different themes
!
! Arguments: None
!
! @bug      2480 Theme: button state reversed in some themes
! @author:  J Bauer 
! @version: $Id: test_gcontrol_button_theme.mm,v 1.1 2011/09/28 19:12:58 jwb Exp $
!******************************************************************************!
startmacro
  switch INTERACTIVE interAct GET DEF=TRUE  SDEF=TRUE  ! for normal interactive test(s)
  switch BASELINE    baseline GET DEF=FALSE SDEF=TRUE  ! for defects or more obscure test case(s)

  if interAct then
    set instructions "In each of the button groups below, the button labeled &
                      'Selected' should appear selected, while the other button should not."

    pipe on
      panel/msgid=MAIN/setup/controls=gc
      gcontrol label macro "Test MACRO"
      gcontrol menu  main "Exit with Status =" "PASS,FAIL" TABLE={ItemColors={PASS="GREEN",FAIL="RED"}} /tleft

      gcontrol text  idtext "Instructions" instructions 24 8 /title

      gcontrol button gobButt  "Theme=GOB" "Selected,Not" "Selected" /wtheme=gob
      gcontrol button wobButt  "Theme=WOB" "Selected,Not" "Selected" /wtheme=wob
      gcontrol button mnmButt  "Theme=MNM" "Selected,Not" "Selected" /wtheme=mnm
      gcontrol button gearButt "Theme=GEAR3" "Selected,Not" "Selected" /wtheme=gear3
      gcontrol button bowButt  "Theme=BOW" "Selected,Not" "Selected" /wtheme=bow
      gcontrol button gearButt "Theme=NAK" "Selected,Not" "Selected" /wtheme=nak
      gcontrol button broButt  "Theme=Browser" "Selected,Not" "Selected" /wtheme=bro
      
      
    pipe off

  endif
endmacro

!******************************************************************************!
! Main process message for this macro. Should be right after the ENDMACRO.
procedure processMessage m:msg
  if msg.name eqs "MAIN" then
    assert/text="^reg.main.name: User indicated tests" msg.data eqss "PASS"
    pipe stop
  else
    !say "Unhandled message name: ^msg.name from fid: ^msg.fid data: ^msg.data"
  endif
return


