Window hideHeader() question

If I open a window, add a toolbar and then hide the window’s header with win.hideHeader(), is it possible for the toolbar to become drag handle? So the windows could be moved by dragging the toolbar?

Hello
Could you provide a screenshot of your toolbar? Seems like there can be another way of implementation, but i need to see your toolbar

Here’s a screenshot:

  1. Sometimes I attach the toolbar to the window.
  2. Sometimes I put a layout in the window and attach the toolbar to the layout.
  3. Sometimes I put a layout in the window and attach the toolbar to a cell.

This is #2 which I do most of the time.

From time to time I run into a situation where I need to open a huge window. Detaching the header helps the window be a bit larger, and it looks nice.

Hi

try the following:

// init window as usual w1 = dhxWins.createWindow("w1", 20, 30, 400, 280); // attach toolbar myToolbar = w1.attachToolbar({...}); // and add some magic myToolbar.cont._winId = "w1"; // window id myToolbar.cont._isWinHdr = true;

That’s crazy!!! Opens new doors.

When the TB is the drag handle, buttons in the TB work. The buttonSelect will not work because the whole window moves when the options are shown. I guess this might be why it’s not documented.