|
-
Nov 20th, 2003, 07:21 PM
#1
Thread Starter
Lively Member
Rotate Captions or Text boxs?
I know its been asked before, but all the previous threads about it pointed to a link that doesn't exist anymore.
-
Nov 20th, 2003, 07:34 PM
#2
VB Code:
Private Sub Form_Load()
Me.Caption = "This is a scrolling caption "
Timer1.Interval = 400
Timer1.Enabled = True
End Sub
Private Sub Timer1_Timer()
Me.Caption = Right$(Me.Caption, Len(Me.Caption) - 1) & Left$(Me.Caption, 1)
End Sub
-
Nov 20th, 2003, 07:35 PM
#3
1. By using a .OCX.
2. By using API.
Bruce.
-
Nov 20th, 2003, 08:59 PM
#4
Thread Starter
Lively Member
Martin, thanks but I want something to rotate, like going around in a circlular manor.
Bruce, are you sure you have to use one of those two things to do it?
-
Nov 20th, 2003, 09:34 PM
#5
Bob,
I wouldn't expect it will be too simple.
Suggestion: Can us use a Rotaing Image?
Bruce.
-
Nov 20th, 2003, 10:22 PM
#6
This example rotates TEXT, not the TextBox/Label, however, it
may be an option for you 
Bruce.
-
Nov 20th, 2003, 10:28 PM
#7
I was playing with the following. If you adopted the lookup table idea above,
you could manipulate the X, Y co-ords (below) to do something similar
without the overheads:
VB Code:
Option Explicit
Private Declare Function TextOut Lib "gdi32" Alias "TextOutA" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal lpString As String, ByVal nCount As Long) As Long
Private Sub Form_Paint()
TextOut Me.hdc, 100, 100, "A", 1
TextOut Me.hdc, 120, 120, "B", 1
TextOut Me.hdc, 140, 140, "C", 1
End Sub
The above will yeild A, B, C diagonally down the Form.
EDIT: The above refernce to the .OCX has been updated, here it is.
Bruce.
Last edited by Bruce Fox; Nov 20th, 2003 at 10:34 PM.
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
|