1. RE: Phil Russell's EuGrid
- Posted by Phil Russell <pg_russell at lineone.net> Aug 21, 2002
- 369 views
Robert, I am not quite sure what you mean, so forgive me if my reply is off-base: > But I do have a small problem. The grid (or should I say program) is > desgined to be viewed and then closed without closing the program or > window... like setting the setVisible(id, False) when the user is > finished. The grid control is registered with win32lib so setVisible(id, False) ought to make it non-visible. Let me know if it doesnt! > The user also can load anther data set and then re-trigger the grid. > > I can re-trigger the grid and it loads the data perfectly every time... > However, I have tried to delete the grid, set the control to NULL and > recall > the gridControl = EGW_CreatGrid(id,x1,x2,x3,x4,False) but I can;t seem > to > get the grid to "disappear". It is a bit unusual to delete/recreate a control repeatedly in a windows application. A better idea is either to hide the control (as above, with setVisible) or to set the control size to 0,0 (can't remember the win32lib command offhand). Are you sure that you need to hide the control? Would it be acceptable to just remove all of the visible columns and display an empty grid? You could do this by calling EGW_EnumColumns to get a list of the visible columns, and then EGW_DeleteColumn to get rid of each one... > Can you help? > > -Robert If none of the above is relevant, can you post an example app showing what you are trying to do at the moment? I am on holiday this week (and typing on a borrowed PC!) but I will take a look next week if you can send something. HTH, Phil