Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Creating windows from plugin (Real Studio Plugins Mailinglist archive)

Back to the thread list
Previous thread: Seeking sugguestions for file catalog
Next thread: resources in new rb plugin format


Re: resources in new rb plugin format   -   Alexander Cohen
  Creating windows from plugin   -   Tristan Perich
   Re: Creating windows from plugin   -   Will Leshner
   Re: Creating windows from plugin   -   Chad J McQuinn
   Re: Creating windows from plugin   -   Nick Lockwood
    Re: Creating windows from plugin   -   Tristan Perich

Creating windows from plugin
Date: 10.06.04 18:20 (Thu, 10 Jun 2004 13:20:18 -0400)
From: Tristan Perich
Hi Everybody,

I'm not sure how or where to start, but does anyone know how to create and
display windows from a plugin? I know the eSellerate plugin comes with its
own windows, so I know it's possible. I'm not talking about showing windows
that are in the REALbasic project, but embedding them into the plugin
itself.

Does this pose problems for Mach-O applications if I code the windows in
C++?

Has anyone done anything like this or have information on where to start?

Thanks for any answers to these vague questions.

All,
Tristan

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

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

Re: Creating windows from plugin
Date: 10.06.04 18:30 (Thu, 10 Jun 2004 10:30:06 -0700)
From: Will Leshner
Tristan Perich wrote:

> Hi Everybody,
>
> I'm not sure how or where to start, but does anyone know how to create and
> display windows from a plugin? I know the eSellerate plugin comes with its
> own windows, so I know it's possible. I'm not talking about showing windows
> that are in the REALbasic project, but embedding them into the plugin
> itself.

I would think that if you make toolbox calls to show windows in a plugin, then they will be shown. But it won't be cross-platform and if they are regular document windows I have no idea how well (or badly) they will interact with RB's windows.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

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

Re: Creating windows from plugin
Date: 10.06.04 18:34 (Thu, 10 Jun 2004 12:34:15 -0500)
From: Chad J McQuinn
On Jun 10, 2004, at 12:20 PM, Tristan Perich wrote:

> Hi Everybody,
>
> I'm not sure how or where to start, but does anyone know how to create
> and
> display windows from a plugin? I know the eSellerate plugin comes with
> its
> own windows, so I know it's possible. I'm not talking about showing
> windows
> that are in the REALbasic project, but embedding them into the plugin
> itself.

I have not seen the plugin you are talking about, but here are two ways
I can think of.

1) You can use CFUserNotification (in CoreFoundation.framework) to
display user notices and basic dialogs.

2) For more complicated windows, use CreateNewWindow and manage the
window yourself; you would need to be very careful to make sure that
your plugin manages all the events for that window and even so, you
could never be totally sure that it wouldn't muck with RB's internal
event handling.

3) You can use Cocoa windows completely trannsparently and behind RB's
back. You would either need to have your plugin compiled for Mach-O to
do this, or spend many days fitzing with
CFBundleGetFunctionPointerForName and objc_msgsend.

-Chad

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

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

Re: Creating windows from plugin
Date: 10.06.04 18:38 (Thu, 10 Jun 2004 18:38:20 +0100)
From: Nick Lockwood
It's pretty easy actually I think. I've done it using declares form
within REALbasic. All you need to do is use the standard toolbox
functions to make a window and assign it an event handler. Of course if
you want to add controls to the window then you'll have to code them
all yourself, unless you want to import a nib file from interface
builder, which can no doubt also be done.

If you want it to be cross platform then you have a bigger problem on
your hands though.

Check out the Apple Window Manager reference for details on the
functions needed to create a window and assign carbon event handlers to
it. The documentation can be found here:

http://developer.apple.com/documentation/Carbon/Reference/
Window_Manager/index.html

You'll probably be interested in the CreateNewWindow function to start
with.

Nick

> Hi Everybody,
>
> I'm not sure how or where to start, but does anyone know how to create
> and
> display windows from a plugin? I know the eSellerate plugin comes with
> its
> own windows, so I know it's possible. I'm not talking about showing
> windows
> that are in the REALbasic project, but embedding them into the plugin
> itself.
>
> Does this pose problems for Mach-O applications if I code the windows
> in
> C++?
>
> Has anyone done anything like this or have information on where to
> start?
>
> Thanks for any answers to these vague questions.
>
> All,
> Tristan
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://support.realsoftware.com/listmanager/>
> Search the archives of this list here:
> <http://support.realsoftware.com/listarchives/lists.html>

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

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

Re: Creating windows from plugin
Date: 12.06.04 13:45 (Sat, 12 Jun 2004 08:45:01 -0400)
From: Tristan Perich
Hi Nick,

This looks great. Thanks for the pointer.

Will the Carbon toolbox functions also work for Mach-O applications? (Should
I instead look into displaying Nibs? But would this not work in Carbon?)

Also, I do want it to be cross-platform. Has anyone come across similar code
for Windows programming?

Exciting! Thanks.

Tristan

On 6/10/04 1:38 PM, "Nick Lockwood" <<email address removed>> wrote:

> It's pretty easy actually I think. I've done it using declares form
> within REALbasic. All you need to do is use the standard toolbox
> functions to make a window and assign it an event handler. Of course if
> you want to add controls to the window then you'll have to code them
> all yourself, unless you want to import a nib file from interface
> builder, which can no doubt also be done.
>
> If you want it to be cross platform then you have a bigger problem on
> your hands though.
>
> Check out the Apple Window Manager reference for details on the
> functions needed to create a window and assign carbon event handlers to
> it. The documentation can be found here:
>
> http://developer.apple.com/documentation/Carbon/Reference/
> Window_Manager/index.html
>
> You'll probably be interested in the CreateNewWindow function to start
> with.
>
> Nick
>
>> Hi Everybody,
>>
>> I'm not sure how or where to start, but does anyone know how to create
>> and
>> display windows from a plugin? I know the eSellerate plugin comes with
>> its
>> own windows, so I know it's possible. I'm not talking about showing
>> windows
>> that are in the REALbasic project, but embedding them into the plugin
>> itself.
>>
>> Does this pose problems for Mach-O applications if I code the windows
>> in
>> C++?
>>
>> Has anyone done anything like this or have information on where to
>> start?
>>
>> Thanks for any answers to these vague questions.
>>
>> All,
>> Tristan
>>
>> _______________________________________________
>> Unsubscribe or switch delivery mode:
>> <http://support.realsoftware.com/listmanager/>
>>
>> Search the archives of this list here:
>> <http://support.realsoftware.com/listarchives/lists.html>
>>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://support.realsoftware.com/listmanager/>
> Search the archives of this list here:
> <http://support.realsoftware.com/listarchives/lists.html>

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

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