Results 1 to 9 of 9

Thread: Graphical representation of a WordSearch

  1. #1

    Thread Starter
    Frenzied Member nishantp's Avatar
    Join Date
    Jan 2001
    Location
    Where you least expect me to be
    Posts
    1,375

    Graphical representation of a WordSearch

    What i need to do is show the user a Wordsearch. That basically means, i need a table-like control, upon which i can draw shapes. Is there one?

    The purpose is that i have to write a program that can solve any wordsearch. I have no problem with the algorithm...but how should i show the user the results once the words are found?

    Suppose i have the following words search (in french):
    Code:
    ORGFUNC
    TUVEIHC
    UOJAIAH
    AJMETMA
    MNNDPIT
    OOECOLE
    IBFILLE
    The last five letters on the last line are a word - "FILLE". Once i find that, how can i show the user where it is?
    You just proved that sig advertisements work.

  2. #2

    Thread Starter
    Frenzied Member nishantp's Avatar
    Join Date
    Jan 2001
    Location
    Where you least expect me to be
    Posts
    1,375
    any ideas?
    You just proved that sig advertisements work.

  3. #3
    Lively Member
    Join Date
    Jan 2002
    Posts
    108
    a standard list box with an image list as well?
    make an icon of an arrow or something appear next to the wanted data entry?

    just an idea

  4. #4

    Thread Starter
    Frenzied Member nishantp's Avatar
    Join Date
    Jan 2001
    Location
    Where you least expect me to be
    Posts
    1,375
    Actually i think i can use a FlexGrid. Thanks anyways....you seem to be the only one who's going to answer this thread...
    You just proved that sig advertisements work.

  5. #5
    Armbruster
    Guest
    How are you displaying the words?

    You could put them in a RichText box and then change the color and/or bold the word if you find it.

  6. #6

    Thread Starter
    Frenzied Member nishantp's Avatar
    Join Date
    Jan 2001
    Location
    Where you least expect me to be
    Posts
    1,375
    So far what ive got is a two dimentional array containing all the characters. So what im doing is configuring a flexgrid tot he dimensions of the array. Im not sure how ill draw the lines on it yet...but ill think of something.
    You just proved that sig advertisements work.

  7. #7
    Registered User Nucleus's Avatar
    Join Date
    Apr 2001
    Location
    So that's what you are up to ;)
    Posts
    2,530
    Armbruster said it, use the richtextbox to display the info. BTW is there a reason you are using arrays for each char rather than strings for the whole word?

  8. #8

    Thread Starter
    Frenzied Member nishantp's Avatar
    Join Date
    Jan 2001
    Location
    Where you least expect me to be
    Posts
    1,375
    I'm using a 2D array because im saving a wordsearch in there, like the following(already posted above):
    Code:
    ORGFUNC
    TUVEIHC
    UOJAIAH
    AJMETMA
    MNNDPIT
    OOECOLE
    IBFILLE
    Btw its in french.
    You just proved that sig advertisements work.

  9. #9
    PowerPoster eiSecure's Avatar
    Join Date
    Jul 2000
    Location
    Texas
    Posts
    2,209
    Maybe you can you a shape control, and just draw it on top of the thing.

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