Wimp_SetIconState block

Philip Ludlam philip at philipnet.com
Sun Aug 25 04:03:24 BST 2002


Hi there,

Whilst programming with OSLib I discovered that OSLib didn't define a
block suitable for the Wimp_SetIconState SWI.

I quickly whipped up:
typedef struct wimp_set_icon_state_block
{ wimp_w w;
  wimp_i i;
  wimp_icon_flags eor_bits;
  wimp_icon_flags clear_bits;
} wimp_set_icon_state_block;
and have been using it without a problem.

Is there a reason why OSLib doesn't have a similar definition (does it
expect you to use the oslib call rather than set up a block and call the
SWI yourself) or is it just an omission?

Yours,

Phil L.




More information about the oslib-user mailing list