Ink pullDown menu

Paul Hibbert paul at livecode.org
Fri Aug 11 23:22:03 EDT 2017


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 <use-livecode at lists.runrev.com> 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 at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list