-/* $Id: macctrls.c,v 1.39 2003/04/14 23:47:07 ben Exp $ */
+/* $Id: macctrls.c,v 1.40 2003/05/10 11:26:33 ben Exp $ */
/*
* Copyright (c) 2003 Ben Harris
* All rights reserved.
{
struct macctrls *mcs = dlg;
+ /* XXX what if there's no selection? */
if (event == EVENT_SELCHANGE)
macctrl_switchtopanel(mcs, dlg_listbox_index(ctrl, dlg) + 1);
}
panellist.listbox.height = 20;
panellist.listbox.percentwidth = 100;
macctrl_listbox(mcs, window, &curstate, &panellist);
+ /* XXX Start with panel 1 active */
curstate.pos.h = rect.left + 13 + 160 + 13;
curstate.pos.v = rect.bottom - 33;
Rect bounds;
Size olen;
+ /* XXX Use label */
assert(ctrl->listbox.percentwidth == 100);
mc->generic.type = MACCTRL_LISTBOX;
mc->generic.ctrl = ctrl;