PDA

View Full Version : Name that Procedure



Glennbo
28-Feb-2005, 02:09 PM
In character mode OOPs for DF31x, what procedure can I intercept after a
lookup object has been used? I have a program where after looking up a
customer with a selection list, I need to get control and do a bit of my
own processing, based on the customer who was selected. I looked in the
archive group but didn't find anything there.

--
_______ _____ ___ _____ ____
/ ___/ / / __/ |/ / |/ / _ )/ __ \
/ (_ / /__/ _// / / _ / /_/ /
\___/____/___/_/|_/_/|_/____/\____/
---------------------------------------------------------------------
Glennbo These go to eleven
Non-Linear Sound http://www.soundclick.com/glennbo
Hear My Music http://www.soundclick.com/jambits

Peter Donovan
28-Feb-2005, 05:13 PM
Prompt
Peter

Procedure Prompt
Forward Send Prompt
This code here executes after focus returns
End_Procedure

I can name that procedure in 3 minutes.<g>

Glennbo
28-Feb-2005, 05:52 PM
The entity known as Peter Donovan, posted:

> Prompt
> Peter
>
> Procedure Prompt
> Forward Send Prompt
> This code here executes after focus returns
> End_Procedure
>
> I can name that procedure in 3 minutes.<g>

Hehe, thanks Peter. I tried that one, but it seemed to happen before I was
getting back with a record. My app has an overlaid customer photo and
notes that have to be manually dialed up, once the customer record is
loaded up in the main app. I finally figured out where to intercept to
make my embedded photo and notes appear after my selection list closes.

This is the code I used in my selection list to finally make it happen.

Procedure move_value_out // 002
Send FillScreen to (invoking_object_id(current_object))
Forward Send move_value_out
End_procedure

FillScreen is a procedure in my main app that loads the customer photo
and the associated notes. Here's a screen shot of program.

http://members.cox.net/glennbo/Customer.jpg

--
_______ _____ ___ _____ ____
/ ___/ / / __/ |/ / |/ / _ )/ __ \
/ (_ / /__/ _// / / _ / /_/ /
\___/____/___/_/|_/_/|_/____/\____/
---------------------------------------------------------------------
Glennbo These go to eleven
Non-Linear Sound http://www.soundclick.com/glennbo
Hear My Music http://www.soundclick.com/jambits

Tod Brannen
1-Mar-2005, 02:26 AM
I found that in VDF there is a Prompt_Call_back procedure you can use for
this. Don't know if it exists in CM.

--
Best regards,

Tod Brannen

Please remove 'themax' to reply or the
reply will not reach me.
Glennbo <vdrums@swbell.net> wrote in message
news:Xns960B85E0AB6FABrownShoesDontMakeIt@192.245. 64.240...
>
> In character mode OOPs for DF31x, what procedure can I intercept after a
> lookup object has been used? I have a program where after looking up a
> customer with a selection list, I need to get control and do a bit of my
> own processing, based on the customer who was selected. I looked in the
> archive group but didn't find anything there.
>
> --
> _______ _____ ___ _____ ____
> / ___/ / / __/ |/ / |/ / _ )/ __ \
> / (_ / /__/ _// / / _ / /_/ /
> \___/____/___/_/|_/_/|_/____/\____/
> ---------------------------------------------------------------------
> Glennbo These go to eleven
> Non-Linear Sound http://www.soundclick.com/glennbo
> Hear My Music http://www.soundclick.com/jambits
>

Bill Clifford
1-Mar-2005, 12:02 PM
Glennbo,
"Move_Value_Out" and "Find_Or_OK" can be used for post processing of
selection lists such as parsing each multiselected item, invoking other
objects etc. I have a prescription printing multiselect list that has a
fairly complex Find_Or_OK procedure to manage the output.
This is much easier than embedding a picture in a console mode app. How
the h_ did you do that?

Bill

"Glennbo" <vdrums@swbell.net> wrote in message
news:Xns960B85E0AB6FABrownShoesDontMakeIt@192.245. 64.240...
>
> In character mode OOPs for DF31x, what procedure can I intercept after a
> lookup object has been used? I have a program where after looking up a
> customer with a selection list, I need to get control and do a bit of my
> own processing, based on the customer who was selected. I looked in the
> archive group but didn't find anything there.
>
> --
> _______ _____ ___ _____ ____
> / ___/ / / __/ |/ / |/ / _ )/ __ \
> / (_ / /__/ _// / / _ / /_/ /
> \___/____/___/_/|_/_/|_/____/\____/
> ---------------------------------------------------------------------
> Glennbo These go to eleven
> Non-Linear Sound http://www.soundclick.com/glennbo
> Hear My Music http://www.soundclick.com/jambits
>

Glennbo
1-Mar-2005, 12:08 PM
The entity known as Tod Brannen, posted:

> I found that in VDF there is a Prompt_Call_back procedure you can use
> for this. Don't know if it exists in CM.

Thanks Tod. I'll have to chech this out for VDF.

In CM I found that intercepting Procedure move_value_out was late enough
in the sequence of events that something had already been selected from
the pick list. From there I just called my routine to load up the photo
and notes. http://members.cox.net/glennbo/Customer.jpg

--
_______ _____ ___ _____ ____
/ ___/ / / __/ |/ / |/ / _ )/ __ \
/ (_ / /__/ _// / / _ / /_/ /
\___/____/___/_/|_/_/|_/____/\____/
---------------------------------------------------------------------
Glennbo These go to eleven
Non-Linear Sound http://www.soundclick.com/glennbo
Hear My Music http://www.soundclick.com/jambits

Glennbo
1-Mar-2005, 12:48 PM
The entity known as Bill Clifford, posted:

> This is much easier than embedding a picture in a console mode app.
> How the h_ did you do that?

Hey Rocky, watch me embed a photo in my console mode app.

Nothing up my sleeve... Presto!

Hehe, it's actually a Visual C++ app for displaying images that locks onto
a console mode window. We had Richard Haendel (who wrote VDFBug) custom
program the little window that locks onto the window our app runs in.
Looks pretty integrated, and even Richard himself saw it running on my
desktop one day and asked, is that a visual dataflex app, to which I said,
no it's your app running on my app. <g>

http://members.cox.net/glennbo/Customer.jpg

Now I want somebody to write me an ActiveX Command.com control, so I can
embed my console mode app into visual dataflex, and then I'll be set. ;)

--
_______ _____ ___ _____ ____
/ ___/ / / __/ |/ / |/ / _ )/ __ \
/ (_ / /__/ _// / / _ / /_/ /
\___/____/___/_/|_/_/|_/____/\____/
---------------------------------------------------------------------
Glennbo These go to eleven
Non-Linear Sound http://www.soundclick.com/glennbo
Hear My Music http://www.soundclick.com/jambits

Mark Powers
1-Mar-2005, 01:28 PM
Thanks for sharing that link with us!! That is a pretty cool thing that
Richard did for you.

Mark Powers

Glennbo wrote:
> The entity known as Bill Clifford, posted:
>
>
>>This is much easier than embedding a picture in a console mode app.
>>How the h_ did you do that?
>
>
> Hey Rocky, watch me embed a photo in my console mode app.
>
> Nothing up my sleeve... Presto!
>
> Hehe, it's actually a Visual C++ app for displaying images that locks onto
> a console mode window. We had Richard Haendel (who wrote VDFBug) custom
> program the little window that locks onto the window our app runs in.
> Looks pretty integrated, and even Richard himself saw it running on my
> desktop one day and asked, is that a visual dataflex app, to which I said,
> no it's your app running on my app. <g>
>
> http://members.cox.net/glennbo/Customer.jpg
>
> Now I want somebody to write me an ActiveX Command.com control, so I can
> embed my console mode app into visual dataflex, and then I'll be set. ;)
>

Glennbo
1-Mar-2005, 01:42 PM
The entity known as Mark Powers, posted:

> Thanks for sharing that link with us!! That is a pretty cool thing
> that Richard did for you.

My company paid to have him develop it, but he is still free to sell
it if he wants to. We've had picture taking in our app since about 1993,
but it always required a separate popup window to display the images.
Now it looks like they are right on the app, and by intercepting various
messages in character mode OOPs, the images switch like it's all one thing.



>>>This is much easier than embedding a picture in a console mode app.
>>>How the h_ did you do that?
>>
>>
>> Hey Rocky, watch me embed a photo in my console mode app.
>>
>> Nothing up my sleeve... Presto!
>>
>> Hehe, it's actually a Visual C++ app for displaying images that locks
>> onto a console mode window. We had Richard Haendel (who wrote
>> VDFBug) custom program the little window that locks onto the window
>> our app runs in. Looks pretty integrated, and even Richard himself
>> saw it running on my desktop one day and asked, is that a visual
>> dataflex app, to which I said, no it's your app running on my app.
>> <g>
>>
>> http://members.cox.net/glennbo/Customer.jpg
>>
>> Now I want somebody to write me an ActiveX Command.com control, so I
>> can embed my console mode app into visual dataflex, and then I'll be
>> set. ;)



--
_______ _____ ___ _____ ____
/ ___/ / / __/ |/ / |/ / _ )/ __ \
/ (_ / /__/ _// / / _ / /_/ /
\___/____/___/_/|_/_/|_/____/\____/
---------------------------------------------------------------------
Glennbo These go to eleven
Non-Linear Sound http://www.soundclick.com/glennbo
Hear My Music http://www.soundclick.com/jambits

Marco
2-Mar-2005, 01:55 AM
>Now I want somebody to write me an ActiveX Command.com control, so I can
>embed my console mode app into visual dataflex, and then I'll be set. ;)

Done ;)

Well, actually a bit different. An activeX in VDF that does a telnet
session to a telnet server that runs the CM dataflex... Can do all
from spell check, via buttons to attaching files with drag and drop
etc. All via screen scraping and sendkey/sendtext.

So, if you want to part with your money, I deliver the goods ;)

Cheers,
Marco

Henrik Staun Poulsen
2-Mar-2005, 04:08 AM
Marco,

Would it be possible for you to take a few screen shots of the CM->VDF
integration that you have done?

We're using K95 as our telnet program, and would like to start
programming in VDF, without leaving our CM stuff alone.
A picture can tell more than a thousind words, and we would like to have
the knowledge that it can be done, before going down that road...

Best regards

Henrik Staun Poulsen
Denmark

Glennbo
2-Mar-2005, 09:44 AM
The entity known as Henrik Staun Poulsen, posted:

> Marco,
>
> Would it be possible for you to take a few screen shots of the CM->VDF
> integration that you have done?

Yeah, I'd like to see it too.

--
_______ _____ ___ _____ ____
/ ___/ / / __/ |/ / |/ / _ )/ __ \
/ (_ / /__/ _// / / _ / /_/ /
\___/____/___/_/|_/_/|_/____/\____/
---------------------------------------------------------------------
Glennbo These go to eleven
Non-Linear Sound http://www.soundclick.com/glennbo
Hear My Music http://www.soundclick.com/jambits