|
-
Apr 18th, 2008, 11:18 PM
#1
Thread Starter
Addicted Member
[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
-
Apr 18th, 2008, 11:25 PM
#2
Re: How To Scroll Text In Title Bar of Form !!
What is Fixed Tool Window ?
-
Apr 18th, 2008, 11:50 PM
#3
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
-
Apr 18th, 2008, 11:56 PM
#4
Re: How To Scroll Text In Title Bar of Form !!
in a timer event, with interval of about 300
vb Code:
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
-
Apr 19th, 2008, 12:17 AM
#5
Thread Starter
Addicted Member
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
-
Apr 19th, 2008, 06:28 AM
#6
Re: How To Scroll Text In Title Bar of Form !!
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
-
Apr 19th, 2008, 06:58 AM
#7
Thread Starter
Addicted Member
Re: How To Scroll Text In Title Bar of Form !!
vb Code:
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
-
Apr 19th, 2008, 07:10 AM
#8
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:
timer1.interval = 300 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
-
Apr 22nd, 2008, 07:08 AM
#9
Thread Starter
Addicted Member
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
-
Apr 22nd, 2008, 09:46 AM
#10
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.
-
Apr 22nd, 2008, 09:57 AM
#11
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.
-
Apr 29th, 2008, 02:31 AM
#12
Thread Starter
Addicted Member
Re: How To Scroll Text In Title Bar of Form !!
●════════════════════════════◄►═════════════════════════●
___itš bεttεг tΘ bε απ Θρεπ šiππεг, thαπ α ƒαlšε šαiπt___
●════════════════════════════◄►═════════════════════════●
гαj
-
Dec 25th, 2009, 08:43 PM
#13
Hyperactive Member
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?
-
Dec 25th, 2009, 08:52 PM
#14
Hyperactive Member
Re: [RESOLVED] How To Scroll Text In Title Bar of Form !!
TY i been resolved it perfectly by myself ^_* cheer good job..
-
Dec 25th, 2009, 10:04 PM
#15
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|