[TODO alpha 16] Not possible to delete a window

You need some new stunning features ? Tell us here.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

[TODO alpha 16] Not possible to delete a window

Post 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.
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Re: [Bug alpha 16 Windows] Not possible to delete a window

Post 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...
Last edited by Berikco on Mon Feb 04, 2008 11:09 pm, edited 1 time in total.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: [Bug alpha 16 Windows] Not possible to delete a window

Post 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.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Post Reply