SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Drag -n- Drop to empty JavaJFCTreeView

    I need to drag and drop an item without using coordinates. 4Test allows a BeginDrag(#, object) and an EndDrag(object). However, the EndDrag has to drop the dragged object *onto* something. I need to drop it into an empty JavaJFCTreeView. This will essentially be the first item in the Tree. Since that is the case, there is nothing to drop the item on. Any ideas on this one?

  2. #2
    Member
    Join Date
    Feb 2000
    Posts
    98
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Drag -n- Drop to empty JavaJFCTreeView

    How about this:

    // get coordinates of top left corner of treeview
    RECT pos = ...JavaJFCTreeView ("#1").GetRect()

    and then use:

    // drop the object using the coordinates determined above
    EndDragAt () using the coordinates from pos.

  3. #3
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Drag -n- Drop to empty JavaJFCTreeView

    rg,

    Thanks. I had attempted the use of coordinates (something I avoid at all cost) but never by preceeding it with getRect(). That's a great thought. I'll give it a shot. Thanks!

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 12.50%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:50 PM.

Copyright BetaSoft Inc.