set color on Command button (conditional)

Jo-annJo-ann Member Posts: 3
Some one knows how I can set a color on an Command Button.
Vendor Card, command button - Command line, if there are commands color red else black.... #-o

Thanks!

Comments

  • SavatageSavatage Member Posts: 7,142
    You can create two exact buttons with two different names
    You make one red & one blue. you place them on top of each other.
    you make one visible if a case is true and another is the case false

    Example..
    two buttons - one named "StatusOpen" & one named "StatusClosed"
    When a sales order is Open the button appears GREEN if released then it;s red

    //Control Status Button
    CASE Status OF
    Status::Open :
    CurrForm.StatusOpen.VISIBLE(FALSE);
    Status::Released :
    CurrForm.StatusOpen.VISIBLE(TRUE);
    END;

    CASE Status OF
    Status::Open :
    CurrForm.StatusClosed.VISIBLE(TRUE);
    Status::Released :
    CurrForm.StatusClosed.VISIBLE(FALSE);
    END;

    More Info:
    http://www.geocities.com/navision_attai ... uttons.doc
  • Jo-annJo-ann Member Posts: 3
    Jo-ann wrote:
    Thanks for the tip!
    :idea: I made a shape (Red) if there are comment lines!!
  • SavatageSavatage Member Posts: 7,142
    ahh - that's different - if you are unhappy with the little pen because it's hard to see you can replace the pic with a different one.

    You can change the bitmaplist property on the comment button from
    7,8
    to
    7,c:\"Your Pic".bmp

    We changed ours to this..
    7,n:\navision attain\database server\notes.bmp
    http://savatage99.googlepages.com/notes.bmp
Sign In or Register to comment.