realbasic-nug
[Top] [All Lists]

Moving a listbox on a panel using a mouse

To: realbasic-nug at lists dot realsoftware dot com
Subject: Moving a listbox on a panel using a mouse
From: "Wade Maxfield" <wmaxfield at gmail dot com>
Date: Sun, 31 Dec 2006 17:44:01 -0600
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=BLkEN+ycqjqY0SL4qp9BqlZ2iQWAUr7ntbimigmog5hNnrUPj/NWByf9G2lt1E9nOIXRTdHTtLo63r1bJ4JktEaS2f5kpFeAGdnxZZLFhMiqssjBjd/eBkj/Rz81zCs1koZ1eF16cvlk9cW5ZZWVWs9CG7UDBMCum4E1Ig3yI4U=
Hi,

 I've tried multiple tricks and so far, no go.  I've read many pieces of
information, but I don't have answers.

 I have a listbox that I've created on the fly, using a clone of a
listbox(0) based on comments from the archive.  I place it on the correct
tab panel using panelindex.  I can set its x and y coordinates.

 I want to move the listbox when the user clicks on it and drags it to a
different location on the tab panel, which is my program's "worksheet."

 I tried some of the drag and drop technology, and I can get an outline of
the listbox to move (which would be acceptable).  However, no event fires
for the listbox or the tab panel on the mouse up, so I don't get any clue of
when the mouse up occurs or where the mouse is.

 I would like to know a couple of things.

 1.  How do I tell where the mouse is at any particular time (like in a
timer routine)?  I could use this to move the listbox.  I've looked for this
information, but I haven't found it in user guide or other locations.

 2.  How can I move a listbox (or any other control) at runtime by allowing
the user to click and drag the control?


 I'm working on porting a program I wrote in C++, and this is just one of
many problems I'll be tackling.

 This is my first trip with RealBasic.  I'm hoping it will work well.

thanks,
wade
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>