Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to spin a fan
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01348217
Message ID:
01348234
Views:
21
This message has been marked as a message which has helped to the initial question of the thread.
>Naomi
>
>I think it´s harder to control a picture, or to make it look like the rest of the
>still parts I will build
>
>The form has a circular shape and other 4 shapes as pads
>
>in timer.init:
>
>thisform.uP.Visible = .T.
> thisform.DOWN.Visible = .T.
> thisform.RIGHT1.Visible = .F.
>
>thisform.LEFT1.Visible = .F.
>
>at timer.timer event, as below
>But it starts to spin and then stops
>Moises
>
>====================================
>

I see. I can only suggest slight code improvements such as (see changes inside). Don't think they matter much. See also Cetin's suggestions.

thisform.uP.Visible = not thisform.uP.Visible

>

>thisform.DOWN.Visible = NOT thisform.DOWN.Visible
>

>thisform.RIGHT1.Visible = NOT thisform.RIGHT1.Visible


etc.

Less code lines.

>
>
> IF thisform.LEFT1.Visible = .T.
>thisform.LEFT1.Visible = .F.
> ELSE
> thisform.LEFT1.Visible = .T.
> ENDIF
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform