[jawsscripts] Re: List View Events
- From: "Donald Marang" <donald.marang@xxxxxxxxx>
- To: <jawsscripts@xxxxxxxxxxxxx>
- Date: Mon, 17 Nov 2008 15:44:37 -0500
Thanks! I will have to research / experiment with this a little.
Don Marang
----- Original Message -----
From: "David Farough" <David.Farough@xxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Monday, November 17, 2008 2:36 PM
Subject: [jawsscripts] Re: List View Events
> Hi Donald:
> To expand a bit on what Jim has suggested, you could use the
> setJcfOption function to specify whether the JawsCursor is tethered to
> the pc cursor.
> If this is turned on, the jawsCursor will follow the pc cursor. This
> might insure that you hear the contents of the tooltip when you move
> from item to item in the list.
>
> this entry is stored in the .jcf file of your application.
> I took the following lines from my default.jcf file.
> ; 1=JAWS cursor is tethered to the Pc cursor, i.e.,
> ; whenever the Pc cursor moves, the JAWS cursor will follow it.
> ; 0=JAWS cursor is indifferent to Pc cursor movements,
> ; which has been the traditional behaviour
> TetherJAWSToPC=0
>
> therefore, you could use the following line to make the Jaws cursor
> follow the pc cursor when the listview gets the focus.
> SetJCFOption (OPT_TETHER_JAWS_TO_PC, 1)
> If desirable you could turn this off when you leave the listview.
> for other constants that can be used in the SetJcfOption function refer
> to the hjconst.jsh file. These constants all begin with either Opt_ or
> Optbrl_.
>
> with regard to the selecting of list items:
> look at the fsdn document under dialog controls. there are a number
> of items which all begin with lv Several of these could be useful.
>
> The next thing you will need to do is find out where to place your
> alternative functionality and what conditions should apply when using
> this code.
>
> I suggest taking a look at the ActiveItemChangedEvent function.
> this might be a good place to specify any alternative processing when
> moving through a listview.
>
>
>
>
> 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
>
>>>> <james.homme@xxxxxxxxxxxx> 11:21 am Monday, November 17, 2008 >>>
> Hi Donald,
> You might need to hit Control+Insert+NumPadMinus when you are using
> the
> application. You may also be able to make an auto start function that
> flips
> this setting on and an auto finish function that puts it back the way
> it
> was once you leave the application.. This setting forces the mouse to
> follow the cursor. Maybe this will get the selected item to change.
>
> Thanks.
>
> Jim
>
> James D Homme, Usability Engineering, Highmark Inc.,
> james.homme@xxxxxxxxxxxx, 412-544-1810
>
> "The difference between those who get what they wish for and those who
> don't is action. Therefore, every action you take is a complete
> success,regardless of the results." -- Jerrold Mundis
> Highmark internal only: For usability and accessibility:
> http://highwire.highmark.com/sites/iwov/hwt093/
>
>
>
>
> "Donald Marang"
>
> <donald.marang@gm
>
> ail.com>
> To
> Sent by: jawsscripts@xxxxxxxxxxxxx
>
> jawsscripts-bounc
> cc
> e@xxxxxxxxxxxxx
>
>
> Subject
> [jawsscripts] List View Events
>
> 11/17/2008 07:54
>
> AM
>
>
>
>
>
> Please respond to
>
> jawsscripts@freel
>
> ists.org
>
>
>
>
>
>
>
>
>
> I have an application that is very non-standard from a JAWS standpoint.
> I
> have a list view that had a unique class name, so I reclassified it as
> a
> "ListView". I can now arrow through the list and go to first and last
> with
> Home and End keys. However, the first item remains the highlighted
> item
> (selected item)
> How do I assure that the selected item follows my movements? Is there
> an
> event that gets triggered when selected item in the list changes? I
> would
> like to check if the item's text attribute is bold and announce "new"
> before that item.
>
> The items in the list also have a non-standard, two line ToolTip that
> appears when the mouse hovers over the item for several seconds. Right
> now
> it only gets activated if I Root JAWS to PC. I would like to
> capture
> each of these two lines in separate variables for speaking and later
> use.
> They are stored in the "ToolTip" pop up window as two child windows
> where
> each child contains the line as the window name and the text in the
> window.
>
> Additionally, I created the event function listed below to trap these
> pop
> up windows. It never seems to be called. I wrote a similar event
> function
> that had a MessageBox that worked fine! Am I doing something wrong?
>
> Void Function ToolTipEvent (handle hWndPopUp, string sMessage)
>
> SayString ("In ToolTipEvent: ")
>
> SayString (sMessage)
>
> SayString ("tooltip window is " + IntToString (hWndPopUp))
>
> Let gsListName = GetWindowText (FindDescendantWindow (hWndPopUp,
> WCID_LIST_NAME), False)
>
> Let gsListNumber = GetWindowText (FindDescendantWindow (hWndPopUp,
> WCID_LIST_NUMBER), False)
>
>
>
> ToolTipEvent (hWndPopUp, sMessage)
>
> Return
>
> EndFunction
>
>
> I have no idea if the variable assignments work! I have not gotten
> that
> far yet.
>
> Don Marang
>
>
> __________
> 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
>
> __________
> 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: