Profile Picture

Position

Posted By Golay Jean-Philippe 14 Years Ago
Author
Message
Golay Jean-Philippe
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 8, Visits: 1
I want to know the drop position of a library shape to create a new shape at the same place
I tried this code using mouseInDevice but the shape result out to the drawing view
Any help thanks

void EventSinkService_NodeInserted(NChildNodeEventArgs args) {
try {
if (args.Child is NErmShape) {
NErmShape nErmShape = (NErmShape)args.Child;

NPointF mouseInDevice = nDrawingView1.GetMousePositionInDevice();

if (wizExcelForm.newqwMapping != null) {
wizExcelForm.newqwMapping.X = mouseInDevice.X ;
wizExcelForm.newqwMapping.Y = mouseInDevice.Y ;
wizExcelForm.newqwMapping.CustomLocation = true;
Program.EcoSpace.UpdateDatabase();
DrawShema();
}
}
} finally {
wizExcelForm.Close();
}

} else if (nErmShape.Tag == "oledb") {
}
}
} catch (Exception ex) {
QwUtils.MessageError(ex, "EventSinkService_NodeInserted");
} finally {
}
}


Threaded View



Similar Topics


Reading This Topic