Search found 83 matches

by RobertRioja
Sat Sep 20, 2025 12:06 am
Forum: Coding Questions
Topic: Right-click on a ComboBoxGadget
Replies: 13
Views: 977

Re: Right-click on a ComboBoxGadget

To Axolotl: Your first code does exactly what I need. Your second code is "better" but more than what I need. Thank you.

To all else: Thank you for your efforts. But I now have what I needed.

Rob
by RobertRioja
Thu Sep 18, 2025 2:03 am
Forum: Coding Questions
Topic: Right-click on a ComboBoxGadget
Replies: 13
Views: 977

Re: Right-click on a ComboBoxGadget

The problem with the last reply, is that it only works if you right-click on the gadget itself. I need to be able to right-click on an ITEM that is pulled down from the ComboBoxGadget. The IsCursorOnGadget function only looks at the boundaries of the gadget, not the pull down list.

Rob
by RobertRioja
Wed Sep 17, 2025 8:05 pm
Forum: Coding Questions
Topic: Right-click on a ComboBoxGadget
Replies: 13
Views: 977

Re: Right-click on a ComboBoxGadget

The real problem is that right-clicking anywhere will trigger the event. I need it to trigger ONLY when an item in the ComboBoxGadget is right-clicked.

Rob
by RobertRioja
Mon Sep 15, 2025 11:42 pm
Forum: Coding Questions
Topic: Right-click on a ComboBoxGadget
Replies: 13
Views: 977

Re: Right-click on a ComboBoxGadget

Hello Axolotl,

Thank you very much. This is exactly what I needed.

Rob
by RobertRioja
Sun Sep 14, 2025 10:27 pm
Forum: Coding Questions
Topic: Right-click on a ComboBoxGadget
Replies: 13
Views: 977

Right-click on a ComboBoxGadget

I hope someone can answer this. If I click on a ComboBoxGadget, its list will drop down so I can click on any item. That will trigger the #PB_EventType_Change event. However, I need to right-click on an item and I don't see a way of capturing that event.

Any ideas?

Thanks,
Rob
by RobertRioja
Sun Aug 10, 2025 9:40 pm
Forum: Coding Questions
Topic: Hide a Container gadget
Replies: 1
Views: 225

Hide a Container gadget

I can hide or disable a Container gadget, but the controls in the container are not hidden nor disabled. Is there a way to hide/disable everything inside the container?

Thanks,
Robert
by RobertRioja
Mon May 19, 2025 4:10 pm
Forum: Coding Questions
Topic: ListIconGadget Events
Replies: 12
Views: 2989

Re: ListIconGadget Events

Tua: Thank you for your replies. It was very useful and got me started on the right road.

Shardik: Thank you for your example. This was very useful also.

Rashad: I am working with your code. It looks great !!! I am thinking of turning it into a Module, and separate it from the demo code. Once I do ...
by RobertRioja
Sun May 18, 2025 4:35 am
Forum: Coding Questions
Topic: ListIconGadget Events
Replies: 12
Views: 2989

Re: ListIconGadget Events

I figured it out. It only works if you use #PB_ListIcon_FullRowSelect when you create the ListIconGadget.

I will look into the GridExModule.

Thank you,
Robert
by RobertRioja
Sun May 18, 2025 2:36 am
Forum: Coding Questions
Topic: ListIconGadget Events
Replies: 12
Views: 2989

Re: ListIconGadget Events

Thanks for your reply.

GetGadgetState() only returns the row if you click on column 0. Else it returns -1.
But I read up on LVHITTESTINFO and learned that iSubItem returns the column and iItem returns the row.

I am trying to produce a gadget that behaves like a spreadsheet, where you can click on ...
by RobertRioja
Sat May 17, 2025 2:22 am
Forum: Coding Questions
Topic: ListIconGadget Events
Replies: 12
Views: 2989

ListIconGadget Events

If I display a ListIconGadget in a form, I can trap the events such as #PB_EventType_LeftClick. But how do I determine the column and row that was clicked?
Thank you,
Robert
by RobertRioja
Fri May 24, 2024 12:44 am
Forum: Coding Questions
Topic: Access a USB device from PB?
Replies: 11
Views: 2865

Re: Access a USB device from PB?

AZJIO,
Thank you.
Robert
by RobertRioja
Tue May 21, 2024 4:17 am
Forum: Coding Questions
Topic: Access a USB device from PB?
Replies: 11
Views: 2865

Re: Access a USB device from PB?

Idle,

Thanks again.
Robert
by RobertRioja
Thu May 16, 2024 12:41 am
Forum: Coding Questions
Topic: Access a USB device from PB?
Replies: 11
Views: 2865

Re: Access a USB device from PB?

Idle: Thank you for the library. I cannot find documentation on how to use it, routine names, parameters, etc. Where can I find it?

Thanks,
Robert
by RobertRioja
Tue May 14, 2024 5:07 pm
Forum: Coding Questions
Topic: Access a USB device from PB?
Replies: 11
Views: 2865

Re: Access a USB device from PB?

Thank you all for your replies!!!

Idle: Please send me the Win64 library, or tell me how to get it. Thanks.

I downloaded the library that User_Russian posted but it asks for another lib called MISC, which I cannot find.

Thank you
Robert
by RobertRioja
Tue May 14, 2024 2:56 am
Forum: Coding Questions
Topic: Access a USB device from PB?
Replies: 11
Views: 2865

Access a USB device from PB?

Is there a way to access a USB device from PB? Is there a library?

I tried to search the forum for "USB" but the search function will not accept words of less than 4 characters!