#227 ROLE_* and STATE_*

closed-fixed
Earnie Boyd
2003-09-23
2002-12-11
No

Hi,

Header oleacc.h should define ROLE_* and STATE_* values
according to MSDN:
http://msdn.microsoft.com/library/en-us/msaa/msaaccrf_4nub.asp
http://msdn.microsoft.com/library/en-us/msaa/msaaccrf_8y2b.asp
Unfortunately I'm not sure what these values should be.

Discussion

  • Earnie Boyd
    Earnie Boyd
    2003-01-04

    • priority: 5 --> 6
     
  • Logged In: YES
    user_id=300680

    The ROLE_* and VALUE* constants are documented here:
    http://www.lw-tech.com/q1/base.htm

    Based on this documentation I suggest adding to oleacc.h:

    #define NAVDIR_UP 0x1
    #define NAVDIR_DOWN 0x2
    #define NAVDIR_LEFT 0x3
    #define NAVDIR_RIGHT 0x4
    #define NAVDIR_NEXT 0x5
    #define NAVDIR_PREVIOUS 0x6
    #define NAVDIR_FIRSTCHILD 0x7
    #define NAVDIR_LASTCHILD 0x8

    #define ROLE_SYSTEM_TITLEBAR 0x01
    #define ROLE_SYSTEM_MENUBAR 0x02
    #define ROLE_SYSTEM_SCROLLBAR 0x03
    #define ROLE_SYSTEM_GRIP 0x04
    #define ROLE_SYSTEM_SOUND 0x05
    #define ROLE_SYSTEM_CURSOR 0x06
    #define ROLE_SYSTEM_CARET 0x07
    #define ROLE_SYSTEM_ALERT 0x08
    #define ROLE_SYSTEM_WINDOW 0x09
    #define ROLE_SYSTEM_CLIENT 0x0a
    #define ROLE_SYSTEM_MENUPOPUP 0x0b
    #define ROLE_SYSTEM_MENUITEM 0x0c
    #define ROLE_SYSTEM_TOOLTIP 0x0d
    #define ROLE_SYSTEM_APPLICATION 0x0e
    #define ROLE_SYSTEM_DOCUMENT 0x0f
    #define ROLE_SYSTEM_PANE 0x10
    #define ROLE_SYSTEM_CHART 0x11
    #define ROLE_SYSTEM_DIALOG 0x12
    #define ROLE_SYSTEM_BORDER 0x13
    #define ROLE_SYSTEM_GROUPING 0x14
    #define ROLE_SYSTEM_SEPARATOR 0x15
    #define ROLE_SYSTEM_TOOLBAR 0x16
    #define ROLE_SYSTEM_STATUSBAR 0x17
    #define ROLE_SYSTEM_TABLE 0x18
    #define ROLE_SYSTEM_COLUMNHEADER 0x19
    #define ROLE_SYSTEM_ROWHEADER 0x1a
    #define ROLE_SYSTEM_COLUMN 0x1b
    #define ROLE_SYSTEM_ROW 0x1c
    #define ROLE_SYSTEM_CELL 0x1d
    #define ROLE_SYSTEM_LINK 0x1e
    #define ROLE_SYSTEM_HELPBALLOON 0x1f
    #define ROLE_SYSTEM_CHARACTER 0x20
    #define ROLE_SYSTEM_LIST 0x21
    #define ROLE_SYSTEM_LISTITEM 0x22
    #define ROLE_SYSTEM_OUTLINE 0x23
    #define ROLE_SYSTEM_OUTLINEITEM 0x24
    #define ROLE_SYSTEM_PAGETAB 0x25
    #define ROLE_SYSTEM_PROPERTYPAGE 0x26
    #define ROLE_SYSTEM_INDICATOR 0x27
    #define ROLE_SYSTEM_GRAPHIC 0x28
    #define ROLE_SYSTEM_STATICTEXT 0x29
    #define ROLE_SYSTEM_TEXT 0x2a
    #define ROLE_SYSTEM_PUSHBUTTON 0x2b
    #define ROLE_SYSTEM_CHECKBUTTON 0x2c
    #define ROLE_SYSTEM_RADIOBUTTON 0x2d
    #define ROLE_SYSTEM_COMBOBOX 0x2e
    #define ROLE_SYSTEM_DROPLIST 0x2f
    #define ROLE_SYSTEM_PROGRESSBAR 0x30
    #define ROLE_SYSTEM_DIAL 0x31
    #define ROLE_SYSTEM_HOTKEYFIELD 0x32
    #define ROLE_SYSTEM_SLIDER 0x33
    #define ROLE_SYSTEM_SPINBUTTON 0x34
    #define ROLE_SYSTEM_DIAGRAM 0x35
    #define ROLE_SYSTEM_ANIMATION 0x36
    #define ROLE_SYSTEM_EQUATION 0x37
    #define ROLE_SYSTEM_BUTTONDROPDOWN 0x38
    #define ROLE_SYSTEM_BUTTONMENU 0x39
    #define ROLE_SYSTEM_BUTTONDROPDOWNGRID 0x3a
    #define ROLE_SYSTEM_WHITESPACE 0x3b
    #define ROLE_SYSTEM_PAGETABLIST 0x3c
    #define ROLE_SYSTEM_CLOCK 0x3d

    We're still missing the value of ROLE_SYSTEM_SPLITBUTTON
    though...

     
  • Logged In: YES
    user_id=300680

    These constants are available in w32-api 2.4.

     
    • status: open --> closed-fixed