Announcement

Collapse
No announcement yet.

full power toolbox barMenu

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • full power toolbox barMenu

    I'm trying to make a bar menu.
    PBCC 5.01

    This compiles and acts like it's working (cursor moves) but it shows no menu items. When I hit enter it returns the correct menu item number.
    It also throws some garbage characters up ("x" and upside-down "?").

    what am I doing wrong?

    Code:
    Function showBar() As Long
        Dim bChoices(1:6) As String
        Dim bKeys(1:6) As Byte
        Dim bHelp(1:6) As String
        Dim bDisabled(1:6) As Byte
        Local row As Byte
        Local helpRow As Byte
        Local initial As Byte
        Local barAttr As Byte
        Local menuAttr As Byte
        Local keyAttr As Byte
        Local disAttr As Byte
        Local helpAttr As Byte       
        Local choice As Integer    
        
        bChoices(1)="ENTER" 
        bChoices(2)="VIEW"
        bChoices(3)="SETUP"
        bChoices(4)="DELETE"
        bChoices(5)="CONSIGNEES"
        bChoices(6)="EXIT" 
        
    '    bDisabled(1)=0 
    '    bDisabled(2)=0
    '    bDisabled(3)=0
    '    bDisabled(4)=0
    '    bDisabled(5)=0
    '    bDisabled(6)=0
        
        bHelp(1)=""
        bHelp(2)=""
        bHelp(3)=""
        bHelp(4)=""
        bHelp(5)=""
        bHelp(6)=""
        
        bKeys(1)=1 
        bKeys(2)=1
        bKeys(3)=1
        bKeys(4)=1
        bKeys(5)=1 
        bKeys(6)=2
        
        row=2
        helpRow=25
        initial=1
        barAttr=&h71
        menuAttr=&h1f
        keyAttr=&h1e
        disAttr=&h10  
        helpAttr=&h07
        
        choice=BarMenu(bChoices(),bKeys(),bHelp(),bDisabled(),row,helpRow,_
               initial,barAttr,menuAttr,keyAttr,DisAttr,helpAttr)  
     
        Function= choice
    
    End Function

  • #2
    >what am I doing wrong?

    Not showing us the BarMenu() function? Any display must be happening - or not happening - there.
    Michael Mattias
    Tal Systems (retired)
    Port Washington WI USA
    [email protected]
    http://www.talsystems.com

    Comment


    • #3
      I was afraid someone would ask that.
      I don't think I can because Full Power Toolbox is a collection of functions, as opposed to a DLL or something. I think they wouldn't like their code posted.

      I was looking at their website last night and it says that PBCC 5 is in "testing" so I think that's the problem. I can already see that they are using some new PB commands as variables. It's a wonder that it's compiling.

      Comment


      • #4
        Call me a naif, but wouldn't the best bet to solve your problem be "Full Power Toolbox Customer Support?"
        Michael Mattias
        Tal Systems (retired)
        Port Washington WI USA
        [email protected]
        http://www.talsystems.com

        Comment


        • #5
          Dear naif,
          Tried that... I'm waiting for a response.
          Honestly the PB forum is generally faster. Usually somebody has ran into the problem before me.

          Since it's "just" code, I'm stepping through it now.

          Comment


          • #6
            follow up:
            Infoms contacted me and are working on a patch.

            Comment


            • #7
              follow up:
              Informs has supplied me with a patch for PBCC 5.x (thanks Alan).

              My other problem was the well-documented console window size issue, which I completely missed.

              I'm all fixed.

              Comment

              Working...
              X