Author Topic: popup menu  (Read 3959 times)

jakegol

  • Newbie
  • *
  • Posts: 9
popup menu
« on: January 18, 2011, 12:50:31 AM »
sorry, but this question might be stupid to you. im new to this. i usually use vb6. how do you choose an event when an option from the popup menu is selected?

eg:

Select one...
>Say
>Display
>Say the Display.


any help would be greatly appreciated.
« Last Edit: January 01, 1970, 12:00:00 AM by Guest »

Malkom

  • Administrator
  • Newbie
  • *****
  • Posts: 415
  • Here to help you
Re: popup menu
« Reply #1 on: January 18, 2011, 10:14:11 AM »
Quote from: "jakegol"
sorry, but this question might be stupid to you. im new to this. i usually use vb6. how do you choose an event when an option from the popup menu is selected?

eg:

Select one...
>Say
>Display
>Say the Display.


any help would be greatly appreciated.

Actually its a very good question because HyperNext is quite different in many respects to VB.

Here is an answer in a previous post:-

viewtopic.php?f=4&t=74&p=174&hilit=popup#p174

Basically, once your popup has been initialized - add your event script inside the popup's script and check what was triggered on the popup's list

Code: [Select]
@ for popup 3
local idx,itmtext

Put PopupIndexFN(3) into idx

Put PopupItemFN(3) into itmtext

if idx=1 then

endif

By the way, you have to tell the popup which popupmenu id to use as HyperNext currently does not have the me qualifier

Note, you can also have local procedures inside the popup's script to handle things
« Last Edit: January 01, 1970, 12:00:00 AM by Guest »
I am sorry but I do not have time to answer questions by PM or email.
If you post your questions in this forum then it might help others.

 

anything