How to stop window from maximising with double click on hdr

I have the following code snippets:

var winMenuOpts = new dhtmlXWindows();
...
...
winMenuOpts.setEffect('resize',false);

But I can still re-size all window that are created under winMenuOpts. Please can you tell me what I’m doing wrong?

Also please can you tell me how to stop a window from maximising when a user double clicks in the header part of the window.

Thanks

Purvez

setEffect controls only visual effect of the resizing. It doesn’t allow to fix window size. Use denyResize method:

yourWindow.denyResize();

Also please can you tell me how to stop a window from maximising when a user double clicks in the header part of the window.

The easiest way is to use a private method _engineGetWindowHeader

winMenuOpts._engineGetWindowHeader(yourWindow).ondblclick = null;

What does this mean?

Where is ‘denyResize’ documented?

Thanks for the ‘doubleclick’ workaround.

Purvez

What does this mean?

Exactly what there is written :slight_smile: “It doesn’t allow to fix window size.” - it doesn’t block resizing.

Where is ‘denyResize’ documented?

docs.dhtmlx.com/doku.php?id=dhtm … _toc_alpha

Alexandra I STILL don’t understand.

“It doesn’t allow to fix window size.” - it doesn’t block resizing.

You are telling me that It DOESN’T allow to fix window size AND it DOESN’T block resizing. So WHAT does it DO? Tell me what it DOES!!

Sorry to go on but this sort of thing wastes so much time unnecessarily.

Purvez

Please open the demo:

dhtmlxWindows/samples/03_settings/11_effects.html

Enable resize effect and resize a window to the right for example. Then disable resize effect and resize a window - and you’ll see the difference.

Thanks for that Alexandra. I now understand it and will have to try it with my own code.

Regards

Purvez