libera/#clim - IRC Chatlog
Search
15:21:07
mcoll
hmmm, how can I handle a click on something that has been drawn as a presentation type. So I have an item and it is drawn to screen using presentation types, I want to be able to click on it to toggle it, but afaik handle-event cannot be specialized for this
15:22:06
beach
You might want to define a presentation-to-command-translator that changes how it is drawn.
15:22:54
scymtym
easiest way is (define-command (com-toggle-item :command-table YOUR-APPLICATION-FRAME-NAME) ((item 'item :gesture :select)) (toggle-item item))
15:23:17
scymtym
the :gesture :select part generates the presentation to command translator that beach mentioned automatically
15:24:03
scymtym
:SELECT is usually an alias for "left point button click" (might actually be button press or button release)
15:28:14
scymtym
yeah, that's the part that makes certain types of user interfaces extremely easy and quick with CLIM
17:03:47
mcoll
I discovered the single-box option so that I get a single box out of a lot of text instead of small boxes, but I'd like to specify a bigger highlight box for some entries
17:13:58
mcoll
hmmm, I cannot set text family to monospaced, it says "The following files should exist" and list a whole lot of files that *do* exist from cl-dejavu
19:39:10
mcoll
how could I refresh the rendering as soon as a promise resolves for example? I'm fine if it means polling from time to time. Is there any way to run a refresh from time to time and redraw on data change? How does data-binding work in McCLIM?
19:40:51
mcoll
to give a little bit more context, I'm running some external commands wrapped in an lparallel future that I want to show when they are resolved