[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [paragui-users] LoadLayout
From: |
Ulf Lorenz |
Subject: |
Re: [paragui-users] LoadLayout |
Date: |
Fri, 19 Nov 2004 15:36:20 +0100 |
User-agent: |
Mutt/1.5.6+20040907i |
On Fri, Nov 19, 2004 at 02:28:24PM +0100, Vladim?r Marek wrote:
> Hello, I compiled paragui for sh-3 based system. I allready found way
> how to emulate mouse clicks from the touchpad, so I can run demo
> applications. Once I will have something to show, I'll post more details
> :)
>
> Now, I want to create application. Let's say screen full of buttons. I
> use LoadLayout and the PG_Application is populated with widgets. Then
> one of the buttons is pressed and I want to show different screen. If I
> use LoadLayout for the second time, the layout is added to the current
> one. I can't find a way how to remove all (or just one by one) widgets
> from PG_Application.
>
> This is probably lack of reading docu, or source code, just my way how
> to say "hello" :) Could you help me what I'm doing wrong, please ?
A suggestion. I haven't tested this, but from a quick glance over the
code, it should work.
1. Create a new widget
2. Use the LoadLayout function of this widget
3. When you want to load another layout, delete this widget and create a
new one
Instead of removing the widget it may be enough to call
PG_Widget::RemoveAllChilds().
Ulf
--
recursive:
see recursive