Menu Bar Separator

Discussion in 'Code Samples & Tips' started by MM2forever, Sep 29, 2007.

  1. MM2forever

    MM2forever Active Member Licensed User

    I've searched the forums for a while to make sure that this isn't a well-known thing, but I still fear it could be one.
    In that case: :sign0161:

    I was making some increase/decrease menu buttons labeled with "+" and "-".
    I noticed that there wasnt any "-" menu while running on desktop, instead
    the menu bar itself was bigger and in this 2nd row there was an unlabeled button.
    Giving this button a node creates an error on the pocket pc, but having menues after this one in the root creates the "|" separator just as seen in many programs.

    Just call me a :sign0104: If this is already written somewhere.
     

    Attached Files:

  2. Cableguy

    Cableguy Expert Licensed User

    No, this hasn't yet been posted...

    I see your proble and present a possible solution:
    instead of + and - (wich result in a separator), you could use (+) and (-), in this case being the first letter NOT the minus sign, it should present it self correctly.

    PS: I' not sure if this wasn't suposed to be posted in the Questions forum....
     
    Last edited: Sep 29, 2007
  3. MM2forever

    MM2forever Active Member Licensed User

    it wasnt supposed to be a question, more informing about my recent discovery
    If it would be possible to add a menu item @ runtime, it could be defined with Chr(45) - like having quots in a string... dunno

    edit:// having spaces in the menu button string label " - " is also an option
     
    Last edited: Sep 29, 2007
  4. Cableguy

    Cableguy Expert Licensed User

    Althought you cant create menuitems in runtime, you CAN rename them....thus being able to use the char(45) as you posted...
     
  5. MM2forever

    MM2forever Active Member Licensed User

    oh yeah - cable guy : always 1 thought ahead (meant to be positive)

    unfortunally it generates an exeption

    btw: havin spaces also makes buttons bigger which is a nice side-effect for the click'in user....
     
Loading...