|
-
Jul 4th, 2000, 06:31 PM
#1
Thread Starter
Frenzied Member
I want to make a label, and when you are in the process of click it, the caption says one thing, and then when you let go, it says what it had there before
NXSupport - Your one-stop source for computer help
-
Jul 4th, 2000, 06:41 PM
#2
Use the Mouse_Down and Mouse_Up event.
If windows.crash = true then
load Unix
else
if Unix.Crash = true then
goto Burger King
end if
end if
Why don't you use
[/code]
If windows.crash = true then
load Unix
elseif Unix.Crash = true then
goto Burger King
end if[/code]
Than you only gotta use one end if. 
-
Jul 4th, 2000, 06:45 PM
#3
Here you go.
Code:
Option Explicit
Private g_mCaption As String
Private Sub Form_Activate()
g_mCaption = Label1.Caption
End Sub
Private Sub Label1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label1.Caption = "This is the temporary label"
End Sub
Private Sub Label1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label1.Caption = g_mCaption
End Sub
-
Jul 4th, 2000, 08:10 PM
#4
Thread Starter
Frenzied Member
thanks, and I thought about that, but doesn't it mean that if the moue is moved on the thing from the top and bottem?
NXSupport - Your one-stop source for computer help
-
Jul 4th, 2000, 09:23 PM
#5
transcendental analytic
Dimiva, The Label1_MouseDown event will fire when you press any of your mouse buttons down on label1, while Label1_MouseUp will fire when you release the button
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jul 4th, 2000, 09:36 PM
#6
Thread Starter
Frenzied Member
NXSupport - Your one-stop source for computer help
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
|