Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Bernard Bout
  Where is Bernard Bout?
 Brisbane
 Australia
 Bernard Bout
 To: Rick C. Hodgin
  Where is Rick C. Hodgin?
 Indianapolis
 Indiana - United States
 Rick C. Hodgin
 Tags
Subject: RE: Realtime DLL update
Thread ID: 373779 Message ID: 373873 # Views: 117 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Thursday, March 28, 2013 9:53:02 AM         
   


> I have pushed an addition to Realtime. It's still primitive. No callbacks. Missing a few features (only works with captured graphics right now, no generated text). It might be good enough for a preview though (please report any bugs):
>
> https://github.com/RickCHodgin/realtime
>
> The functionality I've added is called "mover". It extends the previous "gauge" and "graph" features.
>
> To use:
> (1) Download realtime
> (2) Install to some location (I use c:\vfp\realtime\ on my dev machine)
> (3) From the VFP command prompt and the realtime\ directory, type "do go"
> (4) Click the "Show" button near the Koala Bear image (several buttons will appear, if they don't draw properly move your mouse onto the graphics area somewhere -- I do know about that bug :-))
> (5) Click and drag the buttons around.
> (6) Will add callbacks this weekend, and the few remaining features will be completed as well.
> (7) You can right-drag (doesn't drag the piece, but just do the action) to turn on and off the snap guides (pink areas indicating what highlighted areas are available where your mouse is).
>
> Please do report any bugs. Thank you. And God bless! :-)
>
> Best regards,
> Rick C. Hodgin

Interesting control this. I have tried it with different vfp controls like image, checkbox, combo etc and it draws them.

The dragging of the controls is very nice and smooth. However they do not remain where they have been dragged or has this not been implemented as yet?

Ideas.

1. Control (e.g. Button) can be re-drawn and when dragged and dropped and will remain where it has been "dropped"
2. Have a callback on the "Click" of object redrawn (e.g. button) so that
- After redeaw, the object is clickable
- Calls back to a vfp method (callback) so that code can be implemented
- Store the "new" positions in an updatable array or something else so that repositioning the control will update
that array (or something else) such that the new position can be saved so that the next time the form is run,
it "remembers" the button position.
3. Maybe implement callbacks for other object events like MouseUp/Dn, MouseMove, MouseEnter etc. so that the redrawn controls (e.g buttons) become Live.
4. Ability to "acquire" the object even if its Visible = .F. (Already implemented?)

I believe you have already implemented most of the above (after looking at the parameters your class accepts).

mth_setup_object()
LPARAMETERS tnObjectId, tnObjectType, tnCol, tnRow, tnAnimationId,  tnDraggable, tnAcceptsDrops, tnCopiesOnDrop, tnCallbackCode


Not sure how these are used:
tnObjectId - this is the object id
tnObjectType = ??
tnCol/tnRow = Column/Row - Maybe better an X/Y or Left/Top (in pixels) for more precise placement for single objects
rather than row/col as in a grid format? Or maybe both?
tnAnimationId = ??
tnDraggable 0/1 - T/F
tnAcceptsDrops = ??
tnCopiesOnDrop = ??
tnCallbackCode = ??

So How are the above used? Any samples?

I especially like the way the buttons smoothly re-arrange themselves a-la-windows8 Metro.

Bernard

** If you see someone without a smile, give em one of yours :) **
My Blog

ENTIRE THREAD

Realtime DLL update Posted by Rick Hodgin @ 3/26/2013 11:05:56 PM
RE: Realtime DLL update Posted by Bernard Bout @ 3/28/2013 9:53:02 AM
RE: Realtime DLL update Posted by Rick Hodgin @ 3/28/2013 1:35:38 PM
RE: Realtime DLL update Posted by Rick Hodgin @ 4/1/2013 12:37:25 PM
RE: Realtime DLL update Posted by Rick Hodgin @ 4/6/2013 3:48:01 AM
RE: Realtime DLL update Posted by Rick Hodgin @ 4/9/2013 2:22:14 AM
RE: Realtime DLL update Posted by Jun Tangunan @ 4/9/2013 3:59:08 AM
RE: Realtime DLL update Posted by Jun Tangunan @ 4/9/2013 3:59:08 AM
RE: Realtime DLL update Posted by Rick Hodgin @ 4/9/2013 11:49:59 AM
RE: Realtime DLL update Posted by Bernard Bout @ 4/9/2013 4:15:16 AM
RE: Realtime DLL update Posted by Rick Hodgin @ 4/9/2013 11:36:24 AM
RE: Realtime DLL update Posted by Rick Hodgin @ 4/9/2013 11:48:00 AM
RE: Realtime DLL update Posted by Rick Hodgin @ 4/9/2013 12:04:51 PM
RE: Realtime DLL update Posted by Rick Hodgin @ 4/9/2013 2:22:53 PM
RE: Realtime DLL update Posted by Rick Hodgin @ 4/10/2013 2:51:26 AM