--- In [email protected], sgp <[EMAIL PROTECTED]> wrote:
>
> The things you can do with the dll plugin are amazing.
> Bravo to you for the example and to "entropyreduction" for the 
plugin!
>


That was really neat.  Who know it could be so simple?

I took the idea and incorporated it right into PowerPro exe version 
4.5.06d.  Only the exe is uploaded to the webeddie folder.  Here is 
how it works.

1.  For buttons that you want to display a browser, set the label of 
the button to
*control ie<id=anId>
Of course, the id is optional but I will use below.
2.  Set the tool tip to the page to be navigate to.
3.  Set the button width and height.

I only tested displaying internet web pages.  I could type into them 
and navigate links; however, Tab and other control keys did not 
work.  I don't know why.

I also implemented an embedded edit control
1.  Set label to
*control edit<id=anId>
2.  Set tooltip to initial text.
3.  Click on edit and type text.  Pressing enter executes the left 
command under the edit on the button.  All other clicks go to the 
edit control.  Tab will navigate to next control on bar.
4.  You can retrieve/set the text with
cl.gettooltip("bar","anId")
and set it similarly with settooltip.
5.  You can get the window handle for the edit with cl.getCtrlHandle
win.setfocus(cl.getCtrlHandle("bar","anId"))  // set focus to edit

Not tested, but if you put

*control generic
in name box
and progid or GUID of control in tool tip, it should instantiate 
that control.

There should be a way to use the COM plugin to access the controls 
through adding a service that uses one of the AtlAx functions to 
access the IUnknown interface, as well as getting the control 
name/GUID from the button name field.  But I am not sure; I would 
leave that up to Alan C if he wants to pursue.







Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to