, , , , ,

Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

How to drag and drop a symbolic field (OpenInsight 32-Bit)

At 08 OCT 2007 08:16:29PM Paul Rule wrote:

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?


At 09 OCT 2007 06:59AM Sean FitzSimons wrote:

Paul,

By default, symbolic fields are placed into disabled controls, therefore, Drag and Drop will not work.

Sean


At 09 OCT 2007 05:23PM Richard Bright wrote:

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


At 09 OCT 2007 07:14PM Paul Rule wrote:

Fantastic.

That works. Thanks Richard.


At 11 OCT 2007 10:12PM Paul Rule wrote:

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.


At 12 OCT 2007 04:11PM Richard Bright wrote:

Paul,

In absence of any orthodox way, - pure speculation - possibly accomplish some via the dnd events + setting properties. Have you inspected the relevent events?


At 12 OCT 2007 06:12PM dsigafoos wrote:

The property page should have a Drag&Drop on it. Even though it is disabled the need to drag data is the same


At 13 OCT 2007 09:30PM Richard Bright wrote:

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.


At 14 OCT 2007 07:37PM Paul Rule wrote:

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.


At 15 OCT 2007 09:34AM DSig wrote:

]]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.


At 15 OCT 2007 09:36AM DSig wrote:

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?


At 15 OCT 2007 06:55PM Paul Rule wrote:

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.


At 15 OCT 2007 10:10PM Richard Bright wrote:

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?

View this thread on the Works forum...