Re: Programmatically changing a slider value

"John DeSoi (as john at desoi dot dev)" <[email protected]>
Newsgroups gmane.lisp.lispworks.general
Message-ID <010001991a0b4ec9-1738e95d-1e52-4cc2-aa0b-e4871d2d92bb-000000@email.amazonses.com>
If you are calling it from the REPL or otherwise outside of the user interface process, you have to use capi:execute-with-interface or capi:apply-in-pane-process.

John DeSoi, Ph.D.


> On Sep 5, 2025, at 6:58 AM, Didier Verna (as didier at didierverna dot net) <[email protected]> wrote:
> 
> 
>  Hi,
> 
> there are several occasions in which I programmatically change the value
> of a slider by calling (setf (range-slug-start ...) ...): just before
> the interface is display to initialize it, from a button's callback,
> etc.
> 
> In one instance, I switch to the REPL which is in another tab (so the
> interface is hidden), call a function that changes the range slug start
> value, and switch back to the interface. Now, the slider is wrong (see
> attached picture): the blue bar is correct, but the slug remains at the
> old position. This is on Mac with PE. Is this a bug or am I doing it
> wrong ?
> 
> Thank you!
> 
> <Screenshot 2025-09-04 at 09.30.28.png>
> --


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
[email protected]
http://www.lispworks.com/support/lisp-hug.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.