Thanks. Got it working now. One more question, and one experience:
Firstly, If I want to just retrieve the value of the trackbar, when the user has
done his scrolling, will I have to check on each of the DEvents for the 
trackbar?
Or, is it enough to check TrackbarEndTrack, or something?
Then my experience. I defined the trackbar in the UI design app environment. 
Here
I had set the orientation to Vertical. Then I ran the Try-It feature. The dialog
opened perfectly, and I was focused directly on the trackbar, and could start my
scrolling up and down. But there arose a problem.
Right when I opened the dialog, the speech said
    25 of 100
, since I had set the trackbar's initial value to 25. So far, everything seemed 
promising.
Then, I hit one of my arrow keys. The speech now began an ever-ongoing chatter, 
saying
    26 of 100. 26 of 100. 26 of 100. 26 of 100.
It did not stop, until I tabbed over to the OK button.
I thought I would try  change the trackbar definition, and rather have it 
orientated
Horizontally. Once that was done, the speech behaved perfectly well, even when I
used the arrow keys in the trackbar.
Is this something that can be reproduced? And if so, is it a bug in WE, or is 
there
anything I need set up differently, when a trackbar is orientated Vertically?

  ----- Original Message ----- 
  From: Aaron Smith 
  To: [email protected] 
  Sent: Monday, April 02, 2012 2:24 PM
  Subject: Re: Retrieving a value from a dialog - Need a hand, pleas.


  On 4/2/2012 8:14 AM, David wrote: 
    If anyone please could give me the exact syntax for this very line, I would 
be greatly helped. Did find little help in the app developers reference, on 
this particular problem. It only showed me how to create a Trackbar, not 
anything as to how to retrieve it. (Sigh!)


  You get information for every control in your dialog through the dialog's 
event handler, which is detailed under the Dialog object in the Callbacks node 
in the App Developer Reference; the DialogEvent enum lists all of the common 
events you can receive (depending on the controls in your dialog). For 
trackbars, that includes trackbarLineUp, trackbarLineDown, trackbarPageUp, 
trackbarPageDown, trackbarTop, trackbarBottom, and trackbarEndTrack. Whenever 
you receive any of these events, you can then query the trackbar's Value 
property.

  Aaron

-- 
Aaron Smith 
Web Development * App Development * Product Support Specialist
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com

To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information
pertinent to your situation when submitting a problem report to the GW
Micro Technical Support Team.

Reply via email to