tab sequence

Hi,

     I am using Microstation V8 XM edition. i am creating application with dialog box, dialog box contains textbox, label and buttons. need to give the tab sequence by order. need to know how to set the tab sequence in mdl programming.

Parents
  • Dialog Item Instances and Definitions

    Unknown said:
    I am creating application with dialog box

    As you know, an MDL dialog contains a list of dialog item placements in a resource (.r) file.

    DialogBoxRsc DIALOGID_SpreadSheet =
    {
    DIALOGATTR_DEFAULT | DIALOGATTR_MOTIONTOITEMS | DIALOGATTR_AUTOUNLOADAPP,
    52*XC, 14*YC, NOHELP, MHELP, NOHOOK, NOPARENTID, "Spreadsheet",
    {
    {{ 1*XC, D_ROW( 3), 50*XC, 0}, ListBox, LISTBOXID_Symboliser, ON, 0, "", ""},
    {{ 1*XC, D_ROW( 9), 0, 0}, PushButton, PUSHBUTTONID_Legend, ON, 0, "", ""},

    {{ 19*XC, D_ROW( 9)+2, 0, 0}, OptionButton, OPTIONBUTTONID_FillMode, ON, 0, "", ""},
    {{ 29*XC, D_ROW( 9)+2, 0, 0}, ToggleButton, TOGGLEBUTTONID_Persist, ON, 0, "", ""},

    {{ 44*XC, D_ROW( 9), 0, 0}, PushButton, PUSHBUTTONID_Resymbolise, ON, 0, "", ""},
    }
    };

    Each dialog item is usually defined elsewhere in the same resource file. For example, PUSHBUTTONID_Legend …

    DItem_PushButtonRsc PUSHBUTTONID_Legend =
    {
    NOT_DEFAULT_BUTTON,
    NOHELP, LHELPCMD,
    NOHOOK, NOARG, CMD_SYMBOLISER_LEGEND_PLACE, LCMD,
    "", "Legend"
    };

    The tab order for DIALOGID_SpreadSheet is determined by the order of dialog item instances for that dialog. The dialog item definition has no information about tab order. If you place the same dialog item in a different dialog, with a different sequence of instances, then the second dialog will have a different tab order.

    Regards, Jon Summers
    LA Solutions

     
    Regards, Jon Summers
    LA Solutions

Reply
  • Dialog Item Instances and Definitions

    Unknown said:
    I am creating application with dialog box

    As you know, an MDL dialog contains a list of dialog item placements in a resource (.r) file.

    DialogBoxRsc DIALOGID_SpreadSheet =
    {
    DIALOGATTR_DEFAULT | DIALOGATTR_MOTIONTOITEMS | DIALOGATTR_AUTOUNLOADAPP,
    52*XC, 14*YC, NOHELP, MHELP, NOHOOK, NOPARENTID, "Spreadsheet",
    {
    {{ 1*XC, D_ROW( 3), 50*XC, 0}, ListBox, LISTBOXID_Symboliser, ON, 0, "", ""},
    {{ 1*XC, D_ROW( 9), 0, 0}, PushButton, PUSHBUTTONID_Legend, ON, 0, "", ""},

    {{ 19*XC, D_ROW( 9)+2, 0, 0}, OptionButton, OPTIONBUTTONID_FillMode, ON, 0, "", ""},
    {{ 29*XC, D_ROW( 9)+2, 0, 0}, ToggleButton, TOGGLEBUTTONID_Persist, ON, 0, "", ""},

    {{ 44*XC, D_ROW( 9), 0, 0}, PushButton, PUSHBUTTONID_Resymbolise, ON, 0, "", ""},
    }
    };

    Each dialog item is usually defined elsewhere in the same resource file. For example, PUSHBUTTONID_Legend …

    DItem_PushButtonRsc PUSHBUTTONID_Legend =
    {
    NOT_DEFAULT_BUTTON,
    NOHELP, LHELPCMD,
    NOHOOK, NOARG, CMD_SYMBOLISER_LEGEND_PLACE, LCMD,
    "", "Legend"
    };

    The tab order for DIALOGID_SpreadSheet is determined by the order of dialog item instances for that dialog. The dialog item definition has no information about tab order. If you place the same dialog item in a different dialog, with a different sequence of instances, then the second dialog will have a different tab order.

    Regards, Jon Summers
    LA Solutions

     
    Regards, Jon Summers
    LA Solutions

Children
No Data