> start out with all the list resources set to non-usable.
>
> to show:
> plst->attr.usable = 1;
> LstDrawList(plst);
>
> to hide:
> LstEraseList(plst)
> plst->attr.usable = 0;
>
>
> Roger -- here's an example of a gap in the available APIs. AFAIK,
there's
> no way to toggle a list usable/unusable without directly accessing its
> members.
OK. That's a reasonable place. The list objects, as well as tables,
should expose a usable bit.
I think this case can be partially worked around though. The LstEraseList
call turns off the visible flag. When visible is false, the list does not
appear, and cannot be interacted with. This should suffice to "hide" a
drawn list. What it doesn't stop is FrmDrawForm from drawing the usable
list which then sets the visible flag to true.
Thanks for the comment. What else are folks bypassing the UI APIs for?
-Roger Flores