Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

inheriting

6 views
Skip to first unread message

Leon Mandel

unread,
Jul 16, 2003, 2:44:26 PM7/16/03
to
I many windows that was created from scratch (inherited from window)

This is a maintenance project of an OLD system (not all that well
designed system either)

Well, now I have a w_ancestor that I'd like all those windows to inherit
from.

Is there anything I can do, other than re-inheriting and copy/pasting
(i.e. recreating all those windows)? Like maybe in the source editor?


Any advice helps.

Thanks.

Tyler Craft

unread,
Jul 16, 2003, 2:50:22 PM7/16/03
to
Edit Source

Replace "Window" with "w_ancestor" in Two places. One of the main problems
you may run into duplicate variables and so on but if you get (PBSEARCH) or
some such program you can search for all occurances of a variable.

/*Old*/
global type w_case from Window
end type
end forward

global type w_case from Window
end type

/*New*/
global type w_case from w_ancestor
end type
end forward

global type w_case from w_ancestor
end type


"Leon Mandel" <le...@weepirate.com> wrote in message
news:3F159D0A...@weepirate.com...

Leon Mandel

unread,
Jul 16, 2003, 5:43:33 PM7/16/03
to
so that should do it, huh?

czool

Leon Mandel

unread,
Jul 16, 2003, 6:27:10 PM7/16/03
to
I did as advized, regenerated, but the parent's open event, for
instrance, does not trigger?...

Andrew Giulinn

unread,
Jul 16, 2003, 10:07:58 PM7/16/03
to
Do you mean the ancestor's Open event when you say "the parent's open
event"? If so, then it is because the descendant's Open event needs to have
the "extend" flag activated. Your concrete window would not have had a
"SUPER::Open()" in its source so, once you made it a descendant, it was
overriding the ancestor event, rather than extending it.

Open your concrete window, go to the Open event, right click in the source
and choose "Extend Ancestor Script". Then you should be right to go.

Cheers


--
Andrew Giulinn
Senior Analyst/Programmer
Daniel Systems Australia

"Leon Mandel" <le...@weepirate.com> wrote in message

news:3F15D13E...@weepirate.com...

Leon Mandel

unread,
Jul 17, 2003, 6:23:17 PM7/17/03
to
great!

it makes so much sense! i remmeber not having to code that in PB 6.5
which is what threw me off

kool.

0 new messages