Need help
Started by Dex, Aug 23 2012 07:02 AM
11 replies to this topic
#4
Posted 23 August 2012 - 04:12 PM
Right click menus on icons are supported in version 6.2 and onwards. The version of the VM you are on is quite old and version 6 itself has come to the end of its life so I would consider upgrading.
I have attached a PROIV export file (rightclickmenuonicon.vpx) that demonstrates how a right click menu on an icon is implemented. Points to note are
1.) A right click menu is not supported for static icons so the icon must therefore be defined as a dynamic control.
2.) Right click menus and their associated menu options employ Control Bars and Action Controls. These are easy to implement and understand once you read up on them. See topic 500494 in the Version 6 on-line help http://support.proiv...cumentation.htm for more info on Control Bars and Action Controls.
You may have to 'ischk' the attached file as we use Linux - so you may have to byte swap it before you can import it.
I have attached a PROIV export file (rightclickmenuonicon.vpx) that demonstrates how a right click menu on an icon is implemented. Points to note are
1.) A right click menu is not supported for static icons so the icon must therefore be defined as a dynamic control.
2.) Right click menus and their associated menu options employ Control Bars and Action Controls. These are easy to implement and understand once you read up on them. See topic 500494 in the Version 6 on-line help http://support.proiv...cumentation.htm for more info on Control Bars and Action Controls.
You may have to 'ischk' the attached file as we use Linux - so you may have to byte swap it before you can import it.
Attached Files
Things should be made as simple as possible, but not simpler
#5
Posted 23 August 2012 - 09:39 PM
Hi darren,
Yep ver 6 is old and we will move to ver7 soon but i still using this ver to develop for now. I know how to make the right click but the issue is i dont know which icon i've clicked. I am using dynamic icon and the right click itself is shared by 50 icons in a screen. Do i anyhow can locate which icons i have right clicked on?
Thanks in advance
Yep ver 6 is old and we will move to ver7 soon but i still using this ver to develop for now. I know how to make the right click but the issue is i dont know which icon i've clicked. I am using dynamic icon and the right click itself is shared by 50 icons in a screen. Do i anyhow can locate which icons i have right clicked on?
Thanks in advance
#6
Posted 24 August 2012 - 01:31 PM
I now think I understand what you are trying to achieve - that is - what is the tag name of the icon when a right-click is invoked.
I have tried testing various system variables like @FLD and @CURFLDNAME but they both return the system data of the field where focus is currently set which in my example is the holding field that is at the bottom of the screen.
It may be advantageous to provide more information on what you are trying to achieve to see if there is an alternate solution.
I have tried testing various system variables like @FLD and @CURFLDNAME but they both return the system data of the field where focus is currently set which in my example is the holding field that is at the bottom of the screen.
It may be advantageous to provide more information on what you are trying to achieve to see if there is an alternate solution.
Things should be made as simple as possible, but not simpler
#10
Posted 24 August 2012 - 02:04 PM
Another option that I know will definitely work with Right Click Menu's is the PROIV.Tree control, as you can capture the handle id of the node. This may not be the interface you are looking for, but it is a solution. PROIV Developer (VIP) uses this feature in the Structure vie. I have also just tried the right click menu with a List Box and can capture the current value on the right click menu selection event. You are probably aware that List boxes can also display icons in them (but they have to be 16 * 16).
Things should be made as simple as possible, but not simpler
Reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users