menu Button

luis.araujoluis.araujo Member Posts: 6
Is possible change the proprietie visible of the options menu button with code?

Tks

Comments

  • Saint-SageSaint-Sage Member Posts: 92
    Do you mean a menu buttons properties? I am not sure exactly what you are asking.. Sorry.. if you can give more detail maybe I can help.

    No one loves you like the one who created you...
  • zeninolegzeninoleg Member Posts: 236
    CurrForm.MenuButton.VISIBLE(TRUE);
    
    MenuButton is the name of your menu button.
    However I was quite unsuccessful making the item of the Menu Button not visible. Maybe there is a trick, I did not find it
    Best Regards,
    Oleg
  • David_SingletonDavid_Singleton Member Posts: 5,479
    I think he means not the button, but the "Menu Items" on the button. This of course can not be done.

    Depending on what you are trying to archive, there are work arounds for this, but none of them are "ideal".
    David Singleton
  • zeninolegzeninoleg Member Posts: 236
    I ususally put couple of Menu Buttons one on top of another if I have to hide certain sub-button. So one of the menu buttons have this sub-button and another does not. So depending if I need to see the sub-button, I show the menu button in it. Have fun :)
    Best Regards,
    Oleg
  • Saint-SageSaint-Sage Member Posts: 92
    Try:

    CurrForm.UPDATE;

    To get it to redraw it on the form after you set the property, you usually have to call some type of update when you change a control to get the form to reflect what you did.

    BTW: You may or may not want to save the record...

    CurrForm.UPDATE[(SaveRecord)]
    SaveRecord

    Data type: boolean

    You have these options:

    If you want the system to...
    Set SaveRecord to...

    Save the current record TRUE
    Update without saving the current record FALSE

    No one loves you like the one who created you...
Sign In or Register to comment.