Results 1 to 6 of 6

Thread: Need Help from experts

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715

    Unhappy

    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

  2. #2
    Guest
    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.

  3. #3
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    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

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    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

  5. #5
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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.

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    ok, thanks
    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
  •  



Click Here to Expand Forum to Full Width