Can't get mdi action to fire
- ftkalcevic
- Offline
- Junior Member
Less
More
- Posts: 33
- Thank you received: 4
07 Oct 2019 08:54 #147319
by ftkalcevic
Can't get mdi action to fire was created by ftkalcevic
I'm trying to get the example mdi action to work, but it never seems to fire.
In my .ini file I have...
[DISPLAY]
EMBED_TAB_NAME=who
EMBED_TAB_COMMAND=gladevcp -c uiWhoAreYou -x {XID} /home/frankt/linuxcnc-dev/configs/apps/gladevcp/mdi-command-example/whoareyou.ui
The panel appears in axis, and I can press the button, but the mdi message doesn't appear. I can manually type the command (MSG,"Hello") in the MDI and that works correctly.
Am I missing something?
I'm using master from a couple of weeks ago.
In my .ini file I have...
[DISPLAY]
EMBED_TAB_NAME=who
EMBED_TAB_COMMAND=gladevcp -c uiWhoAreYou -x {XID} /home/frankt/linuxcnc-dev/configs/apps/gladevcp/mdi-command-example/whoareyou.ui
The panel appears in axis, and I can press the button, but the mdi message doesn't appear. I can manually type the command (MSG,"Hello") in the MDI and that works correctly.
Am I missing something?
I'm using master from a couple of weeks ago.
Please Log in or Create an account to join the conversation.
07 Oct 2019 21:49 #147370
by cmorley
Replied by cmorley on topic Can't get mdi action to fire
can you post the ui file?
Please Log in or Create an account to join the conversation.
- ftkalcevic
- Offline
- Junior Member
Less
More
- Posts: 33
- Thank you received: 4
07 Oct 2019 22:14 #147372
by ftkalcevic
Replied by ftkalcevic on topic Can't get mdi action to fire
It's the stock example in the configs directory. I am running on an old Ubuntu 12.04 Virtual Machine. Is it maybe an old version of a library?
<?xml version="1.0"?>
<interface>
<requires lib="gtk+" version="2.16"/>
<!-- interface-requires gladevcp 0.0 -->
<!-- interface-naming-policy project-wide -->
<object class="GtkWindow" id="window1">
<child>
<object class="GtkButton" id="button1">
<property name="label" translatable="yes">Who are you?</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="related_action">hal_action_mdi1</property>
</object>
</child>
</object>
<object class="EMC_Action_MDI" id="hal_action_mdi1">
<property name="command">(MSG, "Hi, I'm an EMC_Action_MDI")</property>
</object>
</interface>
<?xml version="1.0"?>
<interface>
<requires lib="gtk+" version="2.16"/>
<!-- interface-requires gladevcp 0.0 -->
<!-- interface-naming-policy project-wide -->
<object class="GtkWindow" id="window1">
<child>
<object class="GtkButton" id="button1">
<property name="label" translatable="yes">Who are you?</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="related_action">hal_action_mdi1</property>
</object>
</child>
</object>
<object class="EMC_Action_MDI" id="hal_action_mdi1">
<property name="command">(MSG, "Hi, I'm an EMC_Action_MDI")</property>
</object>
</interface>
Please Log in or Create an account to join the conversation.
Moderators: HansU
Time to create page: 0.081 seconds