Results 1 to 15 of 15

Thread: [RESOLVED] How To Scroll Text In Title Bar of Form !!

  1. #1

    Thread Starter
    Addicted Member _RaJ_'s Avatar
    Join Date
    Apr 2008
    Location
    India!
    Posts
    198

    Resolved [RESOLVED] How To Scroll Text In Title Bar of Form !!

    i am using Fixed Tool Window n i want my Form Caption to rotate alternate.........


    any help's ?

    ●════════════════════════════◄►═════════════════════════●
    ___itš bεttεг tΘ bε απ Θρεπ šiππεг, thαπ α ƒαlšε šαiπt___
    ●════════════════════════════◄►═════════════════════════●
    гαj

  2. #2
    PowerPoster
    Join Date
    Jul 2006
    Location
    Maldon, Essex. UK
    Posts
    6,334

    Re: How To Scroll Text In Title Bar of Form !!

    What is Fixed Tool Window ?

  3. #3
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: How To Scroll Text In Title Bar of Form !!

    What is Fixed Tool Window ?
    form border style
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  4. #4
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: How To Scroll Text In Title Bar of Form !!

    in a timer event, with interval of about 300
    vb Code:
    1. Me.Caption = Mid(Me.Caption, 2) & Left(Me.Caption, 1)
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  5. #5

    Thread Starter
    Addicted Member _RaJ_'s Avatar
    Join Date
    Apr 2008
    Location
    India!
    Posts
    198

    Re: How To Scroll Text In Title Bar of Form !!

    that aint working...... i just need to make form caption alternate scroll

    ●════════════════════════════◄►═════════════════════════●
    ___itš bεttεг tΘ bε απ Θρεπ šiππεг, thαπ α ƒαlšε šαiπt___
    ●════════════════════════════◄►═════════════════════════●
    гαj

  6. #6
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: How To Scroll Text In Title Bar of Form !!

    that aint working......
    what does that mean?
    it does nothing or it does not do what you want
    explain what you want

    i tested the above code and it scrolled the caption
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  7. #7

    Thread Starter
    Addicted Member _RaJ_'s Avatar
    Join Date
    Apr 2008
    Location
    India!
    Posts
    198

    Re: How To Scroll Text In Title Bar of Form !!

    vb Code:
    1. Me.Caption = Mid(Me.Caption, 2) & Left(Me.Caption, 1)
    i put thise code....... in form load.........

    n my title bar was not scrolling !!

    ●════════════════════════════◄►═════════════════════════●
    ___itš bεttεг tΘ bε απ Θρεπ šiππεг, thαπ α ƒαlšε šαiπt___
    ●════════════════════════════◄►═════════════════════════●
    гαj

  8. #8
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: How To Scroll Text In Title Bar of Form !!

    did you use a timer? did you set it to enabled = true? with an interval around 300

    i put thise code....... in form load.........
    add a timer control to your form, put that code in the timer event
    in form load put
    vb Code:
    1. timer1.interval = 300
    2. timer1.enabled = true
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  9. #9

    Thread Starter
    Addicted Member _RaJ_'s Avatar
    Join Date
    Apr 2008
    Location
    India!
    Posts
    198

    Re: How To Scroll Text In Title Bar of Form !!

    sry....... i didnt put timer ........ last time !!

    ●════════════════════════════◄►═════════════════════════●
    ___itš bεttεг tΘ bε απ Θρεπ šiππεг, thαπ α ƒαlšε šαiπt___
    ●════════════════════════════◄►═════════════════════════●
    гαj

  10. #10
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: How To Scroll Text In Title Bar of Form !!

    You need to put that in a Timer Event

    Me.Caption = " " & Me.Caption

    And then when it hits a certain place, like at end of title bar then start over again
    Last edited by jmsrickland; Apr 22nd, 2008 at 09:50 AM.

  11. #11
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: How To Scroll Text In Title Bar of Form !!

    Something like this
    Code:
    Private Sub Timer1_Timer()
     Static counter As Integer
     
     counter = counter + 1
     
     If counter = somevalue Then
       counter = 0
       Caption = LTrim(Caption)
     Else
       Caption = " " & Caption 
     End If
    End Sub
    This is a very simple method and it is not to imply that it couldn't be done alot better but I dont have the time to work out a better approach
    Last edited by jmsrickland; Apr 22nd, 2008 at 10:02 AM.

  12. #12

    Thread Starter
    Addicted Member _RaJ_'s Avatar
    Join Date
    Apr 2008
    Location
    India!
    Posts
    198

    Re: How To Scroll Text In Title Bar of Form !!

    thnx !!

    ●════════════════════════════◄►═════════════════════════●
    ___itš bεttεг tΘ bε απ Θρεπ šiππεг, thαπ α ƒαlšε šαiπt___
    ●════════════════════════════◄►═════════════════════════●
    гαj

  13. #13
    Hyperactive Member Condomx's Avatar
    Join Date
    Dec 2009
    Location
    Iligan City,Philippines
    Posts
    327

    Re: [RESOLVED] How To Scroll Text In Title Bar of Form !!

    why that when the text reach the last end of the form title bar it doesnt scroll again like it must start over again when it reach at the end of title bar?

  14. #14
    Hyperactive Member Condomx's Avatar
    Join Date
    Dec 2009
    Location
    Iligan City,Philippines
    Posts
    327

    Re: [RESOLVED] How To Scroll Text In Title Bar of Form !!

    TY i been resolved it perfectly by myself ^_* cheer good job..

  15. #15
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: [RESOLVED] How To Scroll Text In Title Bar of Form !!

    Well after more than a year and half I would hope so.


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

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