
This method draws a hatched rectangle on the control. There are five styles of windows hatches available, an integer of 1 - 5 will indicate which one is to be drawn.
Returns the following according to the situation:
The recommended convention is passing the control identifier directly:
Copy Code |
|---|
(Odcl_PictureBox_DrawHatchRect MyControlReference [as Reference] (list (list UpperLeftX [as Integer] UpperLeftY [as Integer] Width [as Integer] Height [as Integer] Color [as Color] HatchPattern [as Integer]) (list UpperLeftX [as Integer] UpperLeftY [as Integer] Width [as Integer] Height [as Integer] Color [as Color] HatchPattern [as Integer]) ... ) ) |
An alternative convention is to identify the control by providing the project file, the dialog name and the control name:
Copy Code |
|---|
(Odcl_PictureBox_DrawHatchRect ProjectFile [as String] DialogName [as String] ControlName [as String] (list (list UpperLeftX [as Integer] UpperLeftY [as Integer] Width [as Integer] Height [as Integer] Color [as Color] HatchPattern [as Integer]) (list UpperLeftX [as Integer] UpperLeftY [as Integer] Width [as Integer] Height [as Integer] Color [as Color] HatchPattern [as Integer]) ... ) ) |
This function requires that the component is showing. Otherwise it has no effect.
Please create lists as follows using the list keyword:
(list (list x y ...) (list x y ...) ...)
It seems that ObjectARX does not always handle lists created as follows:
'(x y ...) (x y ...) ...
Copy Code |
|---|
; Draw hatched rectangles (Odcl_PictureBox_DrawHatchRect MyProject_MyForm_MyControl (list (list 0 0 50 50 -11 2) (list 50 50 50 50 -3 3) ) ) |
PictureBox_DrawArc, PictureBox_DrawCircle, PictureBox_DrawEdge, PictureBox_DrawFillRect, PictureBox_DrawFocusRect, PictureBox_DrawLine, PictureBox_DrawPoint, PictureBox_DrawRect, PictureBox_DrawText, PictureBox_DrawWrappedText