Thanks for the reply Oleksandr.
olebed wrote:
Hello Aaron,
Aaron Koolen wrote:
I enable markup on the control with EnableMarkup() but I also found I needed to set m_bForceDynamicMarkupForCell in the paint manager otherwise I found that after calling Populate() I had to go through each record in the control and refresh it's contents with calls to SetCaption(). | I think showing unparsed markup in report cells it is very very special way of using ReportControl else if you don't want show xml you must update cells with readable captions anyway. |
Sorry if I wasn't clear. I don't want to show unparsed markup, but that's what I was getting until I called SetCaption() after a Populate(). So I can't even go AddRecord(record), record->SetCaption(xml). I have to add all the records, call Populate() and then iterate over all the records calling SetCaption().
olebed wrote:
Aaron Koolen wrote:
I have found that if I create an item for a record and give it initial text... |
What code do you use for this (also what version of toolkitPro) ? This behaviour really can be wrong. |
Here's some pseudocode. Inside my MyDerivedRuleRecord constructor I go
m_filterItem = new CXTPReportRecordItemText(SomeFunctionToGetGetXML(), true); AddItem(m_filterItem);
|
and in my derived report control I have
MyDerivedRuleRecord *newRecord = new MyDerivedRuleRecord(); AddRecordEx(newRecord);
|
olebed wrote:
Aaron Koolen wrote:
If I dynamically update an item of a record, then the scroll bars to not adjust. If the item made the cell larger then the bottom of the report control is cut off. I have to call AdjustScrollBars() to get it to work. | I think it is normal behaviour because ReportControl doesn't know exactly how many items do you want to update this time. It is so expensive to call AdjustScrollBars() for every item if you update 100 and more recordItems at once.
|
Maybe it would be good to have this work within a BeginUpdate()/EndUpdate() system. That way you could transactionalise it or if you didn' bother, the updating would happen automatically. We're using 16.3.1.
I think overall, if there was actual documentation on using CodeJock and not just a reference manual, many many hours of developer time could have been saved as we tend to have to go looking around source code and scouring interfaces and example code to find out the way CodeJock wants us to do things.
Thanks Aaron
------------- Product: Xtreme ToolkitPro v13.3.0 (MFC)
Platform: Windows XP (32bit) - SP 3
Language: Visual C++ 6
|