I'm using the Custom List View to display Purchase Orders - header and line items - each on their own CLV.
How do I set the optimum panel height for different devices, a phone compared to a tablet?
I debugged this on a Samsung S10 phone to figure out what the optimum height should be, but on a Samsung Tab A tablet, the height is too short. The height needs to be increased.
So how do you determine the panel height that works for all devices?
The detail values (Labels) are loaded into a Panel with the following code:
Thanx in advance,
Mark Stuart
How do I set the optimum panel height for different devices, a phone compared to a tablet?
I debugged this on a Samsung S10 phone to figure out what the optimum height should be, but on a Samsung Tab A tablet, the height is too short. The height needs to be increased.
So how do you determine the panel height that works for all devices?
The detail values (Labels) are loaded into a Panel with the following code:
PO Header:
Do While rs.NextRow
Dim p As Panel
p.Initialize("")
p.Height = 400dip '<=== set the panel height
clvOrders.Add(p, rs.GetInt("POID"))
p.LoadLayout("PO_Header_Detail")
lblRequestedBy.Text = rs.GetString("POUserID")
lblPOID.Text = rs.GetInt("POID")
lblPODate.Text = rs.GetString("PODate")
lblReqDate.Text = rs.GetString("ReqDate")
lblPark.Text = rs.GetString("LocName") & " (" & rs.GetString("LocCode") & ")"
lblDesc.Text = rs.GetString("Description")
lblVendor.Text = rs.GetString("VendorName") & " (" & rs.GetString("VendorID") & ")"
lblType.Text = rs.GetString("POTypeDesc")
lblAmount.Text = "$" & NumberFormat2(rs.GetDouble("POAmount"), 0, 2, 2, True)
Dim LineCount As Int = rs.GetInt("LineCount")
Loop
Thanx in advance,
Mark Stuart