Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Martín on Jan 04, 2010 11:29
open dhtmlx forum
DHTMLX Window

Hi,

Is it possible to disable the maximization triggered by a double click in the header of the window?
I have hidden the maximization button but I cant disable this feature.
Thanks!
Answer posted by Alex (support) on Jan 05, 2010 03:20

Hello,

you can try to use the denyResize() method to deny resizing:

win.denyResize()

Answer posted on Jan 05, 2010 04:43
Thanks for your answer Alex. I need to keep the window resizable. If it's possible, i only need to disable the double click maximization because i have hidden the maximization button.
Answer posted by Alex (support) on Jan 05, 2010 06:29

You can try to use the following approach to disable maximize on double click in header:

dhxWins._engineGetWindowHeader(dhxWins.window(id)).ondblclick=null

Where id is id of the necessary window, dhxWins is dhtmlxWindows object.

Answer posted on Jan 05, 2010 10:47

It seems that adding this line has disabled the double click in some places of the header. I think double click keeps working over the text of the header. Do I have to add another line like this?

Thanks for your help!

Answer posted by Alex (support) on Jan 06, 2010 00:47

>> I think double click keeps working over the text of the header

Please provide the sample to recreate the issue.

Answer posted on Jan 06, 2010 05:33

I made a mistake in the last test. The double click is disabled ok but when i do 4 continuous clicks the window keeps getting maximized. Is it possible to disable this too?

Thanks again!

 

 

Answer posted by Alex (support) on Jan 06, 2010 05:46
The issue wasn't reproduced. Please provide the sample and detailed description how to reproduce it.