[futurebasic] Re: [FB] Dodialog close button in a window [FIXED]

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 2006 : Group Archive : Group : All Groups

From: Brian Heibert <bheibert@...>
Date: Mon, 10 Apr 2006 21:07:28 -0400
Sorry for bothering the list I figured it out

case _wndClose
//select window(_outputWnd)
//window close _outputWnd
//end select
_about = 2
long if window(-_about)
window close #_about
xelse
window close #_editor
end if

Brian
On Apr 10, 2006, at 9:01 PM, Brian Heibert wrote:

> I am still confused
> I tried adding another dodialog it didn't work right
> I tried adding window close #_about under the _wndClose
> and when I closed the about window both the about window & the  
> editor window closed
> I want the editor window to close when the close button is pressed  
> in the editor window
> and I want the about window to close when the close button is  
> pressed in the about window
> but not both
>
> Brian
> On Apr 10, 2006, at 8:05 PM, Steve Crossman wrote:
>
>> Page 197
>>
>> <Picture 3.png>
>>
>>
>>
>>
>> On Apr 10, 2006, at 7:52 PM, Brian Heibert wrote:
>>
>>> In my dodialog case _wndClose
>>> how do I tell which window's close button was clicked on so I can  
>>> close the right window?
>>>
>>> Brian
>>>
>>>
>>> local fn dodialog
>>> dim as rect r
>>> dim as long ev, id
>>> ev = dialog(0)
>>> id = dialog(ev)
>>> select ev
>>> case _wndClick
>>> window id
>>> case _wndClose
>>> case _aboutWnd
>>> window close #_aboutWnd
>>> case _editor
>>> window close #_editor
>>> case _wndRefresh
>>> case _btnClick
>>> select window(_outputWnd)
>>> end select
>>>
>>> end select
>>> end fn
>>>
>>> --
>>>
>>
>>
>> --
>
> --
>