Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

declaring an object with related events (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: Lion's new Emoji color font
Next thread: Re: [WE] How do I handle a "Please Wait" window? [Multi-threading in WE]


Re: Backward to 2011r3 from Xojo   -   Garth Hjelte
  declaring an object with related events   -   Massimiliano Fabbri
   Re: declaring an object with related events   -   Thom McGrath
    Re: declaring an object with related events   -   Massimiliano Fabbri
   Re: declaring an object with related events   -   Walter Purvis
   Re: declaring an object with related events   -   Arnaud Nicolet
   Re: declaring an object with related events   -   Dennis Birch
    Re: declaring an object with related events   -   Massimiliano Fabbri

declaring an object with related events
Date: 03.08.11 18:43 (Wed, 03 Aug 2011 19:43:29 +0200)
From: Massimiliano Fabbri
I'm a beginner in RB
I would to declare my HttpSecureSocket object
Dim mSocket as New HTTPSecureSocket
in this way I can only access to properties and method of the object
but I need to use alse the object events
Wich kind of approach Do I have to use to do this issue?
Thanks
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: declaring an object with related events
Date: 03.08.11 21:40 (Wed, 3 Aug 2011 16:40:49 -0400)
From: Thom McGrath
Sure. Look up AddHandler.

Re: declaring an object with related events
Date: 03.08.11 22:29 (Wed, 03 Aug 2011 23:29:05 +0200)
From: Massimiliano Fabbri
Thanks Thom you put me in the right way....
Regards
Max
Il 03/08/11 22.40, Thom McGrath ha scritto:
> Sure. Look up AddHandler.
>
> --
> Thom McGrath - @tekcor
> Web Framework Architect, Real Software, Inc.
>
> On Aug 3, 2011, at 4:01 PM, Massimiliano Fabbri wrote:
>
>> Yes I know, this is the shortest way, but I'm working on a class (superclass canvas) to make a custom control.
>> I don't want to use a socket control I want to include an httpsecuresocket object with all his events directly
>> in my class...hope this is possible
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

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

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: declaring an object with related events
Date: 03.08.11 20:55 (Wed, 3 Aug 2011 15:55:42 -0400)
From: Walter Purvis
On Wed, Aug 3, 2011 at 4:01 PM, Massimiliano Fabbri <
<email address removed>> wrote:

> Yes I know, this is the shortest way, but I'm working on a class
> (superclass canvas) to make a custom control.
> I don't want to use a socket control I want to include an httpsecuresocket
> object with all his events directly
> in my class...hope this is possible
>

It's certainly possible. Just create a new class, e.g., MySecureSocket, and
set its super to httpsecuresocket. You'll then have access to all the events
to do with as you please.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: declaring an object with related events
Date: 03.08.11 18:45 (Wed, 03 Aug 2011 19:45:18 +0200)
From: Arnaud Nicolet
Le 3 août 11 à 19:43, Massimiliano Fabbri a écrit:

> I'm a beginner in RB
> I would to declare my HttpSecureSocket object
> Dim mSocket as New HTTPSecureSocket
> in this way I can only access to properties and method of the object
> but I need to use alse the object events
> Wich kind of approach Do I have to use to do this issue?
> Thanks

The most easy way is to put a subclass of HTTPSecureSocket on a window
(assuming you're not in a console application).
Quick example:
Edit a window in the IDE and right-click (or control-click) on it.
You'll see a contextual menu. Navigate in "Add", then
"SocketCore..." (yes, the one with ellipsis), then "TCPSocket...",
then "SSLSocket..." and finally you find the "HTTPSecureSocket" menu
item. Select it, and you have a new "HTTPSocket" on your window. You
can access the events in the code editor of the edited window.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: declaring an object with related events
Date: 03.08.11 18:42 (Wed, 3 Aug 2011 10:42:29 -0700)
From: Dennis Birch
On Wed, Aug 3, 2011 at 10:43 AM, Massimiliano Fabbri
<<email address removed>> wrote:
> I'm a beginner in RB
> I would to declare my HttpSecureSocket object
> Dim mSocket as New HTTPSecureSocket
> in this way I can only access to properties and method of the object
> but I need to use alse the object events
> Wich kind of approach Do I have to use to do this issue?

Drag an instance of TCPSocket onto a Window and set its Super property
to HTTPSecureSocket in the Property sidebar of the window's editing
panel. Then when you switch to the code panel, the events will show up
under the socket's listing.

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

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: declaring an object with related events
Date: 03.08.11 21:01 (Wed, 03 Aug 2011 22:01:05 +0200)
From: Massimiliano Fabbri
Yes I know, this is the shortest way, but I'm working on a class
(superclass canvas) to make a custom control.
I don't want to use a socket control I want to include an
httpsecuresocket object with all his events directly
in my class...hope this is possible

Il 03/08/11 19.42, Dennis Birch ha scritto:
> On Wed, Aug 3, 2011 at 10:43 AM, Massimiliano Fabbri
> <<email address removed>> wrote:
>> I'm a beginner in RB
>> I would to declare my HttpSecureSocket object
>> Dim mSocket as New HTTPSecureSocket
>> in this way I can only access to properties and method of the object
>> but I need to use alse the object events
>> Wich kind of approach Do I have to use to do this issue?
> Drag an instance of TCPSocket onto a Window and set its Super property
> to HTTPSecureSocket in the Property sidebar of the window's editing
> panel. Then when you switch to the code panel, the events will show up
> under the socket's listing.
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

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

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>