Luckman wrote:Hi - not sure where to post this question on the forum but I need to display messages in an iphone-style format with little thought boxes around each one. Is the best way to achieve that with a grid and overriding the row atttributes for a background image? Or another component? Attached is a sample of what the client wants.
Hello!
First of all, i must let you know, that what you want is possible in CGDT.
More info:
You need main region, when all message will be added.
Each message should be another region.
You can make your custom design, for example using adobe reflow.
When your design is ready, you must create template regions inside IDE (do not place it in region list).
This templates will represent server side message objects.
Now most interesting, you need tricky procedure to duplicate template regions to "list" region.
You can use variable rlist:TList<tiwcgjqregion> to access to your dynamic regions.
Or you can make own wrapper class and make rlist:TList<tMyMessage>.
delphi code
tMyMessage = class
Region: tiwcgjqregion;
LabelControl: Tiwcgjqlabelex;
e.t.c.
end
This is not so easy, but works.