[jawsscripts] Re: indicateControlType issue with braille

Hi Sean:
Take a look at the braille.jss file in your shared settings folder.

You can add a copy of the BrailleAddObjectName to your application
scripts.

Here is a copy below.  Note that the subtype of the control is passed
to this function.  this would be wt_edit in your case.

int function BrailleAddObjectName (int nSubtypeCode)
var
        handle hWnd,
        string strNameText
If ! MenusActive () then
        Return FALSE
EndIf
Let hWnd = GetFocus ()
;If GetWindowSubtypeCode (hWnd) == WT_LISTVIEW then
If nSubtypeCode == WT_LISTVIEW then
/*Add Name component by string, look for EndComment:
        Let strNameText = lvGetItemText (
        hWnd, lvGetFocusItem (hWnd), 1)
        ;Add attributes to support where they aren't, e.g.
ATTRIB_HIGHLIGHT bit:
        If strNameText then
                BrailleAddString (strNameText,
                GetCursorCol (), GetCursorRow (), ATTRIB_HIGHLIGHT)
                Return TRUE;No further processing, avoid OSM
        EndIf
EndComment:*/
        Let strNameText = cwnBrlResultsList
        BrailleAddString (strNameText,0,0,0)
        Return TRUE;
EndIf
If nSubtypeCode == WT_EDIT then
        BrailleAddString (
        GetWindowName (hWnd),0,0,0)
        Return TRUE
EndIf
return false
endFunction

You will need to modify or add a new condition that will apply to your
control.  be sure to return true when your condition applies.  Returning
false is an indication that normal processing should occur.

also I will include below the fsdn entry for BrailleAddString 

Function: BrailleAddString 
Description 
Used with in BrailleBuildLine to add text to the Braille display. 

Returns 
Type: Int
Description: TRUE if successful, FALSE otherwise.


Parameters 
Param 1: 
Type: String
Description: Text to be added.
Include: Required


Param 2: 
Type: Int
Description: The X position for the mouse to click if a routing button
is pressed over any of the cells in this string. This value is used
along with Y position to determine where to click. Make both values 0 if
no click should happen.
Include: Required


Param 3: 
Type: Int
Description: the Y position for the mouse to click if a routing button
is pressed over any of the cells in this string. This value is used
along with X position to determine where to click. Make both values 0 if
no click should happen.
Include: Required


Param 4: 
Type: Int
Description: Combination of the ATRIB_xxx values from HJCONST.JSH that
indicate the attributes of the characters in this string.
Include: Required


Version 
This function is available in the following releases: 

PAC Mate 1.10 and later 
JAWS 4.51 and later 

David Farough
Application Accessibility Coordinator/coordonateur de l'accessibilité 
Information Technology Services Directorate /
Direction des services d'information technologiques
Public Service Commission / Commission de la fonction publique
Email / Courriel:  David.Farough@xxxxxxxxxxxxx
Tel. / Tél:    (613) 992-2779 

>>> "Sean Farrow" <sean.farrow@xxxxxxxxxxxxxxxx> 03:22 pm Monday,
February 23, 2009 >>>
Hi: 
i have an issue within a project I'm doing where by the field has one
name according to the application, I've redifined the fields name as
follows in the HandleCustomWindows events:
IndicateControlType(WT_EDIT, "Company name:")
This field name change however is not reflected in braille, What else
do
I need to do to get this reflection to occur?
Using jaws 10.
Any help appreciated.
Sean.
__________ 
Visit and contribute to The JAWS Script Repository
http://jawsscripts.com 

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts 

__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: