hal_spinbutton

More
11 Jan 2012 12:02 #16585 by piasdom
Replied by piasdom on topic Re:hal_spinbutton
is there a way to set a default value to the hal scale bar ?
i set it in value under the 'adjustment property'
but emc2.5 starts at zero.

Thanks

kenneth

Please Log in or Create an account to join the conversation.

More
11 Jan 2012 12:44 #16586 by dab77
Replied by dab77 on topic Re:hal_spinbutton
Hi, There's an issue in glade 3.6.7
you have to edit manually your .ui file to put the line with value, not as first into 'adjustment' but as last.

ciao, Davide

Please Log in or Create an account to join the conversation.

More
11 Jan 2012 12:53 #16588 by piasdom
Replied by piasdom on topic Re:hal_spinbutton
this is what it looks like now. do i add another 'property name' with 'initial value' .
usually stay away from editing by hand. :)

<object class="GtkAdjustment" id="Jog_Scale">
<property name="value">18</property>
<property name="upper">20</property>
<property name="page_increment">0.10000000000000001</property>
</object>

Thanks
kenneth

Please Log in or Create an account to join the conversation.

More
11 Jan 2012 13:05 - 11 Jan 2012 13:07 #16589 by dab77
Replied by dab77 on topic Re:hal_spinbutton
piasdom wrote:

this is what it looks like now. do i add another 'property name' with 'initial value' .
usually stay away from editing by hand. :)

<object class="GtkAdjustment" id="Jog_Scale">
<property name="value">18</property>
<property name="upper">20</property>
<property name="page_increment">0.10000000000000001</property>
</object>

Thanks
kenneth

don't worry, is simple, and it is a well known issue, change your object class to be this:

<object class="GtkAdjustment" id="Jog_Scale">
<property name="upper">20</property>
<property name="page_increment">0.10000000000000001</property>
<property name="value">18</property>
</object>

That's all. You'll resolve this installing a newer glade, but sincerely i tried and found it difficoult. (on 10.04)
If you can do it, please report.
Davide.

EDIT: are you sure that's the correct value for page_increment?
Last edit: 11 Jan 2012 13:07 by dab77.

Please Log in or Create an account to join the conversation.

More
11 Jan 2012 13:09 - 11 Jan 2012 13:16 #16591 by piasdom
Replied by piasdom on topic Re:hal_spinbutton
COOL. yeap, that fix it. THANKS dab77

with a little testing i found it doesn't stay when i restart emc2.5 after
changing the value in glade.
if i go back to the ui and change one of properties' position, it
works again.
Last edit: 11 Jan 2012 13:16 by piasdom.

Please Log in or Create an account to join the conversation.

More
11 Jan 2012 14:40 #16599 by dab77
Replied by dab77 on topic Re:hal_spinbutton
Yes, unfortunately it's like that.

Please Log in or Create an account to join the conversation.

More
11 Jan 2012 16:00 #16602 by piasdom
Replied by piasdom on topic Re:hal_spinbutton
also, i have one MDI button. if i click it (works) then try another button, they
don't work til i home and axis or run the program
so i added another button and the same results. after clicking on
the mdi buttons, i can't move any axis til i run or home an axis

reset is MDI command m123(reset script)
Rapid X0 Y0 Z.2 = g0 x0 y0 z.2



just to let ya'll know

Thanks
kenneth
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: mhaberlerHansU
Time to create page: 0.085 seconds
Powered by Kunena Forum