Results 1 to 3 of 3

Thread: Border Detection (API or Challange)

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    ma,usa
    Posts
    485

    Border Detection (API or Challange)

    Hi

    I can't help thinking there must be an API function around already to tell me if I am over the border of a selected region. Even if not I want to know the most efficient and fastest method to do this in code. I am using the following suedo code:

    kinda vb code:
    if y=sel_top 'plus or minus 2 and y=sel_top+hieght 'plus or minus 2 then
    if x=sel_left 'plus or minus 2 then lineState=0 'lft border
    if x=sel_left + width'plus or minus 2 then lineState=1 'rt border
    end if
    if x>sel_left'plus or minus 2 and x<sel_left+width'plus or minus 2 then
    if y=sel_top 'plus or minus 2 then lnState=2 'tp border
    if if y=sel_top +height 'plus or minus 2 then lnState=3 'bt border
    end if

  2. #2

  3. #3

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