Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - How to set FocusedRow to NOTHING?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to set FocusedRow to NOTHING?

 Post Reply Post Reply
Author
Message
Jebo View Drop Down
Senior Member
Senior Member


Joined: 27 October 2005
Location: Germany
Status: Offline
Points: 318
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jebo Quote  Post ReplyReply Direct Link To This Post Topic: How to set FocusedRow to NOTHING?
    Posted: 26 August 2007 at 10:44am
I need to set the ReportControl to non focused row.
 
SET repctrl.FocusedRow = NOTHING  doesn't work!
 
Setting the Highlight-Color to Report-BackColor is also no solution, because there is also a rectangle arround a focused row!
 
Please what is the right way?
Back to Top
nighthawk View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 June 2004
Status: Offline
Points: 167
Post Options Post Options   Thanks (0) Thanks(0)   Quote nighthawk Quote  Post ReplyReply Direct Link To This Post Posted: 26 August 2007 at 8:52pm
I brought this up a while ago but never got a response.  My workaround is to set the highlight color to the report backcolor AND in the ReportControl_MouseDown() event, I manually call the .SetFocus function on another control on the form.  Once the ReportControl loses focus, the focus rectangle will go away.

Back to Top
Jebo View Drop Down
Senior Member
Senior Member


Joined: 27 October 2005
Location: Germany
Status: Offline
Points: 318
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jebo Quote  Post ReplyReply Direct Link To This Post Posted: 27 August 2007 at 4:20am
THX, i go this way...
 
Dim rec As ReportRecord
With ReportControl
        Set rec = .Records.Add()
        rec.AddItem ""
        .Populate
        .FocusedRow = .Rows.FindRow(rec)
        .Records.RemoveAt rec.Index
        .Populate
End With
 
...but both are only workarounds.
Hope that Codejock will give us in one of the next releases the possibility to Set RepCntrl = Nothing.
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.172 seconds.