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

Reply via email to