[PB4.4 B2] Drawing
Verfasst: 06.09.2009 17:23
Hallo,
folgender Code ergibt unter PB4.4B2 ein anderes (falsches) Ergebnis als bei
PB4.31:
Unter PB4.4B2 weist der Rand Lücken auf, unter PB4.31 nicht.
Ist das ein Bug oder gibt's irgendwelche drawingmodes die ich noch beachten
muss?
folgender Code ergibt unter PB4.4B2 ein anderes (falsches) Ergebnis als bei
PB4.31:
Code: Alles auswählen
Procedure PathBarDrawBorder(iX.i,iY.i,iWidth.i,iHeight.i)
; *************************************************
; Rand für die ImageButtons
; *************************************************
LineXY(iX+3,iY,iX+iWidth-4,iY)
LineXY(iX+iWidth-4,iY,iX+iWidth-1,iY+3)
LineXY(iX+iWidth-1,iY+3,iX+iWidth-1,iY+iHeight-4)
LineXY(iX+iWidth-1,iY+iHeight-4,iX+iWidth-4,iY+iHeight-1)
LineXY(iX+iWidth-4,iY+iHeight-1,iX+3,iY+iHeight-1)
LineXY(iX+3,iY+iHeight-1,iX,iY+iHeight-4)
LineXY(iX,iY+iHeight-4,iX,iY+3)
LineXY(iX,iY+3,iX+3,iY)
EndProcedure
If OpenWindow(0,#PB_Ignore,#PB_Ignore,300,300,"[...]")
ImageGadget(1,0,0,300,300,2)
CreateImage(2,300,300)
StartDrawing(ImageOutput(2))
Box(0,0,300,300,RGB(255,255,255))
FrontColor(RGB(50,50,50))
PathBarDrawBorder(0,0,100,50)
StopDrawing()
SetGadgetState(1,ImageID(2))
EndIf
Repeat
iEvent = WaitWindowEvent()
Until iEvent = #PB_Event_CloseWindowIst das ein Bug oder gibt's irgendwelche drawingmodes die ich noch beachten
muss?