TextGadget Transparent
-
- Messages : 446
- Inscription : mar. 25/mai/2010 17:24
- Localisation : Bnei Brak, Israel
TextGadget Transparent
C'est surement une vieille question mais comment on fait un textgadget transparent, je veux dire, que si il y a une image et on met du texte dessus, qu'il n'y ait pas de fond deriere le texte mais que ce soit transparent
merci
merci
Re: TextGadget Transparent
dans la doc a 2Ddrawing ()
la fonction DrawingMode(Mode)
la fonction DrawingMode(Mode)
-
- Messages : 446
- Inscription : mar. 25/mai/2010 17:24
- Localisation : Bnei Brak, Israel
Re: TextGadget Transparent
oui mais il faut a chaque fois mettre startdrawing etc
et j'en ais besoin beaucoup, et il n'y a pas de fonction pour changer le texte
n'y aurait'il pas un moyen avec le textgadget?
et j'en ais besoin beaucoup, et il n'y a pas de fonction pour changer le texte
n'y aurait'il pas un moyen avec le textgadget?
Re: TextGadget Transparent
en fait je ne comprends pas trop ta questionParole De JOJO a écrit :n'y aurait'il pas un moyen avec le textgadget?

donne un exemple pour voir ..
Re: TextGadget Transparent
.........................
Dernière modification par Backup le dim. 20/mars/2011 13:03, modifié 1 fois.
-
- Messages : 446
- Inscription : mar. 25/mai/2010 17:24
- Localisation : Bnei Brak, Israel
Re: TextGadget Transparent
ben ca par exemple
alors evidement je peux mettre le fond du gadget en meme couleur, mais si c'est une image en fond de fentre?
Code : Tout sélectionner
If OpenWindow(0,0,0,270,160,"TextGadget",#PB_Window_SystemMenu|#PB_Window_ScreenCentered)
SetWindowColor(0,$23252)
TextGadget(0, 10, 10,250,20,"Gadget texte standard (texte alignי א gauche)")
Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf
-
- Messages : 446
- Inscription : mar. 25/mai/2010 17:24
- Localisation : Bnei Brak, Israel
Re: TextGadget Transparent
non c'est pas caDobro a écrit :peut etre solution ici :
http://www.purebasic.fr/french/viewtopi ... nt#p107781
(3 secondes avec le bouton recheche du forum)
Re: TextGadget Transparent
................
Dernière modification par Backup le dim. 20/mars/2011 13:00, modifié 1 fois.
-
- Messages : 446
- Inscription : mar. 25/mai/2010 17:24
- Localisation : Bnei Brak, Israel
Re: TextGadget Transparent
j'ai pas pige
la tu fais quoi?
(je sais pas pourquoi j'ai eu besoin de ce setgadgetcolor)
la tu fais quoi?
Code : Tout sélectionner
If OpenWindow(0,0,0,270,160,"TextGadget",#PB_Window_SystemMenu|#PB_Window_ScreenCentered)
; SetWindowColor(0,$23252)
CreateImage(0,270,160)
StartDrawing(ImageOutput(0))
Box(0,0,270,160,$FFFFFF)
Box(0,0,50,40,$37F1C8)
StopDrawing()
ImageGadget(1,0,0,270,160,ImageID(0))
TextGadget(0, 10, 10,250,20,"Gadget texte")
SetGadgetColor(0, #PB_Gadget_FrontColor,$000000)
Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf
Re: TextGadget Transparent
.............
Dernière modification par Backup le sam. 01/oct./2011 10:50, modifié 1 fois.
Re: TextGadget Transparent
........................
Dernière modification par Backup le dim. 20/mars/2011 13:00, modifié 1 fois.
-
- Messages : 446
- Inscription : mar. 25/mai/2010 17:24
- Localisation : Bnei Brak, Israel
Re: TextGadget Transparent
ca marche, si la couleur de fond de la fenetre est uni et tu choisis la meme couleur pour le fond de texte, mais si la couleur n'est pas uni, comme l'exemple que j'ai poste, tu fais quoi?
merci
merci
Re: TextGadget Transparent
..................
Dernière modification par Backup le dim. 20/mars/2011 13:01, modifié 1 fois.
-
- Messages : 446
- Inscription : mar. 25/mai/2010 17:24
- Localisation : Bnei Brak, Israel
Re: TextGadget Transparent
C'a a l'air sympa comme idee, mais je cherche un truc plus simple (si ca existe)
merci quand meme
merci quand meme
Re: TextGadget Transparent
.......................
Dernière modification par Backup le dim. 20/mars/2011 13:01, modifié 1 fois.