Drag and Drop in OI (OpenInsight Specific)
At 08 AUG 2001 02:33:05PM d schranz wrote:
Is they any way of incorporating the Drag and Drop facility within OI.
This facility is available in practically all Window products, we cannot seem to do this in OI.
Any suggestions?
Thanks
David Schranz
At 08 AUG 2001 03:57PM [url=http://www.sprezzatura.com" onMouseOver=window.status=Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:
It can be done but it is hard work. So far we have not found the effort required commercially worthwhile. Whilst presentation server processes the messages required it does not expose them easily.
World Leaders in all things RevSoft
At 08 AUG 2001 05:08PM David Pociu wrote:
For 32 bit functionality, you may want to look at the newest Revelation tool - Java for OpenInsight (JOI) which will allow you to build a Java front-end to your OI application, and therefore let you use the drag and drop functionality and a LOT more(including 3rd party controls).
Dave
At 13 AUG 2001 05:50AM Colin Rule wrote:
It depends on what you want to do.
I have the following code in an omnievent of a form which I use to allow the user to create a report using drag/drop.
Various other subroutines are used here, but if you advise your Email address I can send and explain in more detail.
It even includes snap to the nearest 10 pixels etc amongst other things, such as line drawing, fonts, colours etc.
Regards
Colin
BUTTONDOWN:
XDOWN=PARAM1YDOWN=PARAM1NO_OBJECTS=COUNT(OBJECT_TABLE,@VM)+(OBJECT_TABLE#"")FOUND=0FOR I=1 TO NO_OBJECTS UNTIL FOUNDOBJECT=OBJECT_TABLEIF COUNT(OBJECT,"FINANCIAL_DESIGN.LINE") THENXPOS1=OBJECT_TABLEYPOS1=OBJECT_TABLEXPOS2=OBJECT_TABLEYPOS2=OBJECT_TABLELINE_ANCHOR=0IF ABS(XPOS1-XDOWN)YSTART=OBJECT_TABLEXEND=XSTART+OBJECT_TABLEYEND=YSTART+OBJECT_TABLEIF XDOWN]=XSTART AND YDOWN]=YSTART AND XDOWNFOCUS=0RETURN
BUTTONUP:
XDOWN=PARAM1YDOWN=PARAM1XUP =PARAM1YUP =PARAM1PROPERTIES=.PROPERTIES-]ARRAYOBJECT=PROPERTIESIF NOT(OBJECT) THEN RETURNIF COUNT(OBJECT,"FINANCIAL_DESIGN.LINE") THENBEGIN CASECASE LINE_ANCHOR=0RETURNCASE LINE_ANCHOR=1XPOS1=PROPERTIESYPOS1=PROPERTIESXPOS=XPOS1+(XUP-XDOWN)YPOS=YPOS1+(YUP-YDOWN)GOSUB CALC_SNAPCASE LINE_ANCHOR=2XPOS2=PROPERTIESYPOS2=PROPERTIESXPOS=XPOS2+(XUP-XDOWN)YPOS=YPOS2+(YUP-YDOWN)GOSUB CALC_SNAPEND CASEEND ELSEXPOS=PROPERTIESYPOS=PROPERTIESXPOS=XPOS+(XUP-XDOWN)YPOS=YPOS+(YUP-YDOWN)GOSUB CALC_SNAPENDGOSUB PROPERTIESGOSUB REFRESHRETURN
At 13 AUG 2001 07:05PM d schranz wrote:
Colin
My Email is dschranz@dakarsoftware.com
I'd like to try your code.
Thanks
David Schranz
At 14 AUG 2001 01:35AM B Stevens wrote:
Colin
I would be interested in a copy of your code and info.
TIA
barry@bsbsoft.com.au
At 14 AUG 2001 09:40AM Colin Rule wrote:
Barry, David,
I have sent you Emails with code attached etc.
Please let me know how you get on and whether this was relevant.
Colin