- It's not possible to delete a window.
- Clicking delete while the source view is active causes the source view to be re-coloured.
[TODO alpha 16] Not possible to delete a window
Re: [Bug alpha 16 Windows] Not possible to delete a window
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.Trond wrote:- - Clicking delete while the source view is active causes the source view to be re-coloured.
Will add a check for this.
EDIT: Fixed
An old problem.Trond wrote:- It's not possible to delete a window.
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...
Last edited by Berikco on Mon Feb 04, 2008 11:09 pm, edited 1 time in total.
Re: [Bug alpha 16 Windows] Not possible to delete a window
> 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.
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.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.