how to create a link Button help me please !!

More
11 Apr 2011 14:00 - 11 Apr 2011 14:01 #8763 by piasdom
i found this <!-- -->
but i used it before and it didn't work. now it does :) thanks again !
it may have to be on a line by itself. i had other wording when i tried before.
Last edit: 11 Apr 2011 14:01 by piasdom.

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

More
11 Apr 2011 14:58 - 11 Apr 2011 15:00 #8765 by piasdom
now this.i have the <number> working, but it shows output of the
<halpin>, but not the name<text>. from what i see in the docs, i'll have to
put another frame above each <number> ?

<number>
<relief>RIDGE</relief>
<halpin>"y-offset"</halpin>
<text>"Offset of Y"</text>
<font>('Helvetica',12)</font>
<format>"4.3f"</format>
</number>

it doesn't like this :)
<label><text>"Offset of Y"</text></label>
Last edit: 11 Apr 2011 15:00 by piasdom.

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

More
11 Apr 2011 15:14 #8766 by piasdom
i now have this. but i like to know if i can get the names next to the number.

Attachments:

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

  • andypugh
  • andypugh's Avatar
  • Away
  • Moderator
  • Moderator
More
11 Apr 2011 15:40 #8767 by andypugh
It is possible, using tables, hboxes, vboxes etc.

Look at the containers section here:
linuxcnc.org/docs/html/hal_pyvcp.html

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

More
11 Apr 2011 16:46 - 11 Apr 2011 16:59 #8770 by piasdom
i got this now. but i can't get it to show output. shows <text> in a border. or
tables don't have output ? [

<table flexible_rows="[3]">
<tablesticky sticky="new"/>
<tablerow/>
<label>
<text>" X Offset "</text>
<relief>RIDGE</relief>
<bd>6</bd>
<width>8</width>
<halpin>"x-offset"</halpin>
</label>

<tablerow/>
<label>
<text>" Y Offset "</text>
<relief>RIDGE</relief>
<bd>6</bd>
<width>8</width>
<halpin>"y-offset"</halpin>
</label>

<tablerow/>
<label>
<text>" Z Offset "</text>
<relief>RIDGE</relief>
<bd>6</bd>
<width>8</width>
<halpin>"z-offset"</halpin>
</label>
</table>

Attachments:
Last edit: 11 Apr 2011 16:59 by piasdom.

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

  • andypugh
  • andypugh's Avatar
  • Away
  • Moderator
  • Moderator
More
11 Apr 2011 17:19 #8771 by andypugh
No, tables and text don't have output. You need to put buttons and controls in the table.

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

More
11 Apr 2011 17:29 - 12 Apr 2011 12:03 #8772 by piasdom
thanks andypugh.
i ended up with this. shows me what i want, so i'm happy. thanks again for all your help.



attached is my xml, in case someone need examples
Attachments:
Last edit: 12 Apr 2011 12:03 by piasdom.

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

More
12 Apr 2011 12:12 - 12 Apr 2011 12:13 #8799 by piasdom
ok, i've been looking for the pin to control abort.(and jog), tried a bunch of aborts, but they were either
float or didn't do anything. the doc has an abort button, but not the link. i'm trying to make
an abort button on the right. i;'m thinking i need to use "out" to control abort. so that's what
i've been looking for.please tell me if i'm going in the wrong direction. Thanks


attached is my xml, in case someone needs examples.i had to name it ini to get it in here

File Attachment:

File Name: MyVCP.ini
File Size:2 KB
Attachments:
Last edit: 12 Apr 2011 12:13 by piasdom.

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

  • andypugh
  • andypugh's Avatar
  • Away
  • Moderator
  • Moderator
More
12 Apr 2011 15:04 #8804 by andypugh
piasdom wrote:

ok, i've been looking for the pin to control abort.(and jog), tried a bunch of aborts, but they were either
float or didn't do anything.

HAL has functions to swap data types between bit, float, u32 and s32. However that shouldn't be necessary.

the doc has an abort button, but not the link. i'm trying to make
an abort button on the right. i;'m thinking i need to use "out" to control abort. so that's what
i've been looking for.please tell me if i'm going in the wrong direction.

Any pin that you want to change the value of has to be an "IN". Any pin you want to use the value of has to be an "OUT".

you probably want
net abort pyvcp.abort-button => halui.abort

That does assume that you have halui loaded.

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

More
12 Apr 2011 15:08 - 12 Apr 2011 15:21 #8805 by piasdom
aaawwwwwwwwwwwwwa
Thanks. i thought pyvcp.??? had to be in that position always.
cool

tried that and get error in axis.
can't do that(EMC_TRAJ_SET)TELEOP_ENABLE)in
auto mode with the interpreter idle.

i thought this aborted a running program. when would this be used?
what's like pressing the escape button on the keyboard ?
Last edit: 12 Apr 2011 15:21 by piasdom.

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

Time to create page: 0.119 seconds
Powered by Kunena Forum