THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/10/2009 at 07:04, xxxxxxxx wrote:
I can't confirm this. It's working fine for me.
Example:
> \> Bool LiquidToolData::MouseInput(BaseDocument \*doc, BaseContainer &data;, BaseDraw \*bd,EditorWindow \*win, const BaseContainer &msg;) \> { \> Real mx = msg.GetReal(BFM_INPUT_X); \> Real my = msg.GetReal(BFM_INPUT_Y); \> LONG button; \> \> switch (msg.GetLong(BFM_INPUT_CHANNEL)) \> { \> case BFM_INPUT_MOUSELEFT : button=KEY_MLEFT; break; \> case BFM_INPUT_MOUSERIGHT: button=KEY_MRIGHT; break; \> default: return TRUE; \> } \> \> Real dx,dy,rad=5.0; \> Bool newmeta=FALSE; \> \> BaseContainer bc; \> BaseContainer device; \> win->MouseDragStart(button,mx,my,MOUSEDRAG_DONTHIDEMOUSE|MOUSEDRAG_NOMOVE); \> while (win->MouseDrag(&dx;,&dy;,&device;)==MOUSEDRAG_CONTINUE) \> { \> bc=BaseContainer(); \> \> if (dx==0.0 && dy==0.0) continue; \> \> mx+=dx; \> my+=dy; \> \> AutoAlloc<C4DObjectList> list; \> if (!list) return FALSE; \> \> if (ViewportSelect::PickObject(bd, doc, mx, my, 50, TRUE, NULL, list)) \> { \> GePrint(LongToString(list->GetCount())); \> } \> } \> \> return TRUE; \> } \>
cheers,
Matthias