I've just started playing around with drag & drop and have some simple examples working with edit lines & edit tables.
Can anyone tell me how to drag the contents of a symbolic field displayed on a form? At the moment, it seems like the data in the field to be drag needs to be selected/highlighted. This isn't possible with a symbolic. I've had a bit of a fiddle with the raw style bits but really I'm just guessing. Ideas anyone?
Paul,
By default, symbolic fields are placed into disabled controls, therefore, Drag and Drop will not work.
Sean
Paul,
Try in Create Event -
Stat=Set_Property(CtrlEntID:'.MY_SYMBOLIC','ENABLED',1)
Stat=Set_Property(CtrlEntID:'.MY_SYMBOLIC','ENABLEDRAG',1)
Works for me.
Richard Bright
BrightIdeas New Zealand
Fantastic.
That works. Thanks Richard.
OK, next trick, does anyone know how to make radio buttons work and check boxes with drag and drop. I've already tried setting the enabled property which was the fix for symbolics but no joy here.
Why would I want to do this you ask? I'm not actually using the data to drag but am using dnd to get the field name. I'm playing with the idea of a report writer where you drag the fields into another screen to create the report selection criteria. The data is actually irrelevant.
Paul,
In absence of any orthodox way, - pure speculation - possibly accomplish some via the dnd events + setting properties. Have you inspected the relevent events?
The property page should have a Drag&Drop on it. Even though it is disabled the need to drag data is the same
David,
Good point - this is an interesting issue. It is the DISABLED property that prevents the Drag function. The immediate avaliability of DND property in the control I suspect will be added - but this is early days and the form designer is in pprocess of being re-written.
I try not to let orthodox get in the way of a good idea!
I've had a look through the properies and can't see anything that stands out. Had a bit of a play with the raw style bits but was using trial and error more than being scientific.
It seems that the main issue is that the control needs to be enabled to allow the dnd to start. So far it looks like dnd works for nearly all controls except check boxes and radio buttons. If I can get them to work it'd be really good.
]]and the form designer is in pprocess of being re-written
heard that one before
symbolic/calculated data is a big thing for MV systems (heck even sql systems) and it just seems that dnd should be made available for these. Depending on how it is written is shouldn't be to big of a deal.
The question here might be WHAT VALUE would be dragged. On radio box would it be the label value or the data value or the position offest? OH my .. For a check box 1/0?
I'd assume for a radio button that it would be the INVALUE so its actually the data. Eg "VALUE1" , "VALUE2" etc
Yep, I'd assume 1 or 0 for a checkbox.
Paul,
I had a further play with both controls. One (forget which) responded to the event ie generated a DnD event - but not much else.
This will all be part of the Rev spec but perhaps someone closer to the action like … Captain C …. might shed some light?