paragui-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [paragui-users] event is not passed to the parent


From: Andrew Ford
Subject: Re: [paragui-users] event is not passed to the parent
Date: Thu, 25 Apr 2002 12:48:21 -0700 (PDT)

I think they all inherit eventButtonClick from
PG_Widget, although I don't have the docs in front of
me.  I think you'll probably have to make a custom
widget by inheriting from PG_Widget (and
PG_EventObject?) and then connecting some
PARAGUI_CALLBACKs to its children's events.

--- Steffen Blume <address@hidden> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi!
> Here is my problem:
> I created a PG_Widget with three PG_ThemeWidget
> childs. Each of this has 
> several Buttons. I want to process the buttonclicks
> in the parent PG_Widget.
> The ThemeWidgets does not have an method
> eventButtonClick neither have the 
> buttons. I thought if the event isn't processed by a
> widget's child neither 
> by the widget itself, it will be passed to the
> parent, but eventButtonClick 
> of my parent isn't called.
> 
> Another thing (not important):
> When a widget is created internaldata->widgetParent
> is set in 
> PG_Widget::InitWidget. If it is != NULL AddChild of
> the parent is called. 
> There RemoveChild is called, because
> child->internaldata->widgetParent is 
> set, althougt it is not a child of the parent (up to
> now). Then 
> child->internaldata->widgetParent is set to this.
> Has this to be like this?
> Looks strange to me, but works ;-)
> 
> Steffen
> 
> - -- 
> ``Free software'' is a matter of liberty, not price.
> To understand the 
> concept, you should think of ``free'' as in ``free
> speech,'' not as in ``free 
> beer.'' 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
> 
>
iD8DBQE8yFABv0NFVQKH0zgRAsnFAKCl4pYQrhE7KZ7DyQhVDqpjX5Z3oACfdXSH
> 7k3iC4bge8+7Wefu1ewosjU=
> =C5gN
> -----END PGP SIGNATURE-----
> 
> _______________________________________________
> paragui-users mailing list
> address@hidden
>
http://mail.freesoftware.fsf.org/mailman/listinfo/paragui-users


__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]