Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - No focus row rectangle wanted
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

No focus row rectangle wanted

 Post Reply Post Reply
Author
Message
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 Topic: No focus row rectangle wanted
    Posted: 25 May 2007 at 9:11am
I have a ReportControl that I don't want a focus rectangle to appear.  I can't disable the control because it still needs to be scrollable and clickable.  I tried using the code:

Set ReportControl.FocusRow = Nothing

in various events but it doesn't remove the focus rectangle.  Is there any built-in way or workaround to turn off the focus rectangle?
Back to Top
Zach View Drop Down
Groupie
Groupie


Joined: 19 July 2006
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote Zach Quote  Post ReplyReply Direct Link To This Post Posted: 27 May 2007 at 1:58pm
Ditto on this ... it would be nice
 
Only way I have found to remove the focus rectangle is to not let anything take focus... which works for my use... partiallly... but is not going to work most other times.
Back to Top
jcollier View Drop Down
Senior Member
Senior Member


Joined: 15 February 2006
Status: Offline
Points: 250
Post Options Post Options   Thanks (0) Thanks(0)   Quote jcollier Quote  Post ReplyReply Direct Link To This Post Posted: 08 June 2007 at 1:08pm
I am doing this right after .populate.

What mine would do is highlight the first row after populating the report.

so now it looks like this and no rows have focus until I click on one:

rpt.populate
rpt.rows(0).selected = False
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: 08 June 2007 at 1:18pm
My problem is that I don't want any row to EVER have focus or be selected.  So when a user clicks on a row, nothing should be selected and no row should get focus.

The workaround I am currently using is to manually call the .SetFocus function for some other control from within the ReportControl_MouseDown event. 
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.219 seconds.