Re: [Factor-talk] Border-button quotation
Thank you very much to both of you! Hopefully one day I'll be good enough to give back everything I've learned and you taught me. 2012/12/16 John Benediktsson > What Doug said. Also, feel free to send your questions, we're here to > help. It's not spam. > > > On Sun, Dec 16, 2012 at 5:02 PM, Doug Coleman wrote: > >> 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 ] >> gadget. >> >> Doug >> >> >> On Sun, Dec 16, 2012 at 4:58 PM, Samuel Proulx 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 ] gadget. On Sun, Dec 16, 2012 at 4:01 PM, Samuel Proulx 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 ( \ 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 ] > 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 >> >> > > > -- > 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
Re: [Factor-talk] Border-button quotation
What Doug said. Also, feel free to send your questions, we're here to help. It's not spam. On Sun, Dec 16, 2012 at 5:02 PM, Doug Coleman wrote: > 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 ] > gadget. > > Doug > > > On Sun, Dec 16, 2012 at 4:58 PM, Samuel Proulx 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 ] >>> gadget. >>> >>> >>> >>> On Sun, Dec 16, 2012 at 4:01 PM, Samuel Proulx >>> 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 ( \ 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 ] 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 > > -- 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
Re: [Factor-talk] Border-button quotation
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 ] gadget. Doug On Sun, Dec 16, 2012 at 4:58 PM, Samuel Proulx 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 ] >> gadget. >> >> >> >> On Sun, Dec 16, 2012 at 4:01 PM, Samuel Proulx 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 >>> ( \ 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 ] >>> 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
Re: [Factor-talk] Border-button quotation
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 ] > gadget. > > > > On Sun, Dec 16, 2012 at 4:01 PM, Samuel Proulx > > > 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 ( >> \ 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 ] 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 > '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
Re: [Factor-talk] Border-button quotation
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 ] gadget. On Sun, Dec 16, 2012 at 4:01 PM, Samuel Proulx 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 ( > \ 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 ] 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
[Factor-talk] Border-button quotation
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 ( \ 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 ] 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