Hi all, I'm implementing a dialog similar to the 'Create Instance'-Dialog in layout, where you see a ghost object of what you are about to place with a corresponding options form. The ghost updates when the form is updated. After some digging I found some posts about geHiDragFig which can be used to implement something similar. I'm placing some shapes (depending on the entries of the corresponding form) in a sratch cell which are used as selSet for geHiDragFig. This sort of works, however, I have a remaining issue: I use the form as form argument for geHiDragFig, but the ghost is not updated on form data entry. But when I actually place the cell, I get the updated shapes, so it seems as geHiDragFig is not respecting the change in the shapes. Is this just how it works (and is there possible a workaround) or am I doing something wrong? Here is roughly what I'm doing: res = geHiDragFig(geGetEditCellViewWindow(geGetEditCellView()) optform "" "Enter Destination Point" "Move" scratchshapes t list(0 0)) pt = car(cdadr(res)) ; get destination point foreach(shape scratchshapes dbCopyShape(shape geGetEditCellView() list(pt "R0" 1))) scratchshapes is updated in a callback that is tied to the fields of the forms, that is, when the form is updated the scratch cell is updated, which I can verify, since the correct shapes are copied in the end. Thanks, kind regards, Patrick
↧