> On 21 Nov 2019, at 9:55 am, Gene Heskett <[email protected]> wrote:
>
> On Sunday 17 November 2019 06:02:06 Gene Heskett wrote:
>
>> On Sunday 17 November 2019 05:18:14 andy pugh wrote:
>>> On Sat, 16 Nov 2019 at 21:39, Gene Heskett <[email protected]>
>>
> [...]
>> What I have that looks like its working, is a timedelay, turned on and
>> off as an oscillator by an xor2 in the out to in feedback path, and a
>> pair of spinboxes to set the on and off times independently from
>> pyvcp. Biggest problem is the display spinbox, no way to control its
>> width and its HUGE.
>
> Inch and a half of empty space in the middle,
Try putting the spin boxes in a hbox, like:
<pyvcp>
<labelframe text= "mist motor speed">
<vbox>
<hbox>
<spinbox>
<width>”4"</width>
<halpin>"mist-on-adj"</halpin>
<min_>0.00</min_>
<max_>1.00</max_>
<initval>0.1</initval>
<resolution>0.01</resolution>
<format>"1.2f"</format>
<font>("Helvitica",12)</font>
<param_pin>0</param_pin>
</spinbox>
</hbox>
<hbox>
<spinbox>
<width>”4"</width>
<halpin>"mist-off-adj"</halpin>
<min_>0.00</min_>
<max_>0.50</max_>
<initval>5.0</initval>
<resolution>0.01</resolution>
<format>"1.2f"</format>
<font>("Helvitica",12)</font>
<param_pin>0</param_pin>
</spinbox>
</hbox>
</vbox>
</labelframe>
</pyvcp>
>>
>> Looks like this in the .hal file:
>> # output for coolant-mist air ctrl - WORKS! Valve coil gets HOT
>> net mist-on <= iocontrol.0.coolant-mist =>
>> hm2_5i25.0.7i76.0.0.output-01 # turns on tool mister air
>> net mist-on => xor2.1.in0 # turn on pump motor for mist
>> net osc-fdbck <= xor2.1.out => timedelay.3.in
>> setp hm2_5i25.0.gpio.024.is_output true
>> net mister-out <= timedelay.3.out => xor2.1.in1
>> net mister-out => hm2_5i25.0.gpio.024.out # to pump pwr control>
>>
>> Looks like this in postgui.hal:
>> # for mister pump motor speed ctrl
>> net mister-spdon <= pyvcp.mist-on-adj => timedelay.3.off-delay
>> net mister-spdoff <= pyvcp.mist-off-adj => timedelay.3.on-delay
>>
>> And looks like this in postgui.xml:
>> <labelframe text= "mist motor speed">
>> <vbox>
>> <spinbox>
>> <width>"10"</width>
>> <halpin>"mist-on-adj"</halpin>
>> <min_>0.00</min_>
>> <max_>1.00</max_>
>> <initval>0.1</initval>
>> <resolution>0.01</resolution>
>> <format>"1.2f"</format>
>> <font>("Helvitica",12)</font>
>> <param_pin>0</param_pin>
>> </spinbox>
>> <spinbox>
>> <width>"10"</width>
>> <halpin>"mist-off-adj"</halpin>
>> <min_>0.00</min_>
>> <max_>0.50</max_>
>> <initval>5.0</initval>
>> <resolution>0.01</resolution>
>> <format>"1.2f"</format>
>> <font>("Helvitica",12)</font>
>> <param_pin>0</param_pin>
>> </spinbox>
>> </vbox>
>> </labelframe>
>> </pyvcp>
>
> I've found the gtkspinbox.h but it has zero references to the size. Now
> what can we do? Looking at the rest of the includes in that same
> directory I can see this is going to be a difficult addition if even
> possible. Ideally for me, it should be perhaps no wider than the space
> the format occupies plus space for the up/down arrows. But I've yet to
> find the format interpreter, it doesn't appear to fall out of a grep.
>
> And the rest is swahili to me. Not to mention I doubt if its any better
> for you folks as its 20 year old code! Written between 1997 and 2000.
>
> Does gtk even have a mailing list anymore?
>
>
> Cheers, Gene Heskett
> --
> "There are four boxes to be used in defense of liberty:
> soap, ballot, jury, and ammo. Please use in that order."
> -Ed Howdershelt (Author)
> If we desire respect for the law, we must first make the law respectable.
> - Louis D. Brandeis
> Genes Web page <http://geneslinuxbox.net:6309/gene>
>
>
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users