actually, I've got dynamic bmap changes working already using panel.bmp = new_bmap; ... my issue is that the Panel.bmap property is available to me, but I do not have a Panel.Button property to work with, nor a Panel.Digits for that matter ... so I am unable to swap out the On,Off,Over bitmaps for a Button definition within a panel through C-Script, and the only way I can find to work around this so far is to create a panel Button with a transparent bitmap (seems buttons still have clickable regions within the transparent portion of the image -- only tested once a while back, haven't re-affirmed.).

So ... my work around is to have the Button portion of the panel sitting on say, Layer 10, and have a MouseOver and MouseClick event change the bmap of the actual panel ...

Code:

function swap();
PANEL test_button
{
bmap = some_bmap;
Button = 0, 0, boff, bon, bover, swap, swap, swap;
}

function swap(btn, pnl)
{
// logic to make the swap determination
pnl.bmap = new_bmap;
}
}



This would be a quirky workaround, and most likely lead to cluttered and unmanageable code ... but, in theory, should work ...

Any suggestions or additional work around ideas are greatly appreciated.


-- David Higgins [ Gear Worx Productions / Developer ]