Page 1 sur 1
fonctione sous windows pas sous linux
Publié : ven. 04/janv./2008 21:13
par micio
Bonjour à tous
Chez moi ce petit programme fonctionne parfaitement sous win2k mais n'affiche pas le de texte sous linux (mandriva 2008)
Code : Tout sélectionner
If OpenWindow(0, 10, 10, 500, 300, "test")
If StartDrawing(WindowOutput(0))
DrawText(5,5, "texte 1 de teste", $000000, $ffffff)
DrawText(5,25, "texte 2 de teste", $000000, $ffffff)
StopDrawing()
EndIf
EndIf
Repeat : Until WaitWindowEvent(0) = #PB_Event_CloseWindow
où est l'erreur ?
cordialement micio
Publié : sam. 05/janv./2008 9:04
par bernard13
as tu installer purebasic version linux sur mandriva 2008?
Publié : sam. 05/janv./2008 10:29
par micio
Bonjour à tous
Oui bien sûr j'ai installer PB linux, d'ailleurs j'ai d'autres choses qui fonctionnent fort bien.
cordialement micio
Publié : sam. 05/janv./2008 11:36
par Oliv
Publié : sam. 05/janv./2008 12:23
par Ar-S
Publié : sam. 05/janv./2008 13:53
par micio
Bonjour à tous
Mon but est d'apprendre à imprimer du texte donc je teste.
= = = = = = = = = =
Celui-ci fonctionne sur les 2 systèmes :
Code : Tout sélectionner
If OpenWindow(0, 100, 200, 300, 200, "2D Drawing Test")
If CreateImage(0, 300, 200)
If StartDrawing(ImageOutput(0))
DrawText(5,5, "texte 1 de tete", $000000, $ffffff)
DrawText(5,25, "texte 2 de teste", $000000, $ffffff)
StopDrawing()
EndIf
EndIf
If CreateGadgetList(WindowID(0))
ImageGadget(0, 0, 0, 0, 0, ImageID(0))
EndIf
EndIf
Repeat : Until WaitWindowEvent(0) = #PB_Event_CloseWindow
cordialement micio
Publié : sam. 05/janv./2008 14:27
par Backup
micio , je viens d'editer ton code pour ajouter les balises [ code] et [/ code]
prends l'habitude de les utiliser
edite ton code pour voir comment les posers
tu as le bouton
code qui sert a les poser les balises

Publié : sam. 05/janv./2008 14:59
par micio
Bonjour à tous
Ah oui ! c'est beaucoup mieux comme ça, merci.
Cordialement micio