Re: Ink pullDown menu

2017-08-11 Thread Paul Hibbert via use-livecode
The fontNames is a built-in function, but there’s no built-in function for ink 
names AFAIK, however, that doesn’t stop you form creating a custom function, 
something like this should work for an option menu button (edit as appropriate):

on mouseEnter
   if word 1 of the selectedObject = "image" then
  put inkNames("img") into me
   else
  put inkNames() into me
   end if
end mouseEnter

function inkNames pChoice
   if pChoice = "img" then
  return "blendPlus" & cr & \
"blendMultiply" & cr & \
"blendScreen" & cr & \
"blendOverlay" & cr & \
"blendDarken" & cr & \
"blendLighten" & cr & \
"blendDodge" & cr & \
"blendBurn" & cr & \
"blendHardLight" & cr & \
"blendSoftLight" & cr & \
"blendDifference" & cr & \
"blendExclusion"
   else
  return "blendClear" & cr & \
"blendSrc" & cr & \
"blendDst" & cr & \
"blendSrcOver" & cr & \
"blendDstOver" & cr & \
"blendSrcIn" & cr & \
"blendDstIn" & cr & \
"blendSrcOut" & cr & \
"blendDstOut" & cr & \
"blendSrcAtop" & cr & \
"blendDstAtop" & cr & \
"blendXor"
   end if
end inkNames

Paul


> On Aug 11, 2017, at 9:39 AM, Richmond Mathewson via use-livecode 
>  wrote:
> 
> I can have a pullDown menu with this sort of script:
> 
> put the fontNames into me
> 
> how can I do the smae sort of thing for Ink?
> 
> e.g. (pseudocode): put the inkNames into me
> 
> Richmond.
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Ink pullDown menu

2017-08-11 Thread Richmond Mathewson via use-livecode

I can have a pullDown menu with this sort of script:

put the fontNames into me

how can I do the smae sort of thing for Ink?

e.g. (pseudocode): put the inkNames into me

Richmond.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode