Mark,

Yes I would love a copy of it as You where the one that helped me out, as I re-read the old post and it was Me as well that asked more on the subject. At that time, I wanted to know as I thought I was going to work on something but I had not.

Now I am and need the indo.

Thanks, and please let me know where I can view the article

Jonathon

----- Original Message ----- From: "Mark Nutter" <[EMAIL PROTECTED]>
To: "REALbasic NUG" <[email protected]>
Sent: Wednesday, October 11, 2006 6:10 AM
Subject: Re: REALBasic IDE type Interface




--- Jonathon Bevar <[EMAIL PROTECTED]> wrote:

Some time ago, maybe even over a year ago, someone wanted to
know how to
create an IDE like the one REALbasic has and uses.

I need to create a PlaceCard that holds ButtonButtons and
Seperators on it
and then save it so the RB Programmer can use it over again.
It's a Windows
ToolBar Creator that I am creating.  It's been over a year as I
remember
now, so I am not sure who was the one that ask teh question or
the soul that
replied.

I've got an article on RBLibrary.com complete with detailed
explanations and source code examples.  It takes you step-by-step
through the process of creating an IDE-like interface.  The basic
approach I took was to create an Overlay class, subclass of
Canvas, with a property named MyControl of type RectControl.
Also a Boolean property called Selected.  The idea was that when
you drag, say, a PushButton onto the window, the window would
clone an Overlay for it, and stick the Pushbutton in the
myControl property. Then the Overlay would handle things like
moving, resizing, drawing the selection handles, and stuff like
that. Whenever the Overlay was moved or resized, it would copy
its new location and dimensions to myControl.

Control arrays are also important: in the destination window, you
have a bunch of invisible controls with their Index property set
to zero to turn them into control arrays.  There needs to be an
Overlay array, plus one control of each type that you want your
users to be able to edit.  When you drag a control from a palette
to the window, what you really do is put a string in the DragItem
that tells the window which control to clone.  Then clone the
control, plus an Overlay, and put the control in the Overlay's
myControl property, and set Visible and Enabled to true on both
the Overlay and the control. Set the location and dimensions and
you're ready to go.

If you have questions, let me know (or you're welcome to buy the
RBL article too ;-).


Mark Nutter

Quick and easy regex creation and debugging!
http://www.bucktailsoftware.com/products/regexplorer/

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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>


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.2/471 - Release Date: 10/10/2006




--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.2/471 - Release Date: 10/10/2006

_______________________________________________
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>

Reply via email to