<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://permalink.gmane.org/gmane.lisp.ltk.user">
    <title>gmane.lisp.ltk.user</title>
    <link>http://permalink.gmane.org/gmane.lisp.ltk.user</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.lisp.ltk.user/465"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.lisp.ltk.user/464"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.lisp.ltk.user/463"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.lisp.ltk.user/462"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.lisp.ltk.user/461"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.lisp.ltk.user/460"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.lisp.ltk.user/459"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.lisp.ltk.user/458"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.lisp.ltk.user/457"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.lisp.ltk.user/456"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.lisp.ltk.user/455"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.lisp.ltk.user/454"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.lisp.ltk.user/453"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.lisp.ltk.user/452"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.lisp.ltk.user/451"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.lisp.ltk.user/450"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.lisp.ltk.user/449"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.lisp.ltk.user/448"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.lisp.ltk.user/447"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.lisp.ltk.user/446"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.lisp.ltk.user/465">
    <title>Re: Add an event in the ltk event queue</title>
    <link>http://permalink.gmane.org/gmane.lisp.ltk.user/465</link>
    <description>&lt;pre&gt;Le Mon, 12 Mar 2012 21:51:02 +0100
Syll &amp;lt;syll-dev&amp;lt; at &amp;gt;laposte.net&amp;gt; a écrit :


Is this possible ?

Syll

&lt;/pre&gt;</description>
    <dc:creator>Syll</dc:creator>
    <dc:date>2012-04-28T13:45:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.lisp.ltk.user/464">
    <title>Re: Selection in listbox</title>
    <link>http://permalink.gmane.org/gmane.lisp.ltk.user/464</link>
    <description>&lt;pre&gt;Le Thu, 1 Mar 2012 00:17:30 +0100
Syll &amp;lt;syll-dev&amp;lt; at &amp;gt;laposte.net&amp;gt; a écrit :


Any idea/tip for this ?

Thank you

Zyll

&lt;/pre&gt;</description>
    <dc:creator>Syll</dc:creator>
    <dc:date>2012-04-28T13:44:31</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.lisp.ltk.user/463">
    <title>Re: resizing canvas, exiting main loop, fullscreen</title>
    <link>http://permalink.gmane.org/gmane.lisp.ltk.user/463</link>
    <description>&lt;pre&gt;Hi Peter,

Peter Herth &amp;lt;herth&amp;lt; at &amp;gt;peter-herth.de&amp;gt; writes:


Thanks for LTK!  I was able to prototype my program very quickly.


OK, that works fine.


I assume that the window should be *tk*.  So I tried

(set-wm-overrideredirect *tk* 1)

but it didn't do anything, I reverted to set-wm-attributes.

Should I submit a patch adding set-wm-attributes?  Where is the
development repository for LTK?

Best,

Tamas

&lt;/pre&gt;</description>
    <dc:creator>Tamas K Papp</dc:creator>
    <dc:date>2012-04-28T06:50:58</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.lisp.ltk.user/462">
    <title>Re: unpack frame?</title>
    <link>http://permalink.gmane.org/gmane.lisp.ltk.user/462</link>
    <description>&lt;pre&gt;Hi Christy,

you can remove any widget you added with "pack" via "pack-forget" and
later on pack it again.

Peter


On Fri, Apr 27, 2012 at 5:02 PM, Christy &amp;lt;cknockleby&amp;lt; at &amp;gt;eastlink.ca&amp;gt; wrote:

&lt;/pre&gt;</description>
    <dc:creator>Peter Herth</dc:creator>
    <dc:date>2012-04-27T15:39:58</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.lisp.ltk.user/461">
    <title>unpack frame?</title>
    <link>http://permalink.gmane.org/gmane.lisp.ltk.user/461</link>
    <description>&lt;pre&gt;I'm trying to program a little computer game for my sons, and I'm wondering if there is a way to have some of the buttons on it disappear for a while and then return. I have them in a frame, and I was wondering if there is a command I could use to remove that frame temporarily. Any suggestions?

Christy&lt;/pre&gt;</description>
    <dc:creator>Christy</dc:creator>
    <dc:date>2012-04-27T15:02:34</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.lisp.ltk.user/460">
    <title>Re: resizing canvas, exiting main loop, fullscreen</title>
    <link>http://permalink.gmane.org/gmane.lisp.ltk.user/460</link>
    <description>&lt;pre&gt;
You're welcome!


I am  positive for that  and I hope  Peter, the author of  the library
will include it.
 

i can only see  two horizontal (1px or so as height)  lines on top and
bottom  of the screen,  however I  tried to  replace pack  method with
grid:

(grid canvas 0 0 :sticky "nswe")

and the the bottom line seems to disappear.
 

I spent  a minute or  so moving the  mouse (and my eyes  are exploding
now! I  hope you will  add a disclaimer  for that!) and got  no crash,
sorry!
 

Totally agree!

Bye!
C.

&lt;/pre&gt;</description>
    <dc:creator>cage</dc:creator>
    <dc:date>2012-04-27T15:11:07</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.lisp.ltk.user/459">
    <title>Re: resizing canvas, exiting main loop, fullscreen</title>
    <link>http://permalink.gmane.org/gmane.lisp.ltk.user/459</link>
    <description>&lt;pre&gt;Hi Tamas,

glad to hear that you like LTk :)

To get rid of the border of the canvas (which only appears on windows)
you need to
(configure canvas :highlightthickness 0)
To make a window without decorations for full-screen mode, I used
(set-wm-overrideredirect window 1)




Peter

On Fri, Apr 27, 2012 at 4:42 PM, Tamas K Papp &amp;lt;tkpapp&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:

&lt;/pre&gt;</description>
    <dc:creator>Peter Herth</dc:creator>
    <dc:date>2012-04-27T14:50:18</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.lisp.ltk.user/458">
    <title>Re: resizing canvas, exiting main loop, fullscreen</title>
    <link>http://permalink.gmane.org/gmane.lisp.ltk.user/458</link>
    <description>&lt;pre&gt;
Tamas K Papp &amp;lt;tkpapp&amp;lt; at &amp;gt;gmail.com&amp;gt; writes:


I have solved this issue, I forgot to quote the padding char in format.
Here is the latest version:

http://paste.lisp.org/display/129192#1

Now I just need to get rid of the border :-)

Best,

Tamas

&lt;/pre&gt;</description>
    <dc:creator>Tamas K Papp</dc:creator>
    <dc:date>2012-04-27T14:42:18</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.lisp.ltk.user/457">
    <title>Re: resizing canvas, exiting main loop, fullscreen</title>
    <link>http://permalink.gmane.org/gmane.lisp.ltk.user/457</link>
    <description>&lt;pre&gt;
cage &amp;lt;cage&amp;lt; at &amp;gt;katamail.com&amp;gt; writes:


Thanks!  I basically have it under control now, see:
http://paste.lisp.org/display/129192

In particular, I defined set-wm-attributes to make the window full
screen.  I wonder if that would be a useful addition to LTK.

Currently I have the following issues:

1. I can't make the border disappear around the canvas.

2. If I go near the top/bottom of the screen, or move around too much
with the mouse, the script crashes with the following message:

"The value 0 is not of type CHARACTER."

and I get a debugging window.  Suggestions to resolve these would be
appreciated.  Also, comments on the code are welcome, I figured things
out by reading the source.

But LTK is truly amazing!  I wrote this application in about 30 minutes
and it basically does what I want it to do.

Best,

Tamas

&lt;/pre&gt;</description>
    <dc:creator>Tamas K Papp</dc:creator>
    <dc:date>2012-04-27T14:22:20</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.lisp.ltk.user/456">
    <title>Re: resizing canvas, exiting main loop, fullscreen</title>
    <link>http://permalink.gmane.org/gmane.lisp.ltk.user/456</link>
    <description>&lt;pre&gt;
Hello!
 

I can not help for the rest of the questions but "buttonpress-2" binds
to the "wheel" button of the mouse on my system, try "&amp;lt;ButtonPress-3&amp;gt;"
instead.

Bye.
C.

&lt;/pre&gt;</description>
    <dc:creator>cage</dc:creator>
    <dc:date>2012-04-27T13:53:24</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.lisp.ltk.user/455">
    <title>resizing canvas, exiting main loop, fullscreen</title>
    <link>http://permalink.gmane.org/gmane.lisp.ltk.user/455</link>
    <description>&lt;pre&gt;Hi,

I am trying to write a small program that would do the following:

1. create a full screen window with no decorations

2. when the left mouse button is pressed, change the color of the window
according to the relative position (ie the color is calculated from the
position),

3. when the right mouse button is pressed, exit.

BTW, the application is for testing LCD screens.

I came up with the following:

(in-package :cl-user)
(require :ltk)
(use-package :ltk)

(defun hex-color (r g b)
  "Return a hexadecimal color string.  R G B should be in [0,1]."
  (flet ((normalize (x)
           (assert (&amp;lt;= 0 x 1))
           (round (* x 255))))
    (format nil "#~2,0x~2,0x~2,0x"
            (normalize r)
            (normalize g)
            (normalize b))))

(defun lcd-test ()
  (with-ltk ()
    (let* ((canvas (make-instance 'canvas))
           (down nil))
      (flet ((set-color (x-rel y-rel)
               (configure canvas "background"
                          (hex-color x-rel y-rel 0.5))))
        (pack canv&lt;/pre&gt;</description>
    <dc:creator>Tamas K Papp</dc:creator>
    <dc:date>2012-04-27T11:53:38</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.lisp.ltk.user/454">
    <title>Re: Color in lines</title>
    <link>http://permalink.gmane.org/gmane.lisp.ltk.user/454</link>
    <description>&lt;pre&gt;Found it! http://www.peter-herth.de/ltk/ltkdoc/node38.html#3160

Thanks.

&lt;/pre&gt;</description>
    <dc:creator>Tiago Charters de Azevedo</dc:creator>
    <dc:date>2012-03-27T16:15:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.lisp.ltk.user/453">
    <title>Re: Color in lines</title>
    <link>http://permalink.gmane.org/gmane.lisp.ltk.user/453</link>
    <description>&lt;pre&gt;
Hello

Maybe you  need to call:
(itemconfigure canvas  (create-line* canvas x0y0  x1 y1)  option value)  

please  check the documentation  for which  options are  availables (I
think you need something like :outline "ff0000" to get a red line, for
example).

Bye.
C.

&lt;/pre&gt;</description>
    <dc:creator>cage</dc:creator>
    <dc:date>2012-03-27T15:54:00</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.lisp.ltk.user/452">
    <title>Color in lines</title>
    <link>http://permalink.gmane.org/gmane.lisp.ltk.user/452</link>
    <description>&lt;pre&gt;Hi,
 is there any way of coloring a create-line, or all lines are black?

Thanks.


&lt;/pre&gt;</description>
    <dc:creator>Tiago Charters de Azevedo</dc:creator>
    <dc:date>2012-03-27T14:49:46</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.lisp.ltk.user/451">
    <title>Add an event in the ltk event queue</title>
    <link>http://permalink.gmane.org/gmane.lisp.ltk.user/451</link>
    <description>&lt;pre&gt;Hello

Is it possible to add an event in the ltk event queue from another
thread ?

I can put events in a queue and use (after ...) to read it periodically
in the ltk thread, but it would be easier and more efficient to use the
ltk event queue directly.

Thank you

Syll

&lt;/pre&gt;</description>
    <dc:creator>Syll</dc:creator>
    <dc:date>2012-03-12T20:51:02</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.lisp.ltk.user/450">
    <title>Selection in listbox</title>
    <link>http://permalink.gmane.org/gmane.lisp.ltk.user/450</link>
    <description>&lt;pre&gt;
Hello

I have a few problems/questions with listbox selection (especially
multiple selection).

* If the listbox does'nt have the focus and I select items with
  Ctrl+click (including the first one), events from keys are not
  triggered for this listbox. Is it because the listbox has'nt get the
  focus at all ? How do i give the focus to the listbox (but not to
  any item) ?

* If I understand this well, there are two special states that can be
  applied to list items : say "selected" (zero, one or several items)
  and "focused" (zero or one item).

* I can select an item with listbox-select.
  How can I give the focus to an item ?

* I catch selection events with &amp;lt;&amp;lt;ListboxSelect&amp;gt;&amp;gt;.
  How can I catch "item focus" events ?
  How can I get the focused item ?

Thank you

Syll

&lt;/pre&gt;</description>
    <dc:creator>Syll</dc:creator>
    <dc:date>2012-02-29T23:17:30</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.lisp.ltk.user/449">
    <title>Re: Bold font for label</title>
    <link>http://permalink.gmane.org/gmane.lisp.ltk.user/449</link>
    <description>&lt;pre&gt;
[...]
 

You're welcome, please keep asking if need help! :)

Bye!
C.

&lt;/pre&gt;</description>
    <dc:creator>cage</dc:creator>
    <dc:date>2012-01-17T16:04:12</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.lisp.ltk.user/448">
    <title>Re: Bold font for label</title>
    <link>http://permalink.gmane.org/gmane.lisp.ltk.user/448</link>
    <description>&lt;pre&gt;

This could help me to have the same font for all labels, but not everywhere in the application because I can't get a "modified default font". But I keep your idea in mind :) .

Thank you for your help.

Syll


Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?
Je crée ma boîte mail www.laposte.net

_______________________________________________
ltk-user site list
ltk-user&amp;lt; at &amp;gt;common-lisp.net
http://common-lisp.net/mailman/listinfo/ltk-user&lt;/pre&gt;</description>
    <dc:creator>syll-dev&lt; at &gt;laposte.net</dc:creator>
    <dc:date>2012-01-17T01:24:08</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.lisp.ltk.user/447">
    <title>Re: Bold font for label</title>
    <link>http://permalink.gmane.org/gmane.lisp.ltk.user/447</link>
    <description>&lt;pre&gt;
Hello!


Well, that appear weird to me! Maybe this is the way Tk works.
 

Why do not subclass the label widget?

something like:

(defclass my-label (ltk:label)
  ())

(defmethod initialize-instance :after ((object my-label) &amp;amp;key (font-name "sans") (font-size 10))
  (configure object "font" (format nil "~a ~a" font-name font-size)))


This way cget should always return something meaningful.
Then you can add method to change only the weigth of the font.

This code is not tested of course, no warranty for any purpouse! :)

Bye!
C.


&lt;/pre&gt;</description>
    <dc:creator>cage</dc:creator>
    <dc:date>2012-01-16T15:52:28</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.lisp.ltk.user/446">
    <title>Re: Bold font for label</title>
    <link>http://permalink.gmane.org/gmane.lisp.ltk.user/446</link>
    <description>&lt;pre&gt;

Not really, unfortunately :( . But thank you for your answer :) . And I didn't know cget, which will be usefull.

If I don't specify the font to use for a label, (cget label "font") returns "".
If I specify a string as the font to use for a label, (cget label "font") returns this string.

So I can't find the font used for "normal" labels. I would like to say : "the default font with default properties, but weight=bold". I can use :font "Helvetica 10 bold", but not juste :font "bold".


Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?
Je crée ma boîte mail www.laposte.net

_______________________________________________
ltk-user site list
ltk-user&amp;lt; at &amp;gt;common-lisp.net
http://common-lisp.net/mailman/listinfo/ltk-user&lt;/pre&gt;</description>
    <dc:creator>syll-dev&lt; at &gt;laposte.net</dc:creator>
    <dc:date>2012-01-15T18:39:53</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.lisp.ltk.user/445">
    <title>Re: Bold font for label</title>
    <link>http://permalink.gmane.org/gmane.lisp.ltk.user/445</link>
    <description>&lt;pre&gt;
Hello!
 

Ok, you can query the label for actual font used using the cget function:

(cget label "font")

Hope this helps.

Bye!
C.

&lt;/pre&gt;</description>
    <dc:creator>cage</dc:creator>
    <dc:date>2012-01-15T11:08:45</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.lisp.ltk.user">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.lisp.ltk.user</link>
  </textinput>
</rdf:RDF>

