Results 1 to 5 of 5

Thread: Draw ARC ( )

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2001
    Posts
    21

    Exclamation Draw ARC ( )

    hello

    how i can draw the arc like the char "( ) "
    that the left arc move to lfet when in write in bettwen them
    and when i press ENTER then the lengh of arc have to incerse
    to write someing else in bettwen the arc

    with thanks

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Dec 2001
    Posts
    21
    is it easy to do these ??
    can any one give me hint or the code of thats

  3. #3
    jim mcnamara
    Guest
    Oh. I think I get what you want.

    You want to have text that is entered make the parenthesis character move. Let's try using a textbox.

    Make a Textbox with right justification
    Code:
    Text1.Alignment=vbRightJustify
    
    Text1.Text= "( )" '- 3 characters to start with start with: 
          ' [open paren] space [close paren]
    Text1.SelStart = 2   ' makes the space the selected starting point
    Text1.SelLength = 1 ' one character only
    With each KeyPress event for the TextBox
    You have to update the text, reset the Text1.SelStart, Text1.SelLength properties.

    This is only a start - I don't have VB on this machine, I can't really do much more without experimenting. There are lots of people who post here that can take this a little further.

    There are problems. The user could backspace (delete) a parenthesis character, could cut from the box, or paste into the box, for instance. You have to handle all of these issues.

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Dec 2001
    Posts
    21
    Thanks for replay

    what you are saying that good and its work

    but i dont want these

    what i want to do these in picture box
    becuse the "()" when i wright bettwen or inside that ( ) and i press Enter i want the arc Lengh to be increse and able me to right a multi line in between the brackt

    with thanks


  5. #5
    Frenzied Member Microbasic's Avatar
    Join Date
    Mar 2001
    Posts
    1,402
    Here's a thought.

    You can use a image control and put the arc in it. Then, you could move it or resize it to your will.

    Is that what you want?

    <NOTE: Excuse my habit of not posting long code until I am sure it is what the thread starter wanted>


    MicroBasic
    Dragon Shadow Trainer

    There is no good or evil in the world...only programmers and fools .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width