This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Can I draw a line on a canvas Widget?

Can I draw a line on a canvas widget? Is what you pass into sContext determine where the line gets drawn?

For example if I have a canvas - baseCanvas and I want to draw a line on it do write

GrLineDraw(baseCanvas.sBase.psDisplay, ,,,,)

 

  • Teresa Ainsworth said:

    For example if I have a canvas - baseCanvas and I want to draw a line on it do write

    GrLineDraw(baseCanvas.sBase.psDisplay, ,,,,)

     Hi Teresa, I cannot figure what are you asking for, if you initialized display widget then to draw a line on that display you just need fill in parameters to GrLineDraw(...) so try IE read GrDemo on examples of board or please clarify what you need.

  • My question is if you have several canvas widgets on a screen and you want to draw how does GrLineDraw know which one to draw on. Does it always get drawn on the location that you pass and it does not care what kind of widget is drawn on? I was having problems that I though the canvas was being drawn on top of the line so it was hidden by the canvas widget.