[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [paragui-users] Problems with PG_ListBox
From: |
Ivan Stankovic |
Subject: |
Re: [paragui-users] Problems with PG_ListBox |
Date: |
Tue, 1 Apr 2003 15:08:27 +0200 |
User-agent: |
Mutt/1.2.5i |
On Mon, Mar 31, 2003 at 10:56:49AM +0200, Ivan Stankovic wrote:
> On Sun, Mar 30, 2003 at 08:46:51PM +0200, Alexander Pipelka wrote:
> > Yup. I've been able to reproduce this behavior.
> > Bug. Again.
> > But fixed now (hopefully) in CVS ;^)
>
> Hm, it appears from the diffs that it should work, but
> _really_ strange things happen to all of the listboxes I have.
> Sometimes it just doesn't display any items and occasionally I
> get segfaults within PG_ListBox::AddItem(). I'll have to once
> again verify my code, but I'm almost 100% sure it's another issue
> with the Paragui. I'm going to write some test code to track this
> down and post results(and some patches, maybe ;) on the list.
With the latest devel-1-0 CVS this doesn't work:
#include "pgapplication.h"
#include "pglistbox.h"
int main()
{
PG_Application app;
app.LoadTheme("default");
app.InitScreen(640, 480, 16, SDL_SWSURFACE);
app.SetEmergencyQuit(true);
PG_ListBox l(NULL, PG_Rect(0,0,400,400));
PG_ListBoxItem *p = new PG_ListBoxItem(20, "test");
l.AddItem(p);
l.RemoveAll();
l.AddItem(p);
l.Show();
app.Run();
return 0;
}
The item isn't displayed.
BTW, is there any API documentation (other than automatically generated)
which I could use? I mean, it's not easy to determine what exactly a given
function
does (function names are fairly descriptive, though) and I'd really like to
understand the internals.
--
Ivan Stankovic, address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [paragui-users] Problems with PG_ListBox,
Ivan Stankovic <=