VishalMistry
30th September 2016, 19:08
Hello Everyone,

I created a parent window (DsCmwindow) using create object. Whenever I am clicking on it's close button, nothing happens and window just remains open.

Any clue, what needs to be done in order to enable this functionality ?

Also, when creating any window, how can we get details about screen resolution ? how can we get width and height of the parent window in pixel ?

Thanks,
Vishal

vahdani
30th September 2016, 20:36
Hi,

I have actually never used these functions! According to latest help they are now also depracated!

I manged to get the sample program (http://www.baanboard.com/programmers_manual_baanerp_help_functions_user_interface_objects_example) to run and also noticed that the Windows close or (X) button didn't work. I got it working by changing the handle.event.loop() function as below. Why 4 I don't know :confused:
Hope it helps. As for you last question I must pass.:o

function handle.event.loop()
{
long l.event.type

long event(EVTMAXSIZE)
while TRUE
next.event(event)
l.event.type = evt.type(event)

on case l.event.type
...
case 4: |close window ("X") is pressed!!!!
return
default:
break
endcase
endwhile
}