Alpha Video Training
Results 1 to 3 of 3

Thread: Controlling Toolbar

  1. #1
    Member
    Real Name
    Jeff Wolfe
    Join Date
    Jan 2001
    Location
    Chesapeake, VA
    Posts
    147

    Default Controlling Toolbar

    How do you close a toolbar in Xbasic? I have a custom toolbar that displays on the bottom of the screen and I hide the statusbar. At a point I want to re-establish the statusbar (statusbar.enable) and close the custome toolbar (?).

  2. #2
    Alpha Software Employee Selwyn Rabins's Avatar
    Real Name
    Selwyn Rabins
    Join Date
    Mar 2000
    Location
    Boston, MA
    Posts
    5,279

    Default RE: Controlling Toolbar

    how did you open the toolbar in the first place?

    a custom toolbar is just a modeless xdialog box. so if you know the toolbar name then

    ui_modeless_dlg_close(name)

    will close it.

    however, there is probably a more elegant way of doing this if i know what code you used to open the toolbar in the first place.

  3. #3
    Member
    Real Name
    Jeff Wolfe
    Join Date
    Jan 2001
    Location
    Chesapeake, VA
    Posts
    147

    Default RE: Controlling Toolbar

    I opened in an Autoexec Script. Sample below:

    dim global globaltext as c
    globaltext = "Ticket Trak Ver. 1.0 - Vendor Version"
    StatusBar.Hide()
    a5_toolbar_open("statusbar")

    controlpanel.Hide()

    frm = :form.load("New Menu")

    I created a custom toolbar docked to the bottom of the screen. At a point in my app, I want to close the toolbar.

    Thanks for the help.

Similar Threads

  1. Controlling Tabs
    By Paul Main in forum Alpha Five Version 6
    Replies: 7
    Last Post: 03-29-2005, 04:53 AM
  2. controlling record changes
    By Jos Schaars in forum Alpha Five Version 6
    Replies: 1
    Last Post: 08-07-2004, 12:41 PM
  3. Controlling buttons....
    By Mike Gillhoolley in forum Alpha Five Version 4
    Replies: 5
    Last Post: 04-24-2002, 08:30 AM
  4. controlling page breaks
    By Steve Pick in forum Alpha Five Version 4
    Replies: 5
    Last Post: 03-17-2001, 03:22 PM
  5. Controlling cursor in Xbasic
    By Kristal Mayne in forum Alpha Five Version 4
    Replies: 2
    Last Post: 04-27-2000, 10:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •