You can print to the global namespace and it should show up in the terminal
(Windows, Linux) or in Console (Mac).

"Press" [ *drop [ *"The button has been pressed." print ] with-global ]
<border-button> gadget.

Doug


On Sun, Dec 16, 2012 at 4:58 PM, Samuel Proulx <proulxsam...@gmail.com>wrote:

> Thank you for your answer! I don't get the error message anymore.
> Although, is it normal if the message "The button has been pressed" doesn't
> show in the listener?
>
> Le dimanche 16 décembre 2012, John Benediktsson a écrit :
>
> For convenience, the quotation is called with the button object that was
>> clicked.  If you don't want it, you can just drop it.
>>
>>  "Press" [ *drop *"The button has been pressed." print ] <border-button>
>> gadget.
>>
>>
>>
>> On Sun, Dec 16, 2012 at 4:01 PM, Samuel Proulx <proulxsam...@gmail.com>wrote:
>>
>>> Hi,
>>>
>>> I'm sorry to spam the mailing list so much those last few days, I just
>>> have a project in mind but I'm having such a hard figuring it out in Factor.
>>>
>>> I've been trying to make a border-button for a UI. I looked at the help
>>> ( \ <border-button> help ). I don't understand its "quot" parameter. It
>>> says it's "a quotation with stack effect ( button -- )". Since I don't
>>> really understand the part "with a stack effect", I decided to try
>>> something:
>>>
>>>  "Press" [ "The button has been pressed." print ] <border-button>
>>> gadget.
>>>
>>> The button appears correctly, but when I click on it, I get the error
>>> "Quotation's stack effect does not match call site".
>>>
>>> Can someone tell what I did wrong?
>>>
>>> Thanks in advance,
>>> Samuel
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
>>> Remotely access PCs and mobile devices and provide instant support
>>> Improve your efficiency, and focus on delivering more value-add services
>>> Discover what IT Professionals Know. Rescue delivers
>>> http://p.sf.net/sfu/logmein_12329d2d
>>> _______________________________________________
>>> Factor-talk mailing list
>>> Factor-talk@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/factor-talk
>>>
>>>
>>
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
>
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to