One of his functions in that library is LV_EX_CalcViewSize(HLV, Rows := 0)
Here is the readme for that function:
========================================================================================================================
LV_EX_CalcViewSize(HLV, Rows := 0)
========================================================================================================================
Calculates the approximate width and height required to display a given number of items.
Params:
Rows - the number of rows to be used for the calculation.
Default: 0 (current rows)
Returns:
An object containing the following key/value pairs:
W: the calculated width
H: the calculated height
So two things, if I were to use this in my script, what do I put where he has Rows := 0
Do I put things like this:
Code: Select all
MyVar:=LV_EX_CalcViewSize(HLV, Rows := 5)
Code: Select all
MyRows:=LV_GetCount()
LV_EX_CalcViewSize(HLV, Rows := MyRows)
Code: Select all
LV_EX_CalcViewSize(HLV, MyRows)
Code: Select all
LV_EX_CalcViewSize(HLV, 5)
----------
Once that is resolved, I still don't understand how to extract the "H" (the height) which is all I want, not this object containing Width and Height thing.
From the docs, I can get values from object properties by doing this:
Code: Select all
Value := Object.Property
Code: Select all
MyVar:=LV_EX_CalcViewSize(HLV, Rows := 0)
Code: Select all
MyVar
Code: Select all
HLV
And once that is resolved
how the heck do I get the H "value" from it without knowing what the object "property" is?
Is it merely named "property" like this?
Code: Select all
Height := MyVar.property.H
Code: Select all
Height := HLV.property.H
Code: Select all
Height := HLV.H
Code: Select all
Height := MyVar.H
............
There is just too many possibilities for me to find the answer via trial and error, I did try though
I hope everyone can see how fucking useless it is to mention "objects" with "key/value" pairs in a readme, with no guidance on how to use that info in the docs or the readme, kind of like taking someone out in the middle of the ocean and telling them to swim south to find treasure. They have half the information, but without knowing which direction south is, how the hell are they supposed to do anything with your helpful advice?