Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drawing a simple cuboid ??
Message
De
22/03/2003 08:55:32
 
 
À
22/03/2003 08:41:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00768890
Message ID:
00768898
Vues:
22
Albert, to change the perspective of the cuboid add the following directly after the calculation for the nXdis and nYdis values and before the actual drawing commands:
* To change the perspective of the cuboid change the sign of nXdis and/or nYdis

nPerspective = 1

DO CASE
CASE nPerspective = 1
  
  * Up and to the right

  * Leave as is as that would be the default.
  
CASE nPerspective = 2

  * Down and to the right
  
  nYdis = nYdis * -1
  
CASE nPerspective = 3

  * Down and to the left
  
  nXdis = nXdis * -1
  nYdis = nYdis * -1
  
CASE nPerspective = 4

  * Up and to the left
  
  nXdis = nXdis * -1
  
ENDCASE
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform