|
Bug Reports
|
Author |
Thread:
Bug with savecontent and style properties |
|
Mike.Montgomery
|
Bug with savecontent and style properties
Posted:
Friday, May 13, 2005 9:09 AM (EST)
|
|
I have what I think is a bug in the APL Grid. A sample program is included in component 1 of the attached file.
The problem arose in the following sequence:
1) I created a form that contained a grid.
2) I defined some default settings for the grid. (My preferences for the application.)
3) I then populated the grid with values.
After this was working, I decided that I needed to set the "style" property of the parent form to 2 (Make form independent of any other form that is Waiting). The problem exists for any value of style, not specifically 2.
I did this between steps 2 and 3 above. The effect was that the default settings for the grid were lost. Even worse, if I do it after step 3 every thing in the grid is lost.
The problem relates to the "savecontent" property of the grid. When the "savecontent" property is set to 1, there is no problem. According to the documentation, if the "savecontent" property of the grid is set to 0, its definition is lost when the grid is closed. It seems that when the "style" property of the form is changed, the grid gets closed, or something else happens that causes its settings to be lost. I included an "onClose" event handler for the grid to check if it gets closed, but it does not.
Attached file: gridbug.sf
|
|
|