Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - BUG: FocusSubItems, UpdateRecord & Redraw Crash
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BUG: FocusSubItems, UpdateRecord & Redraw Crash

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

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Topic: BUG: FocusSubItems, UpdateRecord & Redraw Crash
    Posted: 21 June 2009 at 10:50pm
References: https://forum.codejock.com/forum_posts.asp?TID=14143

In FocusChanging event - If you call UpdateRecord before Redraw, then the app will crash completely if FocusSubItems = True and the keyboard was used for navigation. If FocusSubItems = False or if the mouse is used for navigation, then there is no crash. I'm not sure why you would call these methods in the FocusChanging event, but nothing should crash the entire IDE/App, and there may be a good reason for this kind of call because it appears in the CodeJock ReportControl (new item row) sample.

Demonstration:

uploads/20090621_224751_RcSubItemsNavBu.zip
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6

Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Posted: 21 June 2009 at 11:04pm
Similarly, if you call UpdateRecord in the SelectionChanged event, then the selection will be killed and no amount of clicking or arrow key pressing seems to get it back.

Demonstation:

uploads/20090621_230429_RcSubItemsNavBu.zip
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6

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.188 seconds.