TECH TIP: Calculating the Widths of Components at Run-Time The example below shows how to calculate the widths of report components and position them horizontally. This example procedure accepts a list of CustomText descendents and positions them flush left, one after the other. The Left position of the first component is used as the starting Full Article…
Search the Wiki
How To…Vertically Center Memo Text
Question “How can I vertically center text in a memo?” Solution Report output consists of a collection of Page.DrawCommands[]. Each time the Memo, generates, it creates a DrawCommand that describes the location and content to be rendered. We can use the Memo.OnDrawCommandCreate event to modify the DrawCommand. We can vetically center the wrapped text by inserting some empty Full Article…
How To..Clickable DrawCommand with Custom Info
Question “How can I associate custom info with a hot-clickable component on my report?” Solution This example creates a TmyCustomInfo class that stores the CustNo and Country for a customer. The DBText OnDrawCommandCreate event is used to associate an instance of TMyCustInfo with each DrawCommand generated for the page. The DBText OnDrawCommandClick event shows how to access Full Article…