BeeHay Posted September 13, 2009 Share Posted September 13, 2009 I have started a fun project that involves the Draw. functions. I've always been curious about it, now I'm reading and re-reading to understand it. Just a few canvas questions. It looks as if my frame is the same settings as my pen...When I use Draw.FrameRect(DC, Position), it uses the defined pen settings... Can I have multiple Pen colors/settings? Would I need to place a seperate SetPen() above FrameRect() and place it at the top of the sequence, then re-define my pen later above the new line to draw? How would I make knob components stay with-in the canvas positions? What I did was use the length from the center of the canvas in both directions in the range of the knob settings. i.e. -142 to 142 = X var, -192 to 192 = Y var. It seems to work fine like this, just wondering if there is another way about it. How would I make a slider components range from positive to negative on a vertical slider? My vertical "Y" slider is working as it should, just when you move the slider, my pen in the canvas moves opposite. i.e. up is down and down is up. Also, I'm attempting to "draw" a continuous line in my canvas, simaliar to the Etch-A-Sketch. I'm guessing I need a few for() loops for the x and y axis', and a variable to add/subtract from. for(private.x=knobX, x != knobx, x++) draw.lineto(dc, line) enfor Something that uses the movement of my X,Y as the trigger for the for()? And lastly, line markers in the canvas sequence would be nice! (DF6?) Been working on it in my free time the last few days. Check it out! EtchASketch.ctl Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.