Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Window sub-class menu handling (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: OpenAsPicture returns nil on Windows
Next thread: httpsocket and linksys router


Re: Abandoning RB 4.5 on OS X   -   Alex Rice
  Window sub-class menu handling   -   Noah Desch
   Re: Window sub-class menu handling   -   Will Leshner
    Re: Window sub-class menu handling   -   Steve Schacht
     Re: Window sub-class menu handling   -   Will Leshner
   Re: Window sub-class menu handling   -   Mike Woodworth
   Re: Window sub-class menu handling   -   Thomas Reed
    Re: Window sub-class menu handling   -   Mars Saxman
     Re: Window sub-class menu handling   -   Thomas Reed
      Re: Window sub-class menu handling   -   Steve Schacht
    Re: Window sub-class menu handling   -   Will Leshner

Window sub-class menu handling
Date: 01.08.02 04:15 (Wed, 31 Jul 2002 23:15:47 -0400)
From: Noah Desch
Is it a known bug that custom window subclasses don't fire their menu
handlers?

-Noah Desch
Wireframe Software
http://wireframe.virtualave.net

"This could take thousands and thousands of nanoseconds... this might even
take a whole SECOND!"
-ReBoot, the best cartoon ever.

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: Window sub-class menu handling
Date: 01.08.02 04:29 (Wed, 31 Jul 2002 20:29:57 -0700)
From: Will Leshner
Yes. And I really wish they did.

Well, by "yes" I mean it's known by me :) I think I sent mail to the
list about it a few weeks ago.

On Wednesday, July 31, 2002, at 08:15 PM, Noah Desch wrote:

> Is it a known bug that custom window subclasses don't fire their menu
> handlers?

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: Window sub-class menu handling
Date: 01.08.02 05:16 (Wed, 31 Jul 2002 22:16:01 -0600)
From: Steve Schacht
On 7-31-2002 9:29 PM, Will Leshner wrote:

> Yes. And I really wish they did.
>
> Well, by "yes" I mean it's known by me :) I think I sent mail to the
> list about it a few weeks ago.

I hope that message to the list was a Cc of a RBugs report. :-)

---
Steve Schacht
<email address removed>

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: Window sub-class menu handling
Date: 01.08.02 05:36 (Wed, 31 Jul 2002 21:36:13 -0700)
From: Will Leshner
I probably should do that, shouldn't I.

On Wednesday, July 31, 2002, at 09:16 PM, Steve Schacht wrote:

>> Well, by "yes" I mean it's known by me :) I think I sent mail to the
>> list about it a few weeks ago.
>
> I hope that message to the list was a Cc of a RBugs report. :-)

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: Window sub-class menu handling
Date: 01.08.02 05:40 (Thu, 01 Aug 2002 00:40:16 -0400)
From: Mike Woodworth
I remember it came up on the dev list when the ability was added. David
thought it made a lot of sense to be able to do, but doubted they'd get to
it in time... Guess they didn't :(

Too bad, I sure would like.

mike

Re: Window sub-class menu handling
Date: 01.08.02 16:35 (Thu, 1 Aug 2002 10:35:04 -0500)
From: Thomas Reed
>Is it a known bug that custom window subclasses don't fire their menu
>handlers?

When you say "custom window subclasses", what does that mean exactly? I
haven't noticed any menu handler problems with windows, which makes me
wonder if you're subclassing a custom window. If so, HOW?!? I had heard
of this as something that was coming soon, but couldn't find a way to do
it and saw no mention of it in the release notes (except a cryptic entry
that seemed to be related to window subclassing but didn't work and was
marked as a "Fix").

-Thomas

Personal web page: http://home.earthlink.net/~thomasareed/
My shareware: http://home.earthlink.net/~thomasareed/shareware/
REALbasic page: http://home.earthlink.net/~thomasareed/realbasic/
Pixel Pen web pub. guide: http://home.earthlink.net/~thomasareed/pixelpen/

Why do they put Braille dots on the keypad of the drive-up ATM?

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: Window sub-class menu handling
Date: 01.08.02 16:45 (Thu, 01 Aug 2002 08:45:16 -0700)
From: Mars Saxman
<email address removed> wrote:

> When you say "custom window subclasses", what does that mean exactly?

Create a new class. Set its super to "Window".

Now, create a new window. Set its super to "Class1".

There you go - it's a custom window subclass.

Mars Saxman
REAL Software

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: Window sub-class menu handling
Date: 01.08.02 19:45 (Thu, 1 Aug 2002 13:45:07 -0500)
From: Thomas Reed
>Create a new class. Set its super to "Window".
^^^^^
>
>Now, create a new window. Set its super to "Class1".

Ahhhhhh! Neat! Confusing, but neat!

Any reason why this isn't listed better in the release notes? I wouldn't
consider a brief mention, which seems to assume you already know about
window subclassing and which is listed as a "Fix", to be adequate for
such a major improvement. To be honest, I don't like the release notes
at all. There ought to be separate release notes for changes from beta
to beta. The "official" release notes should not contain ANY
documentation on changes except those things that changed between
official releases.

One other suggestions on the release notes -- since it's a very simple
table layout, consider writing a RB app that maintains this info in some
kind of database and displays it in a list. Add the ability to apply
filters -- say, for instance, to only view things related to the Window
class, or to only view new features. Then release the release notes in
this format, with this app, for version 5.0. I found myself constantly
wishing that I could filter out all Windows-related (the OS, not the
class) changes, all database-related changes, etc, so I could focus on
the stuff I'm really interested in. In a 37 page document, such
filtering would be a MAJOR convenience!

Hey, I'll bet you guys could even find someone here who would be willing
to write you the app for free!

-Thomas

Personal web page: http://home.earthlink.net/~thomasareed/
My shareware: http://home.earthlink.net/~thomasareed/shareware/
REALbasic page: http://home.earthlink.net/~thomasareed/realbasic/
Pixel Pen web pub. guide: http://home.earthlink.net/~thomasareed/pixelpen/

Eat a live toad in the morning and nothing worse will happen to you for
the rest of the day.

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: Window sub-class menu handling
Date: 01.08.02 23:06 (Thu, 01 Aug 2002 16:06:18 -0600)
From: Steve Schacht
On 8-1-2002 12:45 PM, Thomas Reed wrote:

>> Now, create a new window. Set its super to "Class1".
>
> Ahhhhhh! Neat! Confusing, but neat!

Yes, so you're actually subclassing a subclass of the Window class. Pretty
classy, eh? :-/

---
Steve Schacht
<email address removed>

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: Window sub-class menu handling
Date: 01.08.02 19:30 (Thu, 1 Aug 2002 11:30:30 -0700)
From: Will Leshner
Make a new class in your project and set its super to Window. Then you
can make new window instances using "New Window" and set their supers to
your custom window class. But if you put menu handlers in your window
_class_ they won't fire. The handlers have to be in the window instances.

On Thursday, August 1, 2002, at 08:35 AM, Thomas Reed wrote:

> When you say "custom window subclasses", what does that mean exactly? I
> haven't noticed any menu handler problems with windows, which makes me
> wonder if you're subclassing a custom window. If so, HOW?!?

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>