Results 1 to 7 of 7

Thread: Freeze Program??

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    THis is what I want to do

    Freeze the screen of my program -
    Shape1.Forecolor = vbblue
    shape1.refresh
    Sleep 100

    Shape1.Forecolor = vbred
    shape1.refresh
    Sleep 1000

    Shape1.Forecolor = vbgreen
    shape1.refresh
    Sleep 1000

    Shape1.Forecolor = vbyellow
    shape1.refresh
    Sleep 1000
    Unfreeze the screen of my program

    What Would Happen is the shape
    after 4 second2 would change
    its color to yellow.. Not blue then
    red then green then yellow..

    KNow of a way to do that?

  2. #2
    Guest
    Please elaborate. I don't really understnad what you want to do.

    Is it Blue > Red > Green > Yellow then keep looping this?

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    No.

    Thats just an example.

    I basicly want to do things
    to the screen and not have
    the program register it till
    I say the code that unlocks
    it..

    You understand?

  4. #4
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Code:
    'tough to do..shape has no forecolor
    '
    'if you use fill color you can use a timer [Timer1]
    'add a shape [Shape1]
    '
    'cut and paste this code.
    
    Public x As Integer
    
    Public Function checkColor(x As Integer)
    
        Select Case x
        Case 0
        Shape1.FillColor = vbRed
        Case 1
        Shape1.FillColor = vbYellow
        Case 2
        Shape1.FillColor = vbGreen
        Shape1.FillStyle = 1
    
    End Select
    End Function
    
    Private Sub Form_Load()
    
        Timer1.Enabled = True
        Timer1.Interval = 4000
    
    End Sub
    
    Private Sub Timer1_Timer()
    
    Call checkColor(x)
        x = x + 1
        If x = 3 Then Timer1.Enabled = False
    End Sub
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517

    Let me explain again

    No no.

    thanks .. but thats not it.

    I would like to actually
    use bltbit to put a image
    on the screen and then
    tell the screen to run
    through code and not
    change. and then refresh
    the screen ( so that it
    refreshes it but really
    doesnt look like it did)
    and then tell the screen
    to catch up and start reacting
    again.

    thanks.

  6. #6
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Have fun!
    Why would you run code and then tell the system no code has been run! I really don't understand the concept. Basically, I do believe you put a timer on the button. If button pressed it does nothing till timer counts to 4..then it runs the code...repeat the process..everything is behind itself in appearances.
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  7. #7
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    what do you mean?

    why don't you just change it when you want to?

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