How do you draw freehand lines like in Paint,I can only draw straight lines

Hi,
Im tryin to develop a page where people can practice writing foreign characters using a mouse, I can currently only get straight lines from my code and was wondering what i would have to do for my lines to follow the movements of the user? As this would be more helpful!
(is it some sort of FOR loop with a repaint() method occuring at a regular interval??)
Yours Thankfully
Raj

was wondering what i would have to do for my lines to follow the movements of the userKeep track of the mouse x and y coordinates starting with mousePressed, continuing with every detected mouseMoved and terminating on mouseReleased. As a new set of coordinates is formed, redraw and repaint!
;o)
V.V.

Similar Messages

  • How do you draw a tie of two notes in the score editor window

    How do you draw a simple tie in the score editor window of Logic Pro 10 ; two quarter notes together, an eighth up-beat accross a bar line into the next measure etc? I can't find the answer in videos, help manual.  Please give a step by step how to do it.
    It's hard to believe that a program like Logic, that has more information than the New York Public Library, does not have a simple solution for tieing notes. Maybe Logic XI will have one, or "Logicians" can speak to Sibelius for a more "note-worthy" way to solving the problem so that the score editor can be more accessible for editing purposes for those that read and write manuscript. Lew Traver

    Hi
    Ties are generally automatically created as necessary. Simply adjust the length of the note in the Score (using DurationBars or the Inspector), or in the Piano Roll or Event list.
    CCT

  • How do you get a line with MULTIPLE fields to WRAP ?

    How do you get a line with MULTIPLE fields to WRAP ?
    Good afternoon everyone...
    THE PROBLEM: Why doesn’t a line with multiple fields WRAP?
    HYPOTHETICAL EXAMPLE/WHAT I”D LIKE TO SEE
    If I have 2 fields on a line (this is now a hypothetical example and nothing to do with my actual report)….let’s call them field A and field B. And if field A has values of all ‘X’ and field B has values of all ‘Y’…then….the normal case would be (ignore dots – only for spacing):
    A……………………… B
    XXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYY
    But what if A is too long? I would want to see B wrap onto the next line like this:
    A……………………………………………………B
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX YYYYYY
    YYYYYYYYYYYYY
    And similarly….if B is extra long, can the line print as:
    A………………………. B
    XXXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYYYYYYYYYY
    YYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
    I don’t want the case where B is long and I get:
    A………………… …B…
    XXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYYYYY
    ………………………..YYYYYYYYYYYYYYYYYYYYY
    I can see how you can wrap an individual field like that…but how can you WRAP a line of[b] fields within the frame so it wraps to the BEGINNING of the frame on next line?
    My SPECIFIC CASE
    I have a report that I have stripped down to a simple structure for the purposes of this explanation.
    My DATA MODEL has the main QUERY (for plant family and species data). The columns of the query are divided into 2 groups. The 1st GROUP contains the family data. Below that is the rest of the species data in a 2nd GROUP.
    Linking from the 2nd species group (above) is a new QUERY to extract REGION data based on the common key field. Under this 2nd query is another group with all the REGION columns.
    The LAYOUT MODEL has a group frame (the main , base one)
    On top of this is a repeating frame based on the 1st group (family data).
    On top of this is another repeating frame for the 2nd group (species data).
    On top of this is 2 Frames on the same line line. The 1st frame contains columns from the species group .
    The 2nd frame on this line is a repeating frame. The PRINT DIRECTION for this frame is ACROSS/DOWN. It repeats details of the REGION where the species is found. These columns come from this group come from the REGION QUERY and GROUP.
    All fields on the report line have variable horizontal elasticity.
    The problem is that when there is too much data on the line, it does NOT WRAP to the 2nd line.. It TRUNCATES.
    Can the line be made to WRAP????..
    In my current report, 1 of 2 things is happening:
    1) All fields print on the line until it hits the page boundary and then it just stops. Truncated!
    2) All fields print on the current line, then Oracle Reports throws a new page to print the REMAINDER of the long, input line
    But I would like a LONG line to continue printing onto the following line of the same page.
    I have tried all combinations of the elasticity fields and the ‘ADVANCED LAYOUT’ properties.
    I have been focussing my attention with this problem on the frames .
    We are using REPORT BUILDER V 6.0.8.26.0
    Thankyou to anyone who may offer assistance.
    Tony Calabrese.

    Steve,
    you gain 1 thing, but you lose something else!
    This thing is SO frustrating!
    Hey Steve! Good afternoon.
    I've done as you suggested....I have a long text boilerplate item - the only 1 on the line...and it has all the column in it.
    So it looks like:
    &col1 &col2 &col3 &col4 &col5 etc etc etc
    And the line expands nicely to each field's requirements.
    And when it gets to the right page boundary...it WRAPS to the next line! Beautiful!!!
    The only thing is that...when I had individual fields across the line I was able to create format triggers for those fields. And in doing so I was able to reduce the font and change the justification. I had to do that because some of the fields had to appear superscripted.
    So I wanted something like (ignore the dots):
    ...................................ppppp
    AAAA BBBB CCCCC DDDD EEEE FFFFFF
    So the field of 'ppppp' appeared slightly higher on the line than the other fields...
    I can't see how I can do this with a single TEXT field containing all the &COL values.
    Have you ever come across anything like this?
    Thankyou again,
    Tony Calabrese 12/4/2007

  • How do you draw a oval in cs6?

    How do you draw a oval in cs6?
    Thanks.
    Al

    Al-R wrote:
    Close but no cigar.  I just want to draw a one pixel oval but what I get now is a thick oval.  How do I draw a simple line?
    Al
    Wouldn't a one pixel oval be just a dot? Or are you meaning to say you want to draw an oval that has a one pixel wide edge?
    If the latter, then select the oval marque tool, draw your oval, then stroke (edit> stroke) the selection with a one pixel stroke, using the color off your choice.
    To draw a simple line:
    • use the Pencil tool, set the thickness in the options bar. Click where you want the line to start, then move your mouse to where you want the line to stop and shift-click to draw a straight line to that end point. PS will connect the two points with the line. Or you can free hand the line - just click and draw.
    • use the Path tool to draw your line, then pick your brush tool, set the pixel size, pick the color you want as your forground color, then in the Paths pallete drop down, select stroke path and pick the brush tool.
    • use the Line tool, inside the shape tool box. Lots of options, just need to experiement.

  • How do you specify a line number with getline() (c++)

    How do you specify which line for getline() to read with c++ similiar to how awk uses $1, $2, $3 , etc etc...
    Example:(Ignore the underscores)
    Line1 Line2
    10____10
    20____20
    30____30
    40____40
    if I were making a program to remove 10 on the first line and 20 on the second line how would I tell getline which line to read
    Example source code:
    #include <cstdio>
    #include <fstream>
    #include <string>
    #include <iostream>
    using namespace std;
    int main()
    string line;
    string line2;
    ifstream in("/Users/lundquisted/Desktop/infile.txt");
    ofstream out("/Users/lundquisted/Desktop/outfile.txt");
    while( getline(in,line) )
    if(line != "10")
    out << line << endl;
    while (getline(in,line2) )
    if(line2 != "20")
    out << line2 << endl;
    in.close();
    out.close();
    remove("/Users/lundquisted/Desktop/infile.txt");
    rename("/Users/lundquisted/Desktop/outfile.txt","/Users/lundquisted/Desktop/inf ile.txt");
    return 0;
    }

    Eric Lundquist wrote:
    store the output of a system() command within a c++ program to a string and/or variable
    A number of apps call Unix utilities and capture both stdout and stderr, typically for viewing in a log window, but for other uses as well. Xcode, for example, starts up gcc and does various things with the text that gcc might otherwise print in a Terminal window. Most apps that rely on Unix commands that way don't use "system()", which is a rather crude way of launching utilities that leaves the parent program with very little control. Usually, the best way to manage helper utils from a Cocoa app is by using NSTask and NSPipe. If you spend some time with the two following pages, you'll learn how to do almost anything you want with command line utils from inside a Cocoa app:
    [http://www.cocoadevcentral.com/articles/000025.php]
    [http://macosx.com/forums/archive/t-3927.html]
    The first link goes to a great tutorial on using NSTask. Capturing stdout and stderr are only covered briefly towards the end, however. Note the last comment explaining why "system()" is a bad idea.
    The second link goes to a forum thread. Scroll down to the code posted by "blb" for some very clear examples of launching with NSTask and reading the output with NSPipe.
    If you really want to use a shell command, you could give NSTask a command like ' +bash -c "ls -lt | grep drwx"+ ' (see how setArguments: is used in the tutorial).
    If you just want to do something cheap and dirty with "system()" so you can see some awk output while you're learning how to do things the right way, I guess you could do something like this:
    system(" cat ~/random.txt | awk '{print $2}' > MyFile.txt");
    NSString *myString = [NSString stringWithContentsOfFile:@"MyFile.txt"
    encoding:NSUTF8StringEncoding error:nil];
    Of course you can just read MyFile.txt into cin if you're not using Cocoa.
    - Ray

  • How do you delete and app like big fish?

    how do you delete and app like big fish? I did not want the game but the manager is still on my computer.....I want to delete it. Is their a way to do that. because it doesn't have an uninstall.

    Drag it to the trash from your Applications folder.

  • How do you draw a road?

    How do you draw a road?
    Looking to draw a road as part
    of a header for a courier website.
    I am using pse 9

    There's something at the bottom of your post, but it does not open.
    Be that as it may, this program is not well suited to drawing.
    You can draw a road scene yourself, if you wish, then scan it, and work further on the scan in PSE.
    You could photograph a road scene, use it for your header with added text.
    If you need help, post it here on the forum page (you can't do it via e-mail), and I'm sure you will receive further input.

  • How do you see another month on the calendar or can you only see the current month only

    how do you see another month on the calendar or can you only see the current month only

    You can't see another monthly calendar in the monthly calendar view, you can only see upcoming events for the next 7 days.

  • HT2476 how do you create a matrix in powerpoint? I can't find any information in the help option.

    How do you create a matrix in powerpoint? I can't find any information in the help option. I also tried MS Excel but no help.

    Since this question is about a Microsoft product, you might have more luck getting suggestions if you ask in Microsoft's own forums.
    Regards.

  • How do you run apps on creative cloud? I can't seem to run them or see them on my desktop

    How do you run apps on creative cloud? I can't seem to run them or see them on my desktop

    Hi JasonLuong,
    You will have to go to www.creative.adobe.com and login with your Adobe Id on which you have purchased the subscription.
    You can go to the download center and then start downloading all the cc apps available. It will first download and install the Creative cloud desktop tool in your computer. This creative cloud desktop will show you the option to download all the CC programs, the updates, etc.
    Thanks
    Kapil Rupani

  • How to put selected videos in one place so I can only show those on my TV and not ALL of the videos I have ever taken.

    How to put SELECTED  videos in one place, so I can ONLY show the SELECTED videos on my TV and not ALL of the videos I have ever taken

    YYou have to describe your issue in more detail. Are you using iTunes? Trying to see it in Apple TV, etc, etc.

  • HT1595 Ive just updated my Apple TV software to V 5.0(4099) and now i cant see you tube etc on my home screen, i can only see settings and computers, what gives? thanks

    Ive just updated my Apple TV software to V 5.0(4099) and now i cant see you tube etc on my home screen, i can only see settings and computers, what gives? thanks

    I just had this issue. Go into settings and reset the Apple TV after the firmware update. (note just "reset settings" and NOT back to factory settings)

  • How do you type multiple lines on a path? (label for top slope of bottle)

    Ill describe the best I can...
    I am making a label that will wrap around the top half of a bottle, the part that slopes to the spout.  Because of this, the label is actually shaped more like an arch so when it goes onto the bottle, it will look more straight.  The top part of the label of course will be a tighter arch than the bottom half.  This is part of why its hard to make things look right.  I know I can bend a line at the same angle and type on it and it looks right but I have a paragragh I have to do this with, about 5 lines worth.  I dont want to have to make a different path line for each one because that would be a nightmare to get each line perfect with each other.  Is there a way to do the "type on a path" to work with multiple lines at once?

    Scott Falkner wrote:
    You can't. Each line of text requires an explicit path. You could draw the top line and the bottom line, then make a three-step blend between the two. Expand the blend then link the paths so that text from path 1 flows to path 2, and so on. In the example below each path is linked to the one below. I only needed to paste text into the top path. I was able to link to each following path by clicking on the red + at the end of the previous path, then clicking on the path below.
    You could also design the label flat and use a distortion envelope or Warp effect to bend it. This is how I have done such labels in the past. That method requires more experimentation, but makes edits easier.
    That seems to be something that might work out.  How do you separate each of the strokes from the blend to make them typable though?

  • How would you draw a soccer goal?

    Hi guys,
    this might be really basic for the pro's out there, but I'm
    just a beginner with Fireworks.
    Basically, I'm trying to draw a soccer goal (at least the
    frame of it) making it look like metal. There are styles that
    provide this sort of finish in Fireworks, however, the problem is
    that I cannot come up with a shape for the purpose. If I just draw
    three lines (post, crossbar, post), and apply metal finish to them,
    they look cut off and not very nice. But a rectangular box
    obviously has the bottom line too much.
    How do you do that??
    Thanks for any tips,
    Jan

    Hmm.
    I did a Google search for images of soccer goals. I guess it
    depends on how stylized you want your image to be, or how
    realistic. I think a fairly realistic image would be on the
    difficult side.
    The tricky thing is that you're trying to represent something
    that is made of pipes (usually round), so you need to indicate this
    volume with shading. The shading on the crossbar won't be the same
    as the shading on the uprights. I also noted the welded joints
    where the crossbar attaches to the uprights. Somehow, you need to
    indicate these seams. Another thing that might help you is to use
    an angle which is not straight on. Perspective enhances realism.
    Many of the images I saw showed goals that have more pieces than
    just the uprights and crossbar, either at the top or the bottom to
    hold the net. Then, of course, there's the net. These details will
    help make your image look more realistic, and more like a goal. The
    metallic finish would really be the last thing to add realism. You
    need to get the shapes right, first.
    Before trying to draw a goal, study real ones. Here are a
    couple of different goals:
    goal
    post from rectangular pipe
    goal
    post from round pipe
    And...here's the
    Google
    search for soccer goal images.
    Good luck!

  • How do you display multi line text

    Hi
    How does one display multi line text? I would like to display address information on the screen so that the user can select it and copy/paste it into another application (ms word).
    I have the address information as separate columns (address1, address2, city, province, postal code) so I've changed the query on my view object to add it as address1 || chr(10) || address2 || chr(10) || city ....
    If I display it on the page as an output text, it all displays as one line (okay, the chr(10) thing did not work but that's beside the point).
    In general, is there a way to display multi line text? What component is suitable for this, if there is one?
    Thanks

    You can use normal outputText components in a panelGroupLayout (vertical layout) and add each attribute to it. The remove the labels or set the components to simple. You can then mark the data in the browser and use normal copy&paste to transfer the data.
    If you want to output longer text with line breaks you can use an outputText with escape=false and use the br html tag to generate a line break;
    <af:outputText escape="false"
    value="+++++++long<br>test<br> this is a long text in multiple lines" id="ot10" truncateAt="#{viewScope.ToggleBean.truncateLength}"/>Timo

Maybe you are looking for

  • ALV Hierarchy

    Hi Experts, I have Hierarchy report, but i took 2 tables header and item tables, but in my output item table is dispalying but heading is not displaying, is there any setting problem and header table heading is gone right side, not displaying properl

  • IPhoto keeps selecting the "Last Import" tab on the left hand side.

    Whenever I'm looking at photos in iPhoto, it will randomly switch to the "Last Import" tab on the left hand side so that I've viewing photos from my last import. It doesn't matter if I'm editing photos, or just looking through events, every 5 minutes

  • Failover to Physical Standby

    Hi All, I have a configured data guard  in my local system . Please find the below configuration of the Data guard Data Guard Type : - Physical Standby (Oracle version 11g) Service Responsible for Log Transport : - ARCH No Standby Redo log : - Neithe

  • Signature Mail.app and picture

    Is it possible to import a picture to signature? I want to make a signature in Mail.app with a picture of our company. Like the way MS Outlook can. Could you help me with that? With kind regards, Peter Tollenaar the Netherlands

  • WMS @sto level

    What you mean by WMS at storage location level & WMS at bin level??