THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/09/2003 at 02:06, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.200
Platform: Windows ;
Language(s) : C++ ;
---------
i have a dialog. With a button. And i want to do certain things as long as the button is held down. So i tried the following:
Bool Dialog::Command(LONG id,const BaseContainer &msg)
{
switch(id)
{
case BUTTON:
{
BaseContainer bc;
while(GetInputState(BFM_INPUT_MOUSE,BFM_INPUT_MOUSELEFT,bc))
{
if(bc.GetLong(BFM_INPUT_VALUE)) {
// do something
} else break;
}
} break;
}
return TRUE;
}
It doesn't work. bc.GetLong(BFM_INPUT_VALUE) returns always 0. This isn't the best way to do it anyway. Perhaps i could write my own Button as UserArea. A easier way would be nice. Any ideas ?
Thanks in advance