Solved

Whizzy control needed!

Posted on 2000-03-14
3
143 Views
Last Modified: 2010-05-02
Hello,

I have developed a utility for our operations team that serves as as a typical  'Explorer' style navigator that lets them track/complete actions on  batches of data that need to be loaded, processed, printed by our AS/400 application.

(It's Basicallymad up of  tree list & list view boxes).

As some of these 'steps' are merely initiated by the 'click' of a command button on the VB app -  the actual request is sent to the AS/400 app and is processed in the background, I need to add a control to the front end that will be periodically updated when AS400 jobs complete/fail etc.

I can return the necessary messages but would like to display them in a more appealing fashion than a run of the mill list box etc.

There must be fancy 'panel' or 'screen'  style control that would be suitable.
Perhaps something that will allow me to load the messages 'ticker tape' style (scrolling right to left).

I am open to suggestions though so all 'creative input' would be greatly appreciated.

50 points for the best looking solution.

Cheers,

Gareth

London

 
0
Comment
Question by:G_Evans
3 Comments
 
LVL 14

Expert Comment

by:wsh2
ID: 2616767
Well.. I don't know about creative.. how about simple.. making a listbox scroll.. <smile>.

<----- Code Begin ----->

List1.AddItem (strMessage)
List1.Selected(List1.ListCount - 1) = True
If List1.ListCount >= 50 _
Then
    List1.RemoveItem (0)
End If

<----- Code End ----->

This is the basis.. you can embellish from there.
0
 

Accepted Solution

by:
Dotar_Sojat earned 50 total points
ID: 2618433
Try this using a textbox of about 20 characters in length and a timer on a form...  You can add error messages to the end of the string using & and a space buffer to separate them.
  You can set the backcolor and forecolor of the text box to whatever you prefer. Here it is set up with a black background and a green foreground to make an LED effect.  If you want, you could even hunt up a dot-matrix style font to add to it.  Set the timer interval to however fast you would like it to run.  The way it is set here adds a character every 200 milliseconds.

---------------------------------------
Option Explicit
     Dim gstrTextScroll As String
Private Sub Form_Activate()
    gstrTextScroll = "Hey!  I'm scrolling!   "
With Text1
    .Text = Space(20)
    .BackColor = vbBlack
    .ForeColor = vbGreen
    .Font.Name = "Terminal"
End With
    Timer1.Interval = 200
End Sub
Private Sub Timer1_Timer()
    Static intTextPos As Integer
    intTextPos = intTextPos + 1
    If intTextPos = Len(gstrTextScroll) Then intTextPos = 1
   
    Text1.Text = Text1.Text & Mid(gstrTextScroll, intTextPos, 1)
    If Len(Text1.Text) > 20 Then Text1.Text = Right(Text1.Text, Len(Text1.Text) - 1)
   
End Sub
---------------------------------------
0
 

Author Comment

by:G_Evans
ID: 2623243
Cheers,

I have implemented your solution and we roll out the application next week!

Cheers,

Gareth London
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question