How to scroll down ListIconGadget?
How to scroll down ListIconGadget?
..or give me universal method.
Registered user of PB (on Linux Mint 21.1 & Win 10 64bit)
- Michael Vogel
- Addict

- Posts: 2821
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
Re: How to scroll down ListIconGadget?
Not sure, what you want to do (what about a code example?), but if you only like to ensure, that the selected line is visible, this line will help you:
Code: Select all
SendMessage_(#ListIconGadget,#LVM_ENSUREVISIBLE,GetGadgetState(#ListIconGadget)Re: How to scroll down ListIconGadget?
If I understand what you want, and you need a cross-platform solution, you can use creatively use SetGadgetState() to select an item to move the visible portion of the item list.
Selecting an item moves the ListIconGadget list of items so as the selected item is visible.
Then you can select another item farther up the list or deselect the item altogether with SetGadgetState(#MyListIcon, -1).
If you play around with it a bit you'll get the feel for the behavior.
Selecting an item moves the ListIconGadget list of items so as the selected item is visible.
Then you can select another item farther up the list or deselect the item altogether with SetGadgetState(#MyListIcon, -1).
If you play around with it a bit you'll get the feel for the behavior.
Re: How to scroll down ListIconGadget?
I am learning pb as writing irc server/client as test of my skill.Michael Vogel wrote:Not sure, what you want to do (what about a code example?), but if you only like to ensure, that the selected line is visible, this line will help you:Code: Select all
SendMessage_(#ListIconGadget,#LVM_ENSUREVISIBLE,GetGadgetState(#ListIconGadget)
I want to have list line of this gadget always visible.
This is interesting... I have no this command in help. But when i write it, editor wants 4th parameter?! Explain please
Registered user of PB (on Linux Mint 21.1 & Win 10 64bit)
Re: How to scroll down ListIconGadget?
My program works just fine unde Wine (Linux). I didn't yet compile it for Lnx.USCode wrote:If I understand what you want, and you need a cross-platform solution, you can use creatively use SetGadgetState() to select an item to move the visible portion of the item list.
Selecting an item moves the ListIconGadget list of items so as the selected item is visible.
Then you can select another item farther up the list or deselect the item altogether with SetGadgetState(#MyListIcon, -1).
If you play around with it a bit you'll get the feel for the behavior.
I will try this also.
Registered user of PB (on Linux Mint 21.1 & Win 10 64bit)
Re: How to scroll down ListIconGadget?
SetGadgetState(#ListIcon_Chat,CountGadgetItems(#ListIcon_Chat)-1)
It works
I will test it more...
Sendmessage solution is only for Windows?
It works
Sendmessage solution is only for Windows?
Registered user of PB (on Linux Mint 21.1 & Win 10 64bit)
- Michael Vogel
- Addict

- Posts: 2821
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
Re: How to scroll down ListIconGadget?
I fear, it is (never was keen enough to try programming on linux/mac)sartic wrote:SetGadgetState(#ListIcon_Chat,CountGadgetItems(#ListIcon_Chat)-1)
It worksI will test it more...
Sendmessage solution is only for Windows?
Re: How to scroll down ListIconGadget?
I prefer Linux, but there is no market to sell your program. (Mac is also only few percent in my country)
It is nice to have Mac and Linux as compile option. I sell Lnx versions half price (but no go
If test go well i will buy pb; I need simple GUI for few project in near future.
It is nice to have Mac and Linux as compile option. I sell Lnx versions half price (but no go
If test go well i will buy pb; I need simple GUI for few project in near future.
Registered user of PB (on Linux Mint 21.1 & Win 10 64bit)
