Csound Csound-dev Csound-tekno Search About

[Csnd] Re: Re: FLTK Widgets Not Working (Windows)

Date2008-06-05 21:00
Fromvictor
Subject[Csnd] Re: Re: FLTK Widgets Not Working (Windows)
There is an outstanding issue with FLTK that seems to prevent
on Windows to run the widgets from a FLTK host (ie. Csound5GUI)
at least on my windows build.
It also seems to prevent the virtual midi keyboard to work with
widgets. The FLTK widget code is so horrid that I feel relatively
unmotivated to do something about it.

However, widgets work fine from the command-line, on their
own.

Victor


----- Original Message ----- 
From: "Michael Gogins" 
To: 
Sent: Thursday, June 05, 2008 8:20 PM
Subject: [Csnd] Re: FLTK Widgets Not Working (Windows)


>I myself do not use the FLTK opcodes. I prefer to write Python applications 
>that communicate with Csound through the Python Csound API.
>
> However, when I HAVE on occasion used the FLTK opcodes, I only recall them 
> working when I used the command-line version of Csound.
>
> Hope this helps,
> Mike
>
> -----Original Message-----
>>From: Jim Aikin 
>>Sent: Jun 5, 2008 3:07 PM
>>To: csound@lists.bath.ac.uk
>>Subject: [Csnd]  FLTK Widgets Not Working (Windows)
>>
>>
>>When I load the second block of code given in the manual's "FLTK Widgets 
>>and
>>GUI controllers" page (the one that instantiates two panels and puts a
>>slider in each of them) and then run it from Csound5gui in Windows, the 
>>FLTK
>>windows are drawn to the screen, but the client area isn't. The client 
>>area
>>still holds whatever was on the screen before the window was drawn. There 
>>is
>>no visible slider.
>>
>>I've tried this in two computers. One has an openGL-compatible graphics
>>card, the other doesn't. The performance is not identical; without openGL,
>>there are some additional redraw problems when a window is dragged. But 
>>even
>>with openGL, the code simply doesn't work as given.
>>
>>To save everyone the trouble of looking it up, the code is given below. Is
>>there something easily fixable here? Thanks!
>>
>>--Jim Aikin
>>
>>;*************************************************
>>
>>
>>
>>; Select audio/midi flags here according to platform
>>; Audio out   Audio in    No messages
>>-odac           -iadc    ; -d     ;;;RT audio I/O
>>; For Non-realtime ouput leave only the line below:
>>; -o linseg.wav -W ;;; for file output any platform
>>
>>
>>;*******************************
>>sr=48000
>>kr=480
>>ksmps=100
>>nchnls=1
>>
>>        FLpanel         "Panel1",450,550,100,100 ;***** start of container
>>gk1,iha FLslider        "FLslider 1", 500, 1000, 0 ,1, -1, 300,15, 20,50
>>        FLpanelEnd      ;***** end of container
>>
>>        FLpanel         "Panel2",450,550,100,100 ;***** start of container
>>gk2,ihb FLslider        "FLslider 2", 100, 200, 0 ,1, -1, 300,15, 20,50
>>        FLpanelEnd      ;***** end of container
>>
>>        FLrun           ;***** runs the widget thread, it is always
>>required!
>>
>>instr 1
>>; gk1 and gk2 variables that contain the output of valuator
>>; widgets previously defined, can be used inside any instrument
>>printk2 gk1
>>printk2 gk2   ;print the values of the valuators whenever they change
>>endin
>>;*******************************
>>
>>
>>f 0 3600 ;dummy table for realtime input
>>e
>>
>>
>>
>>
>>-- 
>>View this message in context: 
>>http://www.nabble.com/FLTK-Widgets-Not-Working-%28Windows%29-tp17677385p17677385.html
>>Sent from the Csound - General mailing list archive at Nabble.com.
>>
>>
>>
>>Send bugs reports to this list.
>>To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
>>csound"
>
>
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound" 


Date2008-06-05 21:05
From"Matt J. Ingalls"
Subject[Csnd] Re: Re: Re: FLTK Widgets Not Working (Windows)
same problem on mac host (when running csound process in a thread other 
than the application thread)

On Thu, 5 Jun 2008, victor wrote:

> There is an outstanding issue with FLTK that seems to prevent
> on Windows to run the widgets from a FLTK host (ie. Csound5GUI)
> at least on my windows build.
> It also seems to prevent the virtual midi keyboard to work with
> widgets. The FLTK widget code is so horrid that I feel relatively
> unmotivated to do something about it.
>
> However, widgets work fine from the command-line, on their
> own.
>
> Victor
>
>
> ----- Original Message ----- From: "Michael Gogins" 
> To: 
> Sent: Thursday, June 05, 2008 8:20 PM
> Subject: [Csnd] Re: FLTK Widgets Not Working (Windows)
>
>
>> I myself do not use the FLTK opcodes. I prefer to write Python 
>> applications that communicate with Csound through the Python Csound API.
>> 
>> However, when I HAVE on occasion used the FLTK opcodes, I only recall them 
>> working when I used the command-line version of Csound.
>> 
>> Hope this helps,
>> Mike
>> 
>> -----Original Message-----
>>> From: Jim Aikin 
>>> Sent: Jun 5, 2008 3:07 PM
>>> To: csound@lists.bath.ac.uk
>>> Subject: [Csnd]  FLTK Widgets Not Working (Windows)
>>> 
>>> 
>>> When I load the second block of code given in the manual's "FLTK Widgets 
>>> and
>>> GUI controllers" page (the one that instantiates two panels and puts a
>>> slider in each of them) and then run it from Csound5gui in Windows, the 
>>> FLTK
>>> windows are drawn to the screen, but the client area isn't. The client 
>>> area
>>> still holds whatever was on the screen before the window was drawn. 
>>> There is
>>> no visible slider.
>>> 
>>> I've tried this in two computers. One has an openGL-compatible graphics
>>> card, the other doesn't. The performance is not identical; without 
>>> openGL,
>>> there are some additional redraw problems when a window is dragged. But 
>>> even
>>> with openGL, the code simply doesn't work as given.
>>> 
>>> To save everyone the trouble of looking it up, the code is given below. 
>>> Is
>>> there something easily fixable here? Thanks!
>>> 
>>> --Jim Aikin
>>> 
>>> ;*************************************************
>>> 
>>> 
>>> 
>>> ; Select audio/midi flags here according to platform
>>> ; Audio out   Audio in    No messages
>>> -odac           -iadc    ; -d     ;;;RT audio I/O
>>> ; For Non-realtime ouput leave only the line below:
>>> ; -o linseg.wav -W ;;; for file output any platform
>>> 
>>> 
>>> ;*******************************
>>> sr=48000
>>> kr=480
>>> ksmps=100
>>> nchnls=1
>>> 
>>>        FLpanel         "Panel1",450,550,100,100 ;***** start of 
>>> container
>>> gk1,iha FLslider        "FLslider 1", 500, 1000, 0 ,1, -1, 300,15, 20,50
>>>        FLpanelEnd      ;***** end of container
>>> 
>>>        FLpanel         "Panel2",450,550,100,100 ;***** start of 
>>> container
>>> gk2,ihb FLslider        "FLslider 2", 100, 200, 0 ,1, -1, 300,15, 20,50
>>>        FLpanelEnd      ;***** end of container
>>> 
>>>        FLrun           ;***** runs the widget thread, it is always
>>> required!
>>> 
>>> instr 1
>>> ; gk1 and gk2 variables that contain the output of valuator
>>> ; widgets previously defined, can be used inside any instrument
>>> printk2 gk1
>>> printk2 gk2   ;print the values of the valuators whenever they change
>>> endin
>>> ;*******************************
>>> 
>>> 
>>> f 0 3600 ;dummy table for realtime input
>>> e
>>> 
>>> 
>>> 
>>> 
>>> -- 
>>> View this message in context: 
>>> http://www.nabble.com/FLTK-Widgets-Not-Working-%28Windows%29-tp17677385p17677385.html
>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>> 
>>> 
>>> 
>>> Send bugs reports to this list.
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
>>> csound"
>> 
>> 
>> 
>> 
>> 
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
>> csound" 
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound"
>