Skip to main content

[archive] Right mouse click in paged list-box

  • May 10, 2006
  • 29 replies
  • 0 views

[Migrated content. Thread originally posted on 09 May 2006]

How can I use the right mouse button in a paged list-box.
I don't get an event. I also tried "MOUSE-FLAGS" but this does not work.
There should be an easy answer to this (I hope).
I want to do this to have a popup-menu after I clicked the right mouse button.

29 replies

[Migrated content. Thread originally posted on 09 May 2006]

How can I use the right mouse button in a paged list-box.
I don't get an event. I also tried "MOUSE-FLAGS" but this does not work.
There should be an easy answer to this (I hope).
I want to do this to have a popup-menu after I clicked the right mouse button.
Have you defined the listbox similar to this:

Screen1-Lb-1, List-Box,
COL 33.90, LINE 10.50, LINES 15.00 CELLS,
SIZE 14.20 CELLS,
POP-UP MENU IS Screen1-Mn-1-Handle,

Procedure Division.

CALL "W$MENU" USING Wmenu-New-Popup GIVING Menu-Handle
IF Menu-Handle = ZERO
GO TO Acu-Screen1-Mn-1-Exit
END-IF
CALL "W$MENU" USING WMENU-ADD, Menu-Handle, 0, 0, "first", 1000

MOVE Menu-Handle TO Screen1-Mn-1-Handle

display screen-w-list-box

[Migrated content. Thread originally posted on 09 May 2006]

How can I use the right mouse button in a paged list-box.
I don't get an event. I also tried "MOUSE-FLAGS" but this does not work.
There should be an easy answer to this (I hope).
I want to do this to have a popup-menu after I clicked the right mouse button.
Yes thanks,

I didn't put "POP-UP MENU IS Screen1-Mn-1-Handle"
in my list-box.
I thought I had to create the menu after I clicked the right mouse button, but with this it works.

Thanks,

[Migrated content. Thread originally posted on 09 May 2006]

How can I use the right mouse button in a paged list-box.
I don't get an event. I also tried "MOUSE-FLAGS" but this does not work.
There should be an easy answer to this (I hope).
I want to do this to have a popup-menu after I clicked the right mouse button.
As a secondary issue with right mouse click on list box - does anyone know hoe to ascertain upon which line in the list box the mouse is pointing to? I would like to make sure that the line pointed to when the right click is made can be selected before the menu box comes up.

Keith

[Migrated content. Thread originally posted on 09 May 2006]

How can I use the right mouse button in a paged list-box.
I don't get an event. I also tried "MOUSE-FLAGS" but this does not work.
There should be an easy answer to this (I hope).
I want to do this to have a popup-menu after I clicked the right mouse button.
Does anybody know an answer to Keith's question?
The line needs to be selected first before the menu appears.

[Migrated content. Thread originally posted on 09 May 2006]

How can I use the right mouse button in a paged list-box.
I don't get an event. I also tried "MOUSE-FLAGS" but this does not work.
There should be an easy answer to this (I hope).
I want to do this to have a popup-menu after I clicked the right mouse button.
You'll need to put an event procedure on the list box and then use inquire to get theline in the list box:

inquire Form1-Lb-1 selection-index my-var

[Migrated content. Thread originally posted on 09 May 2006]

How can I use the right mouse button in a paged list-box.
I don't get an event. I also tried "MOUSE-FLAGS" but this does not work.
There should be an easy answer to this (I hope).
I want to do this to have a popup-menu after I clicked the right mouse button.
I can't seem to get it to work.
Could you send me a sample program?

thx
Andre

[Migrated content. Thread originally posted on 09 May 2006]

How can I use the right mouse button in a paged list-box.
I don't get an event. I also tried "MOUSE-FLAGS" but this does not work.
There should be an easy answer to this (I hope).
I want to do this to have a popup-menu after I clicked the right mouse button.
Attaching sample. After getting the selection I did not do anything to the event, such as stop the menu from showing.

[Migrated content. Thread originally posted on 09 May 2006]

How can I use the right mouse button in a paged list-box.
I don't get an event. I also tried "MOUSE-FLAGS" but this does not work.
There should be an easy answer to this (I hope).
I want to do this to have a popup-menu after I clicked the right mouse button.
Thanks for the sample, but I still want the line selected before the menu appears. So when I'm at line 1 and I press the right-mouse button at line 3 I want line 3 to be selected first and then see the menu.

[Migrated content. Thread originally posted on 09 May 2006]

How can I use the right mouse button in a paged list-box.
I don't get an event. I also tried "MOUSE-FLAGS" but this does not work.
There should be an easy answer to this (I hope).
I want to do this to have a popup-menu after I clicked the right mouse button.
When the focus goes to the list box you'll see that "Item 1" has focus but the color has not changed, use the arrow keys to select an item in the list box, right click, you;ll see that the event code is processed and then the menu appears.

[Migrated content. Thread originally posted on 09 May 2006]

How can I use the right mouse button in a paged list-box.
I don't get an event. I also tried "MOUSE-FLAGS" but this does not work.
There should be an easy answer to this (I hope).
I want to do this to have a popup-menu after I clicked the right mouse button.
I made a change to the program to show hopw the event can be used. If you right click on the first item in the list the menu will not appear. The menu will appear for Item2 and Item3

[Migrated content. Thread originally posted on 09 May 2006]

How can I use the right mouse button in a paged list-box.
I don't get an event. I also tried "MOUSE-FLAGS" but this does not work.
There should be an easy answer to this (I hope).
I want to do this to have a popup-menu after I clicked the right mouse button.
Thanks for your effort but it still doesn't work for me.
I want the same thing that Keith asked.
The line in the list-box must be selected first after I clicked the right-mouse button and after that the menu must appear.
The problem is that the "selection-index" does not change in the event procedure after the right-mouse click
I think it cannot be done.

Thanks anyway
Andre

[Migrated content. Thread originally posted on 09 May 2006]

How can I use the right mouse button in a paged list-box.
I don't get an event. I also tried "MOUSE-FLAGS" but this does not work.
There should be an easy answer to this (I hope).
I want to do this to have a popup-menu after I clicked the right mouse button.
I have not been able to get this to work wither - very frsutrating
Keith

[Migrated content. Thread originally posted on 09 May 2006]

How can I use the right mouse button in a paged list-box.
I don't get an event. I also tried "MOUSE-FLAGS" but this does not work.
There should be an easy answer to this (I hope).
I want to do this to have a popup-menu after I clicked the right mouse button.
I just used a grid and then it works fine.
Looks better also.

Andre

[Migrated content. Thread originally posted on 09 May 2006]

How can I use the right mouse button in a paged list-box.
I don't get an event. I also tried "MOUSE-FLAGS" but this does not work.
There should be an easy answer to this (I hope).
I want to do this to have a popup-menu after I clicked the right mouse button.
Andre

I have had to revert to grids to get over these limitations on list boxes, in which I also incude the unreadbale format you get when you disable a list box - the line selected is unreadable and there seems to be no way to alter it. It is a shame as grids are more complex to program, list boxes are really easy and so I use them whenever I do not need to have pop-ups and so-on.

Grids are also frustrating though, can't use date entry fields in a cell, can't format entry properties sensibly for accounting value purposes etc., can't use radio or check box controls in a cell. I must admit I cannot see why the ability to use these inbuilt controls in a grid cell is not made available.

Keith

[Migrated content. Thread originally posted on 09 May 2006]

How can I use the right mouse button in a paged list-box.
I don't get an event. I also tried "MOUSE-FLAGS" but this does not work.
There should be an easy answer to this (I hope).
I want to do this to have a popup-menu after I clicked the right mouse button.
Andre

I have had to revert to grids to get over these limitations on list boxes, in which I also incude the unreadbale format you get when you disable a list box - the line selected is unreadable and there seems to be no way to alter it. It is a shame as grids are more complex to program, list boxes are really easy and so I use them whenever I do not need to have pop-ups and so-on.

Grids are also frustrating though, can't use date entry fields in a cell, can't format entry properties sensibly for accounting value purposes etc., can't use radio or check box controls in a cell. I must admit I cannot see why the ability to use these inbuilt controls in a grid cell is not made available.

Keith

[Migrated content. Thread originally posted on 09 May 2006]

How can I use the right mouse button in a paged list-box.
I don't get an event. I also tried "MOUSE-FLAGS" but this does not work.
There should be an easy answer to this (I hope).
I want to do this to have a popup-menu after I clicked the right mouse button.
Andre

I have had to revert to grids to get over these limitations on list boxes, in which I also incude the unreadbale format you get when you disable a list box - the line selected is unreadable and there seems to be no way to alter it. It is a shame as grids are more complex to program, list boxes are really easy and so I use them whenever I do not need to have pop-ups and so-on.

Grids are also frustrating though, can't use date entry fields in a cell, can't format entry properties sensibly for accounting value purposes etc., can't use radio or check box controls in a cell. I must admit I cannot see why the ability to use these inbuilt controls in a grid cell is not made available.

Keith

[Migrated content. Thread originally posted on 09 May 2006]

How can I use the right mouse button in a paged list-box.
I don't get an event. I also tried "MOUSE-FLAGS" but this does not work.
There should be an easy answer to this (I hope).
I want to do this to have a popup-menu after I clicked the right mouse button.
Have you considered using an ActiveX listbox instead?

On the installation CD of ACUCOBOL-GT version 6.2 and later, you will find the control Microsoft ListView, may be it gives what you want?

[Migrated content. Thread originally posted on 09 May 2006]

How can I use the right mouse button in a paged list-box.
I don't get an event. I also tried "MOUSE-FLAGS" but this does not work.
There should be an easy answer to this (I hope).
I want to do this to have a popup-menu after I clicked the right mouse button.
Have you considered using an ActiveX listbox instead?

On the installation CD of ACUCOBOL-GT version 6.2 and later, you will find the control Microsoft ListView, may be it gives what you want?

[Migrated content. Thread originally posted on 09 May 2006]

How can I use the right mouse button in a paged list-box.
I don't get an event. I also tried "MOUSE-FLAGS" but this does not work.
There should be an easy answer to this (I hope).
I want to do this to have a popup-menu after I clicked the right mouse button.
Have you considered using an ActiveX listbox instead?

On the installation CD of ACUCOBOL-GT version 6.2 and later, you will find the control Microsoft ListView, may be it gives what you want?

[Migrated content. Thread originally posted on 09 May 2006]

How can I use the right mouse button in a paged list-box.
I don't get an event. I also tried "MOUSE-FLAGS" but this does not work.
There should be an easy answer to this (I hope).
I want to do this to have a popup-menu after I clicked the right mouse button.
I have not yet used any active-x with ACU COBOL.

Is there a sample program I can look at that uses this MS Listview? If so then I will try it out.

Regards
Keith

[Migrated content. Thread originally posted on 09 May 2006]

How can I use the right mouse button in a paged list-box.
I don't get an event. I also tried "MOUSE-FLAGS" but this does not work.
There should be an easy answer to this (I hope).
I want to do this to have a popup-menu after I clicked the right mouse button.
I have not yet used any active-x with ACU COBOL.

Is there a sample program I can look at that uses this MS Listview? If so then I will try it out.

Regards
Keith

[Migrated content. Thread originally posted on 09 May 2006]

How can I use the right mouse button in a paged list-box.
I don't get an event. I also tried "MOUSE-FLAGS" but this does not work.
There should be an easy answer to this (I hope).
I want to do this to have a popup-menu after I clicked the right mouse button.
Unfortunately I do not know of any.

[Migrated content. Thread originally posted on 09 May 2006]

How can I use the right mouse button in a paged list-box.
I don't get an event. I also tried "MOUSE-FLAGS" but this does not work.
There should be an easy answer to this (I hope).
I want to do this to have a popup-menu after I clicked the right mouse button.
Unfortunately I do not know of any.

[Migrated content. Thread originally posted on 09 May 2006]

How can I use the right mouse button in a paged list-box.
I don't get an event. I also tried "MOUSE-FLAGS" but this does not work.
There should be an easy answer to this (I hope).
I want to do this to have a popup-menu after I clicked the right mouse button.
Unfortunately I do not know of any.

[Migrated content. Thread originally posted on 09 May 2006]

How can I use the right mouse button in a paged list-box.
I don't get an event. I also tried "MOUSE-FLAGS" but this does not work.
There should be an easy answer to this (I hope).
I want to do this to have a popup-menu after I clicked the right mouse button.
What file on de installation cd ?