.bottom of TextWidthHeight
From: Ronald Dodge (ronald.dodge_at_cfgraphics.com)
Date: 07/23/04
- Next message: Jamie: "Re: cascade update/delete question"
- Previous message: Michael Walsh: "Re: Pass variable along from form to subform to query to report"
- Next in thread: Stephen Lebans: "Re: .bottom of TextWidthHeight"
- Reply: Stephen Lebans: "Re: .bottom of TextWidthHeight"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 23 Jul 2004 16:17:34 -0400
Question for Stephen Lebans or possibly someone else who can answer this
question?
Version: 4.5
Module: modTextHeightWidth
Method: fTextWidthOrHeight
Within the With block of "sRect"
Variable in question: ".Bottom"
Line of code:
lngRet = apiDrawText(hDC, sText, -1, sRect, DT_CALCRECT Or DT_TOP Or _
DT_LEFT Or DT_WORDBREAK Or DT_EXTERNALLEADING Or DT_EDITCONTROL Or
DT_NOCLIP)
Is there anything that can be done with this line of code to have it
properly calculate the .Bottom variable where the rowsource of a listbox is
an empty string?
Issue I have with this:
When the "RowSource" property of the listbox is set to "", this causes the
function to return a value of 0 (zero) as the line height of a single item
on the listbox, when this is obviously not correct.
Work Around:
Have the code arbutarily put in a string value that is not an empty string
within the "RowSource" property, run the function, reset the "RowSource"
property to "" (empty string).
-- Ronald R. Dodge, Jr. Production Statistician Master MOUS 2000
- Next message: Jamie: "Re: cascade update/delete question"
- Previous message: Michael Walsh: "Re: Pass variable along from form to subform to query to report"
- Next in thread: Stephen Lebans: "Re: .bottom of TextWidthHeight"
- Reply: Stephen Lebans: "Re: .bottom of TextWidthHeight"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|