2/23/2010 4:33 PM | |
Joined: 9/18/2006 Last visit: 11/14/2024 Posts: 593 Rating: (64) |
Hi. How to make so? |
Last edited by: O_Moderator at: 4/22/2010 8:41 PMpicture transferred to attachment |
|
2/25/2010 3:48 PM | |
Posts: 54 Rating: (8) |
Hi pfuser, There is no attribute or property defined (could not find something in the documentation) to get the pressed state. But your use case is very interesting. So I used a lot of expressions within the softkey tag and found a solution to indicate an active or inactive status. You need bitmaps for that. If we take a look at the manual machine there are bitmaps used. And that is what you can use at the moment. For the softkey tag is an attribute defined that assigns a bitmap to a softkey. This bitmap is left aligned. (I do not know how to change it.) The bitmap on the softkey reduces the number of text characters depending on the bitmap width. The text is moved in direction of the right border. Disadvantage: You need separate menus to control it. No conditional instructions (if ) can be used to changed the bitmap assignment within the softkey tag. Here are the Instructions: <menu name = "main"> <open_form name = "main dialogue" /> <softkey POSITION="1" picture="f:\appl\red_led_off.bmp"> <caption>Func.%nOff</caption> <navigation>main_pressed</navigation> </softkey> </menu> <menu name = "main_pressed"> <open_form name = "main dialogue" /> <softkey POSITION="1" picture="f:\appl\red_led_on.bmp"> <caption>Func.%nOn</caption> <navigation>main</navigation> </softkey> </menu> bitmaps enclosed Attachmentbmp.zip (185 Downloads) |
This contribution was helpful to1 thankful Users |
Follow us on