Question adding vcp_action (hal_action)
17 Jan 2019 02:00 #124314
by dokwine
Question adding vcp_action (hal_action) was created by dokwine
I've been setting up a glade panel for my system and using the "manual-example.ui" from sim.axis.gladevcp as something to begin with. This has worked well for me, and I have been able to edit the mdi commands already in the manual-example.ui to target my existing o word routines. However, when I add a frame to the panel with new vcp_action entries, they are greyed-out/inactive; looking like the existing MDI buttons would if the machine hadn't been enabled/homed.
I've edited the new vcp_actions to look as similar as possible to the existing actions. They've been added at the top level in the glade editor (which I read somewhere is a good idea). I expect I'm missing something simple here but haven't found anything in the docs or forum.
I'm running the stretch live dvd with glade 3.8.6.
Thanks,
Ron
I've edited the new vcp_actions to look as similar as possible to the existing actions. They've been added at the top level in the glade editor (which I read somewhere is a good idea). I expect I'm missing something simple here but haven't found anything in the docs or forum.
I'm running the stretch live dvd with glade 3.8.6.
Thanks,
Ron
Please Log in or Create an account to join the conversation.
17 Jan 2019 04:35 #124321
by cmorley
Replied by cmorley on topic Question adding vcp_action (hal_action)
Can you post your GLADE file?
Chris M
Chris M
Please Log in or Create an account to join the conversation.
17 Jan 2019 05:24 #124326
by dokwine
Replied by dokwine on topic Question adding vcp_action (hal_action)
Here's the .ui file I'm using. Let me know if anything else would help.
You will see attempts with both hal_button and hal_toggle. I believe that hal_button is the behavior I need here.
Im pretty convinced I did something incorrectly when I added the vcp_action.
Thanks for looking,
ron
You will see attempts with both hal_button and hal_toggle. I believe that hal_button is the behavior I need here.
Im pretty convinced I did something incorrectly when I added the vcp_action.
Thanks for looking,
ron
Please Log in or Create an account to join the conversation.
17 Jan 2019 23:02 #124379
by dokwine
Replied by dokwine on topic Question adding vcp_action (hal_action)
so...
Thanks,
Ron
- I've convinced myself that there is no discernible difference between the xml generated by Glade for my new vbox frame/buttons and the existing frames/buttons XML in the example
- I discovered the section on containers in the docs and noted that the HBox used in the example is now deprecated.
- I tried using a HAL_sensitive_table instead (as a new row of commands after those in the example) - still no joy. The new table is still grayed out after everything is on, homed and "sensitive"
- I may be missing something wrt the HAL pin used to sensitize the table. I didn't find anything explicit in the docs but presumed(!) that since gladevcp.commands and gladevcp.settings worked for the other fields they would just work here, but no.
Thanks,
Ron
Please Log in or Create an account to join the conversation.
17 Jan 2019 23:08 #124380
by cmorley
Replied by cmorley on topic Question adding vcp_action (hal_action)
The HAL Sensitive HBox or HAL sensitive table is used to set the widgets inside it 'sensitive' or not by setting a HAL pin true or false.
State sensitive widget does the same based or the controller state rather then a hal pin.
If you just need a table widget to organize your widgets then use the standard table widget. You don't have to use only HAL widgets in gladevcp.
Chris M
State sensitive widget does the same based or the controller state rather then a hal pin.
If you just need a table widget to organize your widgets then use the standard table widget. You don't have to use only HAL widgets in gladevcp.
Chris M
Please Log in or Create an account to join the conversation.
18 Jan 2019 00:55 #124381
by dokwine
Replied by dokwine on topic Question adding vcp_action (hal_action)
Thanks, I understand. I can go back and try a standard widget, but the sensitive widget is the right thing. Is there documentation saying what Hal pins should be set for a hal_sensitve box? Can I control this? I didn’t see any appropriate fields for defining a Hal bit for a table.
Please Log in or Create an account to join the conversation.
18 Jan 2019 01:06 #124382
by cmorley
Replied by cmorley on topic Question adding vcp_action (hal_action)
there will be a HAL pin named something like this:
[gladevcp basename].[widget name]
Some maybe this command would set it sensitive:
setp gladevcp.hal_table true
Chris M
[gladevcp basename].[widget name]
Some maybe this command would set it sensitive:
setp gladevcp.hal_table true
Chris M
The following user(s) said Thank You: dokwine
Please Log in or Create an account to join the conversation.
18 Jan 2019 01:14 #124383
by dokwine
Replied by dokwine on topic Question adding vcp_action (hal_action)
Great! I’ll poke around with that for a bit
Please Log in or Create an account to join the conversation.
18 Jan 2019 22:58 #124421
by dokwine
Replied by dokwine on topic Question adding vcp_action (hal_action)
That solved the rest of my problems (for now - thanks!
FWIW I had one additional issue (I think) where I was inserting the HAL_table directly into a new row in the window object, rather than adding a frame to the new row 1st and then inserting the HAL_table into the frame. The frame-name provided the handle for the HAL_pin to make it sensitive.
BTW, do you happen to know if there is a difference between a HAL_button and a Gtkbutton in Glade? the example seems to use Gtk. I'm using HAL right now and it seems fine.
Thanks again,
Ron
FWIW I had one additional issue (I think) where I was inserting the HAL_table directly into a new row in the window object, rather than adding a frame to the new row 1st and then inserting the HAL_table into the frame. The frame-name provided the handle for the HAL_pin to make it sensitive.
BTW, do you happen to know if there is a difference between a HAL_button and a Gtkbutton in Glade? the example seems to use Gtk. I'm using HAL right now and it seems fine.
Thanks again,
Ron
Please Log in or Create an account to join the conversation.
18 Jan 2019 23:41 #124422
by cmorley
Replied by cmorley on topic Question adding vcp_action (hal_action)
HAL_button has a HAL pin as an output.
Otherwise it is a gtk button (it's the base widget for HAL_button)
Chris M
Otherwise it is a gtk button (it's the base widget for HAL_button)
Chris M
The following user(s) said Thank You: dokwine
Please Log in or Create an account to join the conversation.
Moderators: HansU
Time to create page: 0.122 seconds