Page 1 of 1
[TODO alpha 16] Not possible to delete a window
Posted: Sat Feb 02, 2008 5:16 pm
by Trond
- It's not possible to delete a window.
- Clicking delete while the source view is active causes the source view to be re-coloured.
Re: [Bug alpha 16 Windows] Not possible to delete a window
Posted: Sun Feb 03, 2008 12:49 pm
by Berikco
Trond wrote:- - Clicking delete while the source view is active causes the source view to be re-coloured.
Actualy, it not only recoloring, it redraws the whole source view, because a gadget is deleted. But of course there is no gadget selected now.
Will add a check for this.
EDIT: Fixed
Trond wrote:- It's not possible to delete a window.
An old problem.
Thinking a long time on this one.....what to do with all code thats related to the window?
You want VD just to delete the openwindow procedure and all related gadgets? or completely scan the source for dependencies?
A Gadget ID can be used all over the source, and VD can not check this, only the compiler/debugger can do this.
Window deleting should be possible, but it will result in non compiling sources for sure.
Ideas please?
The first implementation will only add comments for sure, to be safe...
Re: [Bug alpha 16 Windows] Not possible to delete a window
Posted: Sun Feb 03, 2008 1:02 pm
by PB
> You want VD just to delete the openwindow procedure and all related gadgets?
Yep, that's what Visual Basic does.
> A Gadget ID can be used all over the source
Yep, and if you delete a form in Visual Basic then it's the user's problem for
doing it. A Visual Basic app won't compile either if the user deletes a form
that is needed. I recommend you follow Visual Basic's example, and make
the user responsible for their actions.