Results 1 to 21 of 21

Thread: flashing text on splash screen ?

  1. #1

    Thread Starter
    Frenzied Member TheBionicOrange's Avatar
    Join Date
    Apr 2001
    Location
    Cardiff, UK
    Posts
    1,818

    Question flashing text on splash screen ?

    Is it possible to have flashing text on a splash screen ?

    Timer events don't seem to work too well when I try and use them !

  2. #2
    Hyperactive Member beasty1711's Avatar
    Join Date
    Mar 2001
    Posts
    418
    try using an animated gif
    "...They even have the internet on computers..." :- Homer Simpson

    "Second Place is First Looser" :- No Fear

  3. #3
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    Hi
    well as far as i know VB cant handle animated gifs unless u use a third party control. Anyhow there should be no reason that timers don't work on a splash screen. Have u tried Doevents or Me.Refresh on the splash screen? Is there too much going on in the background loading the main form?
    Regards
    Stuart

    PS If possible post relevant bits of code
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    I don't have any flashing text, but I have scrolling text on several of my Splash screens, using a Timer, and it works just fine.

  5. #5
    Frenzied Member nishantp's Avatar
    Join Date
    Jan 2001
    Location
    Where you least expect me to be
    Posts
    1,375
    add a label and a timer to a form and put this in the code:
    VB Code:
    1. Private Sub Form_Load()
    2. Timer1.Interval = 400
    3. End Sub
    4.  
    5. Private Sub Timer1_Timer()
    6. If Label1.Visible = True Then
    7.     Label1.Visible = False
    8. Else
    9.     Label1.Visible = True
    10. End If

    -Nishant
    You just proved that sig advertisements work.

  6. #6
    Tygur
    Guest
    Just a quick note. You can shorten that timer code with this:
    VB Code:
    1. Private Sub Timer1_Timer()
    2. Label1.Visible = Not Label1.Visible
    3. End Sub

    It really doesn't matter which way you do it, but I just wanted to point out that there was a shorter way.

  7. #7
    Frenzied Member MrGTI's Avatar
    Join Date
    Oct 2000
    Location
    Ontario, Canada
    Posts
    1,277

    Thumbs up

    And yes, you can use animated GIF's in VB with the normal toolbox controls. I've done it before.
    ~Peter


  8. #8
    Frenzied Member nishantp's Avatar
    Join Date
    Jan 2001
    Location
    Where you least expect me to be
    Posts
    1,375
    Originally posted by Tygur
    Just a quick note. You can shorten that timer code with this:
    VB Code:
    1. Private Sub Timer1_Timer()
    2. Label1.Visible = Not Label1.Visible
    3. End Sub

    It really doesn't matter which way you do it, but I just wanted to point out that there was a shorter way.
    hmm. I never thought of that....i could use that in a LOT of places...
    You just proved that sig advertisements work.

  9. #9
    Originally posted by MrGTI
    And yes, you can use animated GIF's in VB with the normal toolbox controls. I've done it before.
    No, you can't. I challenge you to upload an example form that uses them.

  10. #10
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Brooklyn NY USA
    Posts
    1,258
    Originally posted by Tygur
    Just a quick note. You can shorten that timer code with this:
    VB Code:
    1. Private Sub Timer1_Timer()
    2. Label1.Visible = Not Label1.Visible
    3. End Sub

    It really doesn't matter which way you do it, but I just wanted to point out that there was a shorter way.
    Cool did not know this. could use everytime I toggle check box by a menu.

    thanks

  11. #11
    Frenzied Member Fishcake's Avatar
    Join Date
    Feb 2001
    Location
    Derby, UK
    Posts
    1,092
    I remember a while ago someone realised a .dll to handle animated gifs on the Games and graphics forum suggest you try there.

  12. #12
    Registered User Nucleus's Avatar
    Join Date
    Apr 2001
    Location
    So that's what you are up to ;)
    Posts
    2,530
    Originally posted by filburt1


    No, you can't. I challenge you to upload an example form that uses them.
    Well attached is an example from VBnet.
    Attached Files Attached Files

  13. #13
    Tygur
    Guest
    Originally posted by Nucleus
    Well attached is an example from VBnet.
    Nice.. It's a workaround. The Image control doesn't normally support animaged gifs, so it splits the gif into its individual frames and shows them with a timer.

    I don't know if it proves filburt1 right or wrong, but I like it.

  14. #14
    Registered User Nucleus's Avatar
    Join Date
    Apr 2001
    Location
    So that's what you are up to ;)
    Posts
    2,530
    I'll leave it up to Filburt to decide, what do you think Filburt, does it qualify?

  15. #15
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    Hi again
    I was the one that brought up the animated gifs doubt earlier in the post. I was referring to single standard vb controls and since the original poster's problem was to do with the timer I would expect that they could solve their problem of flashing text OR animated gifs if the timer was working to their plan.

    Using an Image control with a timer is emm 2 controls

    Ps Nucleus, i saw ur textbox class stuff earlier (someone has gotta tell me how to make my stupit email links open up in diff IE windows) and like ur adaptive approach. I hope ppl learn things from it.

    2 things... 1.. u are very optimistic if u think that the same qtn wont be asked 6 billion more times instead of ur thread being found thru a search and 2.. I still dont believe that the keypress is a good event to validate data entry. I cant remember where it was but i did read an MS article on useability that recommended against validation in this manner.. but again it is all a matter of preference and I know that you were making this class for others to learn from and adapt.. so there are no qualms about that.

    U said in that thread..(too lazy to go back ) that u thought users would be confused by data changing after they typed it in. But the data only changes if not in the expected format and u can always notify them thru a warning colour etc. Look at Excel, it modifies ur input for dates, cell formats etc and it doesnt force u to type in a particular way. It just scares me sometimes (not literally!) about some qtns on this forum where ppl seek to do stuff becos they can and the poor old user is forced to adapt to a new (and sometimes downright kooky) methodology.

    Oops rambling again and in wrong post... Shoots self in foot and hobbles on out...
    Regards
    Stuart
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

  16. #16
    Hyperactive Member beasty1711's Avatar
    Join Date
    Mar 2001
    Posts
    418
    well i knew you could do it, just couldnt remember how.

    or you could use avi
    "...They even have the internet on computers..." :- Homer Simpson

    "Second Place is First Looser" :- No Fear

  17. #17

    Thread Starter
    Frenzied Member TheBionicOrange's Avatar
    Join Date
    Apr 2001
    Location
    Cardiff, UK
    Posts
    1,818

    Cool Wow !

    Blimey. I post a thread, go home on a 1/2 day, come back, and I've got 14 responses !!!

    Thanks a lot to all involved. I will now go through them and see which one works best for me. I did fail to put in the original thread that I am accessing an RMS file across a network link to grab a set of records whilst the splash screen is visible, which obviously puts an overhead on things a bit, so it will be interesting to see which method from the ones below will work best for my situation.

    Anyways, thanks again to all concerned.

  18. #18

    Thread Starter
    Frenzied Member TheBionicOrange's Avatar
    Join Date
    Apr 2001
    Location
    Cardiff, UK
    Posts
    1,818

    Unhappy Hmmmm .......

    I guess my splash screen must be too busy !

    Using a timer as suggested doesn't do anything to my text !

    I tried playing around with the interval setting but to no avail

    This is the same as a problem I had with splash screens before. I guess that if they are doing ANYTHING else behind the scenes it conflicts with the timer in some way !!!

    But I shall persevere, and will let you know if I ever succeed !

  19. #19
    Registered User Nucleus's Avatar
    Join Date
    Apr 2001
    Location
    So that's what you are up to ;)
    Posts
    2,530
    Beachbum, I don't think there was a restriction on the number of controls required to make the animated gif work, are you adding extra specs? For that I think you'll have to fill out a Request For Change (RFC) form .

    Glad you liked the class stuff, I am warming to your ideas about message boxes and making the app more intelligent. Now I just need a couple of unsuspecting users to test the approach on...

  20. #20
    Tygur
    Guest

    Re: Hmmmm .......

    Originally posted by TheBionicOrange
    I guess my splash screen must be too busy !

    Using a timer as suggested doesn't do anything to my text !

    I tried playing around with the interval setting but to no avail

    This is the same as a problem I had with splash screens before. I guess that if they are doing ANYTHING else behind the scenes it conflicts with the timer in some way !!!

    But I shall persevere, and will let you know if I ever succeed !
    Are you expecting the code in the timer to run while you have your other code running in the background? In other words, are you expecting your other code and the code in the timer to run at the same time? Because that can't be done. What you can do is have the background code run DoEvents regulary, which lets the code stop for a short time so the timer can get a chance to fire.

  21. #21

    Thread Starter
    Frenzied Member TheBionicOrange's Avatar
    Join Date
    Apr 2001
    Location
    Cardiff, UK
    Posts
    1,818
    My application uses Sub Main() as the startup (see code below).
    As you can see its pretty busy. What you said makes sense regarding trying to do the timer event as well, so I shall try and slot in a few 'DoEvents' to the code below to see if I can get the timer to kick in.

    ****************************************************
    Private Sub Main()
    Dim i As Integer

    i = 0
    frmSplash.Show

    conn.ConnectionString = "provider=attunityConnect;"
    conn.Open
    conn.CursorLocation = adUseServer

    #If live = 1 Then
    conn.DefaultDatabase = "RMS"
    #Else
    conn.DefaultDatabase = "RMSTEST"
    #End If

    cmd.ActiveConnection = conn

    DoEvents

    ' Retrieve branches from RMVALS to populate listbox on startup.
    ' Also hold Branch/Area info for later use.
    On Error GoTo RMVALS_Read_Error

    Screen.MousePointer = vbHourglass

    cmd.CommandText = "select RMSV_KBR, RMSV_NAM, RMSV_ARN, RMSV_ARM from RMVALS WHERE RMSV_BRN between '2001' and '2999' and RMSV_ARN <> '99' "
    rs.Open cmd, , adOpenStatic, adLockOptimistic

    While Not rs.EOF
    tmpBRN(i) = rs.Fields(0)
    tmpBrnName(i) = rs.Fields(1)
    tmpAreaNo(i) = rs.Fields(2)
    tmpAreaName(i) = rs.Fields(3)
    i = i + 1

    With frmSelections.lstBranches
    .AddItem rs.Fields(0) & " " & rs.Fields(1)
    End With
    rs.MoveNext
    Wend

    rs.Close
    Screen.MousePointer = vbDefault
    MDIMaster.stbMain.Panels(1) = ""

    Exit Sub


    RMVALS_Read_Error:
    MsgBox Err.Description, , "RMBWST Lookup Error !"
    Screen.MousePointer = vbDefault

    frmSelections.Show
    Unload frmSplash

    End Sub
    ****************************************************

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width