Am 25.06.2012 um 18:48 schrieb Viesturs Lācis: > Hello! > > As a part of testing the kinematics module, I need a little vcp panel, > so I finally decided to try gladevcp. > > I want a spinbutton. > And I want to define a default value for the spinbutton. > I am looking here: > http://www.linuxcnc.org/docs/2.5/html/gui/gladevcp.html#gladevcp:HAL_SpinButton > > It says to look at "Scales section", and there I see: > To make a scale useful in Glade, add an Adjustment > (General→Adjustment→New or existing adjustment) and edit the > adjustment object. It defines the default/min/max/increment values. > > So far I have been able to add new adjustments. I do not understand, > where do I set the type of adjustment - if that will be min or max or > default value. None of the options in the "General" tab provide > anything like that. At least I do not see... So I understand that I am > missing something very basic and obvious.
you might have been bitten by a Gtk bug, see FAQ item 6 for a workaround: http://www.linuxcnc.org/docs/2.5/html/gui/gladevcp.html#_faq If you select the spinbutton, in the 'HAL Spinbutton Properties' pane, 'General' tab you have item 2: Adjustment click the button with the three dots it says 'Choose an adjustment in this project' hit 'New', it will be named say adjustments1 then select Objects/adjustments1 this will allow you the min,max and increment values the 'Value' field *should* be the default value, but its subject to the bug mentioned in FAQ item 6 if you get stuck, let me know - I'd add an example configs/gladevcp/by-widget > > I would appreciate any small advice or poke to the right direction. > Thanks! > > -- > Viesturs > > If you can't fix it, you don't own it. > http://www.ifixit.com/Manifesto > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
