Jump to content


Photo
- - - - -

Need help


11 replies to this topic

#1 Dex

Dex

    Member

  • Members
  • PipPip
  • 11 posts

Posted 23 August 2012 - 07:02 AM

Hi,
I'm new on proiv, and I'm currently trying to work on screen that need to use right click on icon. How do I know which icon has I right click on?

#2 DARREN

DARREN

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 396 posts
  • Gender:Male
  • Location:Florida,USA

Posted 23 August 2012 - 01:01 PM

Dex

What version of the PROIV VM are you using. e.g. 5.5 or 6.2 or 7.1
Things should be made as simple as possible, but not simpler

#3 Dex

Dex

    Member

  • Members
  • PipPip
  • 11 posts

Posted 23 August 2012 - 01:55 PM

Hi,
I'm using version 6.2.35. Does it has any difference with latest one?
Thanks

Dex

#4 DARREN

DARREN

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 396 posts
  • Gender:Male
  • Location:Florida,USA

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.

Attached Files


Things should be made as simple as possible, but not simpler

#5 Dex

Dex

    Member

  • Members
  • PipPip
  • 11 posts

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

#6 DARREN

DARREN

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 396 posts
  • Gender:Male
  • Location:Florida,USA

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.
Things should be made as simple as possible, but not simpler

#7 Dex

Dex

    Member

  • Members
  • PipPip
  • 11 posts

Posted 24 August 2012 - 01:38 PM

Hi darren,

Im glad u understand the condition. Trying to apply right click to copy or add icon tag to files. But eventually failed, so i try my luck here.
Which version you using, i will update soon so i thought new version could have changed.

Thanks

#8 DARREN

DARREN

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 396 posts
  • Gender:Male
  • Location:Florida,USA

Posted 24 August 2012 - 01:53 PM

We are using 6.2.65.0 (latest v6 maintenance but are just about to move to 7, although we have it all installed and running already).

Have you checked out Aurora yet. Pretty cool stuff.
Things should be made as simple as possible, but not simpler

#9 Dex

Dex

    Member

  • Members
  • PipPip
  • 11 posts

Posted 24 August 2012 - 02:02 PM

Yup... But it is only available in open client ... Sadly

#10 DARREN

DARREN

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 396 posts
  • Gender:Male
  • Location:Florida,USA

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

#11 Dex

Dex

    Member

  • Members
  • PipPip
  • 11 posts

Posted 24 August 2012 - 02:39 PM

Hi darren,

Yes you were right, but i still have to work on the the icon. I guess i will get another solution maybe not from right click.

Many thanks for suggestion and help.

#12 DARREN

DARREN

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 396 posts
  • Gender:Male
  • Location:Florida,USA

Posted 24 August 2012 - 03:45 PM

Could you provide a screen shot of your User Interface (screen) with the Icons that have the right click menus so that I can think about a possible alternate User Interface.
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