Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - [SOLVED] First Grouprow not painted correctly
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED] First Grouprow not painted correctly

 Post Reply Post Reply
Author
Message
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED] First Grouprow not painted correctly
    Posted: 08 November 2008 at 6:05am
Hi,
 
When dragging column to groupbox, group caption doesn't show correct (see image) The caption is created with Markup in BeforeDrawRow event like this:
 
 Metrics.Text = "<TextBlock>" & rptGroupRow.GroupCaption & " <Bold Foreground='Red'> (" & rptGroupRow.Childs.Count & ") </Bold></TextBlock>"
            
As you can see the Markup part is OK but the original caption itself isn't...

All other captions work OK but only first one doesn't. Once the RC is resized, row is selected or groupbox is clicked (RC redraw internally...) the first row will be correctly (re)drawn.
 
             
         
 
 
 
Thank you
 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 20 January 2009 at 3:27pm
Hi,
 
Here is test project...
 
 
 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 21 January 2009 at 11:46pm
Hi, I checked your case and found:
different syntax for markup (may be I don't have something?)
See my snapshot:
 
This is release 13 ActiveX testing. 
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 22 January 2009 at 12:57am
Hi Mark
 
This should be output:
 
 
 
 
The line:
 
wndReportControl.EnableMarkupFlags = 1 + 2 + 3 + 4
is used because Markup for Metrics doesn't work in V12.1.1 and I had to use V12.1.0 to test this.
 
EnableMarkupFlags property is removed from ReportControl (see major post also) so you have to use wndReportControl.EnableMarkup = True (V12.1.1)
 
 
 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 22 January 2009 at 1:24am
Fine - this is that I used.
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 22 January 2009 at 1:46am
Hi Mark,
 
If you did use wndReportControl.EnableMarkup = True (and you fixed Markup issue) you should have output as my uploaded image. I see your output and it doesn't show Markup for grouprows, yes only the Markup in BeforeDrawRow event (and yes, this works OK).
 
Thank you
 
 
 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 22 January 2009 at 10:58pm
So far I reached smth similar to your case - see ColumnMarkup snapshot
 
 
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 10 February 2009 at 1:34pm
Hi
 
This issue is solved in V13.0.0  
 
(in V12.1.1 this issue is a bug)
 
 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.250 seconds.