Hi, 

I think it not good sample but I use is to reset size of window in my
main menu "show some window" event:

--8<---------------cut here---------------start------------->8---
                AGWIDGET(win)->x = -1;
                AGWIDGET(win)->y = -1;
                AG_WindowSetPosition(win, AG_WINDOW_TC, 0);
                AG_WindowShow(win);
--8<---------------cut here---------------end--------------->8---

Jakob Reschke <[email protected]> writes:

> Hi,
>
> I'm dynamically attaching and detaching labels in one AG_Window (the
> window would uglily expand if I only hid the labels) but they run out
> of the window space (because the window is automatically sized without
> the labels when shown).
>
> Is there a way to have the window automatically resized as if it was
> shown for the first time again?
>
> Best regards,
> Jakob

_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html

Reply via email to