paragui-users
[Top][All Lists]
Advanced

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

Re: [paragui-users] tricky bits: widget self termination (?)


From: I . S . Kuten
Subject: Re: [paragui-users] tricky bits: widget self termination (?)
Date: Thu, 24 Jul 2003 15:59:06 +0300

On Wed, 23 Jul 2003 17:31:01 -0400
leiavoia <address@hidden> wrote:

> long story short, i'm programming a game with multiple screens. each screen 
> is 
> a customized UIScreen class. All of them are collected by an umbrella class 
> called RenderMan
> 
> screen A has a button that "links" to screen B. clicking on it calls a 
> RenderMan callback function which deletes the current screen and all widgets 
> inside and creates a new one. 
> 
> problem is this: when a button gets clicked, the callback tries to delete all 
> widgets on the screen, including the one that started the function call. this 
> always results in a seg fault. 
> 
> are there any ways around this or is there a more elegent solution for 
> "changing screens"?
> 

think no other way except in callback
mark widgets for_delete = true , then push event to parent to delete them





> thanks for the help
> 
> -- 
> leiavoia
> The AXIS Project
> http://www.project-axis.net/
> 
> 
> _______________________________________________
> paragui-users mailing list
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/paragui-users




reply via email to

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