THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/03/2009 at 07:58, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R10
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
---------
I was using StaticText as Drag&Drop; gadgets in my Dialog.
To reach a better layout I added a *.res file to my CreateLayout().
> \> DIALOG IDD_DIALOG1 \> { NAME IDS_DIALOG; CENTER_V; CENTER_H; \> \> LINK 900 \> { \> ALIGN_TOP; ALIGN_LEFT; SIZE 300, 0; \> } } \>
I tried the same Code I used before with StaticText.
> \> if(msg->GetId() == BFM_DRAGRECEIVE) \> { \> if(CheckDropArea(900, msg, TRUE, TRUE)) { \> SetDragDestination(MOUSE_POINT_HAND); \> if(msg->GetData(BFM_DRAG_FINISHED)) { \> object = GetDragObject(msg); \> SetString(900, object->GetName()); \>
The problem is, when dropping a object in the LinkBox it disappears. I receive the object in the "var object" and can work with it but it isnt shown in the LinkBox. So SetString isnt working any longer. What do i have to use instead of it?