Wrox Programmer Forums
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 10th, 2005, 09:51 AM
Registered User
 
Join Date: Apr 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default animating screen snapshots

i need to develop an application that takes screen snapshot, and shows what happens when a button is pressed or data is entered, and write an application that could be used as a training module

Are you aware of any references that would allow me to do this?

thanks

 
Old April 10th, 2005, 12:56 PM
Authorized User
 
Join Date: Apr 2005
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Ringo

Here you go:

First Create your chm file (i persume you know how)

Then Create a new .bas module, i call it modHelpFiles.bas

Here is sample code:

'================================================= =====
'Module Start:
'================================================= =====
Option Explicit

Declare Function HtmlHelp Lib "HHCtrl.ocx" Alias "HtmlHelpA" _
                          (ByVal hwndCaller As Long, _
                          ByVal pszFile As String, _
                          ByVal uCommand As Long, _
                          dwData As Any) As Long

'Add these they are defaults:
Public Const HH_DISPLAY_TOPIC = &H0
Public Const HH_HELP_CONTEXT = &HF

'This is your own constants for defining each helpfile name
'Note that the helpfile name i.e. "Allocations" is the actual
'name of the html file added to the chm project.
'If you selected that chm must compile the folders then it's
'critical to also add the folder before the name
'i.e. \UserInformation\UserSetupPage or as done in the function
'Showhelp below it makes it "HTML_Files\" & file name & ".html"
Public Const HF_ALLOCATIONS = "Allocations"
Public Const HF_ACCOUNTS = "Accounts"
Public Const HF_LOGIN = "Login"

'/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~
Public Sub ShowHelpFile(ByVal strFileName As String)
'/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~
  On Error GoTo ShowHelpFile_ERR
  Call HtmlHelp(0, App.Path & "\MyAppName.chm", HH_DISPLAY_TOPIC, _
                ByVal "HTML_FILES\" & strFileName & ".htm")
Exit Sub
ShowHelpFile_ERR:
  MsgBox "[" & Err.Number & "] " & _
Err.Description, vbInformation, "ShowHelpFile - Error"
End Sub


'================================================= ==
'End Of Module
'================================================= ==

in the form at the help_button its very easy
just add this line of code:

Call ShowHelpFile(HF_LOGIN)

Note HF_Login refers the the file i want displayed.

Regards and shout if you need more help


Helga Anagnostopoulos
 
Old April 10th, 2005, 12:57 PM
Authorized User
 
Join Date: Apr 2005
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Rigo

I had it all messed up and added the wrong reply to your request.

On your question I would rather use macromedia flash. It's build for exactly that or even Demoshield 8

Regards

Helga Anagnostopoulos





Similar Threads
Thread Thread Starter Forum Replies Last Post
how can clear the screen the screen malli_kv2 BOOK: Beginning Java 2, JDK 5 Edition 4 January 17th, 2009 12:43 AM
Draw on the screen without clearing the screen pu132 Visual Basic 2005 Basics 0 August 25th, 2006 09:03 PM
Viewing Access snapshots dnaworks Classic ASP Databases 3 October 6th, 2004 09:50 PM
Screen resolutions larry Javascript How-To 7 July 21st, 2004 08:24 AM
ASP snapshots and reports with parameter queries Yeldarb15 Classic ASP Databases 8 December 4th, 2003 06:36 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.