Posted: Thu May 09, 2024 4:16 am Post subject: Adding the OnMouseWheelUp event to mainform.addresslist did
I want to implement a feature that changes the font size of the address list entry by holding down ctrl + mouse wheel in the address list, but this doesn't seem to work help me :cry:
Although the lua script you provided successfully fulfilled my requirements. But I still want to implement this requirement in the source code. The problem is in the lua code you provide. How does a List instance get it in the source code
Code:
alist = getAddressList()
alist.List.OnMouseWheelUp=function(sender)
--How do I get this alist.list from the source code
There is no such thing as a List in the source code :cry:
There is no such thing as a List in the source code
"List" is the name of the TTreeviewWithScroll component. In the source code, it's `TAddressList.Treeview`
(the field is private, so in Lua, you have to go through the findComponentByName method) _________________
I don't know where I'm going, but I'll figure it out when I get there.
There is no such thing as a List in the source code :cry:
"List" is the name of the TTreeviewWithScroll component. In the source code, it's `TAddressList.Treeview`
(the field is private, so in Lua, you have to go through the findComponentByName method)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum