Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Transparent shape in front of objects
Message
De
13/06/2002 10:30:11
 
 
À
13/06/2002 09:40:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00667906
Message ID:
00667938
Vues:
22
>Who knows a way to put an oval, transparent, redlined shape anywhere on a form that is in front of all objects and still enables the user to choose the underlying objects?

And here's an answer. It assumes there's a commandbutton command1.
with thisform
	.drawwidth = 3
	.fillstyle = 1	&& transparent (default)
	.drawstyle = 0	&& solid (default)
	.drawmode  = 13  && copy pen ( default)
	oldFC = .forecolor
	.forecolor = Rgb( 255, 0, 0 )	&& red
	.circle( ;
            .command1.width / 2, ;
            .command1.left + ( .command1.width / 2 ), ;
            .command1.top + ( .command1.height / 2 ), ;
            .5 )
	.forecolor = oldFC
endwith
You can remove the ellipsis with a call of the form's CLS() method.
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform