I trying to create a *.bmp true mirc, but all i get is a black *.bmp, the text arent added to it.. and i dont know what cosing it.. $chr(3) <<-- the char for colour sign. $colour(text) <<-- return 1, thats my default text colour, so that wouldent cose any problem, Testing is just a word i added, it will read the text from a %var later on..
[code]
dialog preview {
title "Preview"
size 220 390 214 9
option dbu
button "Ok",1, 30 110 80 12, ok, hide
icon 2, -1 -5 280 20
}
alias preview {
.remove $mircdirimages/preview.bmp
if ($dialog(preview) == $null) { dialog -mdhvo preview preview }
var %prv = $mircdirimages/preview.bmp
window -phf @preview 10 10 583 24
drawtext -bpc @preview MS Sans Serif 12 1 1 638 20 $chr(3) $+ $colour(text) Testing
drawsave @preview %prv
window -c @preview
update.preview
return %prv
}
alias update.preview {
did -g preview 2 $mircdirimages/preview.bmp
}
[code]