Hi David, You can't use the menuproc function to handle events for anything other than menus and menu items. You'll need a dialog event handler to respond to events from controls such as trackbars. Does that help? Chip (sorry I've been absent here lately, my wife has been in the hospital and has been ill; things are returning to more normal now). Chip
_____ From: David [mailto:[email protected]] Sent: Friday, March 23, 2012 11:35 AM To: [email protected] Subject: XML dialog - seems I am missing something OK, I have an app, which will playback some sound clips. All that stuff works OK. I wanted to let the user set the actual volume the clips should be using, when played back. When scrolling through the alternatives, I found that maybe a TrackBar would be the right thing to use, for this purpose. I did look through the examples found in the manual, and also looked at classes 13, 14 and 30 of Chip's scripting series. Then, I thought I was ready to go. But, it sure seems I am missing something quite basic in the whole concept here. Any feedback is greatly appreciated. As it stands, the TrackBar won't even show up under the Help and Settings in the App manager. Here is what I have got so far. By using the UI-design app, the following line was automatically created and added to my XML file: <dialog id="Playback"><group id="Volume"><trackbar id="VolumeTrackBar" minimum="10" maximum="90" position="35" ticks="auto" tickposition="both" tickinterval="10" downarrow="right" thumb="variable"/><![CDATA[Sound clip volume]]></group></dialog></language> Then in my VBS code, I changed the MenuProc function (created by the Framework app), to read as follows: dim vtb Function MenuProc(menuObj, id) MenuProc = False Select Case id Case "menu_help" If Not SO_StandardHelpDialog Is Nothing Then Queue "ScriptHelp" End If MenuProc = True Exit Function Case "VolumeTrackBar": VTB = VolumeTrackBar MenuProc = True Exit Function End Select End Function Speak VTB &". " What am I missing here? What do I need to change, in the code, or in the XML? Thanks alot,
