To Johannes,  Steve Fisher, and Alan

Similar thoughts in one response....

Recommend the following and read about context & contextlast in help 
for dropping multiple filenames on a button. See: "drag and drop on 
buttons"

Your button can now be clicked to open a menu AND for dragdrop 
filenames.


-----------------------
To Johannes,

--- In [email protected], "jbkilian" <[EMAIL PROTECTED]> wrote:
>...
> whats the easiest way to add drag and drop support to the nice 
> FloatingTags Script?
> 
> I would like to drag a file from my filemanager to a 
> FloatingTag. The FloatingTag should take the file as argument.
> For example my editor as tag should open the dragged file.
>... 
> Johannes

CL.AddLeft(CmdList, 1, "Script", "Setstring f |")
CL.AddLeft(CmdList, 1, "Script", "if(contextlast)")
CL.AddLeft(CmdList, 1, "[EMAIL PROTECTED]","("++ iTagNo ++ ",f)")

"f" has to be a global variable, and in your FloatingTag.powerpro, 
add a:

@DropFile

if (arg(2)=="|") do

WIN.Debug("Run MENU for tag#", arg(1))

else

WIN.Debug("Run FILE for tag#", arg(1), arg(2))

endif

QUIT




-----------------------
And to Steve Fisher,

Basically, the same response as above.

LCmd1 = Script
LParam1 = SetString rcmd |
LCmd2 = Script
LParam2 = If (contextlast)
LCmd3 = [EMAIL PROTECTED]
LParam3 = (?"C:\Program Files\pgrm.exe", rcmd, "This buttons MENU")

In pproConfShorts.txt

@DropFiles

if (arg(2)=="|")do

WIN.Debug("will script to Run MENU", arg(3))

else

WIN.Debug("will script to Run FILE", arg(1), arg(2))

endif

QUIT





-----------------------
To Alan,

Incidentially, the Help file Index for "drag and drop on buttons"
goes to "Drag and drop onto a bar".
I'm often saying "buttons" instead of "bars".




Have fun,


Ted









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