Re: [Factor-talk] Factor application not working under Windows

2013-01-08 Thread Samuel Proulx
of the message. Is there a way I can send it ? 2013/1/8 Samuel Proulx proulxsam...@gmail.com Thank you for letting me know about that bug. Hopefully it will be fixed soon. For my second problem, it occurs after loading gradient-docs. Since I cannot really manage to isolate my problem, I can

[Factor-talk] Factor application not working under Windows

2013-01-07 Thread Samuel Proulx
Hi, I tried to use my program on Windows (7), after programming it under Linux. I got I few surprises. First of all, the labels which are on non-white tracks ( they have a gradient in their interior slot ) have a black background. I tried to change the background slot of the label's font, but I

Re: [Factor-talk] Include resources in a deployed application

2013-01-04 Thread Samuel Proulx
your main vocab. Or you could apply the patch in the second comment, which changes the name of the executable to be different than the directory containing the resources. It's probably easier for you. Jon On Fri, Jan 4, 2013 at 12:07 AM, Samuel Proulx proulxsam...@gmail.comwrote: No John

[Factor-talk] Include resources in a deployed application

2013-01-03 Thread Samuel Proulx
Hi, I've been trying to deploy an application, but I can't figure out how to include image files to my program. MAIN-WINDOW: test { { title Test } } vocab:x/test.png image-gadget gadgets ; I read that I need to include them in the resources.txt file. In the previous example, I would need to

Re: [Factor-talk] Radio-buttons not working

2012-12-27 Thread Samuel Proulx
gadget was not run, so models were not properly activated and linked Cheers, Jon Jon On Thu, Dec 27, 2012 at 6:37 PM, Samuel Proulx proulxsam...@gmail.comjavascript:_e({}, 'cvml', 'proulxsam...@gmail.com'); wrote: Hi, I just made the following scroller containing two radio-buttons

[Factor-talk] Quotation stack effect

2012-12-26 Thread Samuel Proulx
Hi, I just have a quick question. Is it possible to make an each quotation have a stack effect such as ( x -- x ) or do we have to stick with the standard ( x -- ) ? Thanks in advance, Samuel -- Master Java SE, Java EE,

Re: [Factor-talk] Quotation stack effect

2012-12-26 Thread Samuel Proulx
Thank you for your answers. That's what I was looking for. 2012/12/26 Doug Coleman doug.cole...@gmail.com How about 'map'? On Dec 26, 2012 10:48 AM, Samuel Proulx proulxsam...@gmail.com wrote: Hi, I just have a quick question. Is it possible to make an each quotation have a stack

Re: [Factor-talk] UI example

2012-12-22 Thread Samuel Proulx
You might want to have a look at this. It has been previously asked. http://www.mail-archive.com/factor-talk@lists.sourceforge.net/msg06018.html Hope that helps, Samuel 2012/12/22 Leonard P leonard14...@gmail.com Any simple UI examples out there? - Leonard

[Factor-talk] Border child

2012-12-19 Thread Samuel Proulx
Hi, I tried to change the child of a border. Judging by the help ( \ border help ), I only need to change the child slot. So I tried this: Test label { 5 5 } border dup gadget. Worked label child Error : Generic word child does not define a method for the border class. What does that mean?

Re: [Factor-talk] Border child

2012-12-19 Thread Samuel Proulx
. Worked label 1vector children On 19.12.2012, at 17:14, Samuel Proulx proulxsam...@gmail.com wrote: Hi, I tried to change the child of a border. Judging by the help ( \ border help ), I only need to change the child slot. So I tried this: Test label { 5 5 } border dup gadget. Worked

Re: [Factor-talk] Border child

2012-12-19 Thread Samuel Proulx
It worked fine with borders, so I thought it would be the same with scrollers. I tried the same thing you proposed me for the borders with the scrollers. It doesn't work. What do I do if I want to change the gadget slot of a scroller ( \ scroller help ) ? 2012/12/19 Samuel Proulx proulxsam

Re: [Factor-talk] Button stack effect problem

2012-12-18 Thread Samuel Proulx
to do is to set the value of the symbol a from inside the quotation. How can I do that? 2012/12/17 Samuel Proulx proulxsam...@gmail.com I see! Thank you for your help and your explanations! 2012/12/17 Jon Harper jon.harpe...@gmail.com The quotation you pass to the border-button constructor gets

Re: [Factor-talk] Button stack effect problem

2012-12-18 Thread Samuel Proulx
-button-theme ; Press [ a ... ] a-button 1 a gadget. Best, John. On Tue, Dec 18, 2012 at 10:26 AM, Samuel Proulx proulxsam...@gmail.comwrote: I've been experimenting with it and I now have another question. I've figured a way to use symbols in the quotations like so: SYMBOL: a 1 a set

[Factor-talk] Button stack effect problem

2012-12-17 Thread Samuel Proulx
Hi, Yet another problem... Hopefully the last though. I tried to make a button that changes the text slot of a previously made label. Here's what I did: Test label dup gadget. Press [ drop Worked text ] border-button gadget. I got an error message saying Data stack underflow when I clicked it.

Re: [Factor-talk] Button stack effect problem

2012-12-17 Thread Samuel Proulx
. Other ways of creating closures are fried quotations ( http://docs.factorcode.org/content/article-fry.html) or local variables ( http://docs.factorcode.org/content/article-locals.html) Cheers, Jon On Mon, Dec 17, 2012 at 10:48 PM, Samuel Proulx proulxsam...@gmail.comwrote: Hi, Yet

[Factor-talk] Border-button quotation

2012-12-16 Thread Samuel Proulx
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

Re: [Factor-talk] Border-button quotation

2012-12-16 Thread Samuel Proulx
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.comjavascript:_e({}, 'cvml', 'proulxsam...@gmail.com'); wrote: Hi, I'm sorry to spam

Re: [Factor-talk] Border-button quotation

2012-12-16 Thread Samuel Proulx
:58 PM, Samuel Proulx proulxsam...@gmail.comwrote: 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

Re: [Factor-talk] Changing the text on a label

2012-12-15 Thread Samuel Proulx
. Changing it will change the text it displays: IN: scratchpad hello, world label dup gadget. IN: scratchpad goodbye, world text See that the text changes in the display? Thanks, John. On Sat, Dec 15, 2012 at 1:06 PM, Samuel Proulx proulxsam...@gmail.comwrote: Hi, I've tried

[Factor-talk] Game programming in Factor

2012-12-07 Thread Samuel Proulx
Hi, I was wondering what was the best way to make simple 2D games with Factor. I've been programming simple games in Python using either Pygame or Pyglet, which is pretty easy and straightforward. Although, in Factor, I doesn't appear to work the same way. My questions are the following: 1.

Re: [Factor-talk] Game programming in Factor

2012-12-07 Thread Samuel Proulx
: gpu.demos.raytrace run Also, this is a fun little game demo built by Joe: https://github.com/jckarter/papier On Fri, Dec 7, 2012 at 6:57 AM, Samuel Proulx proulxsam...@gmail.comwrote: Hi, I was wondering what was the best way to make simple 2D games with Factor. I've been programming

[Factor-talk] A few questions about the UI vocabulary

2012-11-17 Thread Samuel Proulx
Hi, It's my first time here, so I hope I'm doing it right. I'm learning Factor and I'm currently playing with the UI vocabulary. Although, there are a few things I can't figure out with it. I've already looked in the Browser, but I can't find what I'm looking for. My questions are the following