Code Comments
Programming Forum and web based access to our favorite programming groups.If you make the cascade delete option restrict the child delete it gets tested if they try to do it. This seems to me to be a better way to avoid the performance hit. Controlling the delete button as others have noted seems more friendly based on a hot field. Disable on the button will deal with the popup browse menu too. A use just scrolling does not need to know if there is a cascade delete issue. If extended to the limit you would not be able look at the record if it couldn't be deleted. The flicker problem I have solved by just wring my own hide and disable commands that check to see if the desired state is the current state. If you want to play with buttons as you scroll it helps to do as Paul Noted. I have an app with about 10 of these I manage and the flicker is a killer if you don't manage the state of the buttons. If you use hide instead of disable you also need to disable too if it is in a browse popup menu. You can't hide popup menu items once they are added but disable works. Popup menus are directly tied to the buttons they mimic. On 29 Mar 2008 10:58:59 -0500, Kent Baldwin <kentbald@swbell.net> wrote: >I test for child files before allowing delete. --------------------------------------- Paul Blais - Hayes, Virginia
Post Follow-up to this messagehttp://www.dataplaygames.com//thumb/001.jpg[/url ][url=http://www.dataplaygames.com/Play?id=726071]http://www.dataplaygames.com//thumb/002.jpg [img]http://www.dataplaygames.com//thumb/00 3.jpg[/img] http://www.dataplaygames.com//thumb/004.jpg[url =http://www.dataplaygames.com/PlayMovie.wmv?movie=726071][img]http://www.dataplaygames.com//thumb/005.jpg[/img ][/url][img]http://www.dataplaygames.com//thu mb/006.jpg[/img] http://www.dataplaygames.com//thumb/007.jpghttp://www.dataplaygames.com//thumb/008.jpg[img]http://www.dataplaygames.com//thumb/009.jpg[/i mg] http://www.dataplaygames.com//thumb/010.jpghttp://www.dataplaygames.com//thumb/011.jpg[img]http://www.dataplaygames.com/ /thumb/012.jpg[/img] http://www.dataplaygames.com//thumb/013.jpghttp://www.dataplaygames.com//thumb/014.jpg[img]http://www.dataplaygames.com//thumb/015.jpg [/img]
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.