How to show a hidden docked dialog?

General discussion forum about all things Team Developer 6.x
wilhelm
Germany
Posts: 26
Joined: 22 Mar 2017, 08:49
Location: Cologne

How to show a hidden docked dialog?

Post by wilhelm » 17 Oct 2017, 15:35

Hi,

I am at a loss. I am using SQLWindows 6.0 und trying to play arround with docking dialogs.
After the docked dialog is hidden (by the X) I cannot show it again.
SalShowWindow doesn't help and I run out of ideas to do it otherwise.
What am i missing?

TIA
Wilhelm

EwaldP
Austria
Posts: 57
Joined: 07 Mar 2017, 08:00
Location: Austria

Re: How to show a hidden docked dialog?

Post by EwaldP » 18 Oct 2017, 07:42

So far as I know after pressing the (x) the dialog is closed and not hidden. You have to created the dialog again. If you want to slide the dialog in and out you can use SalDlgSetDockSlide.

Regards
Ewald
Ewald P. Palmetshofer
EDV-Hausleitner GmbH
4020 Linz
www.edv-hausleitner.at

Uwe van der Horst
Site Admin
Site Admin
Germany
Posts: 59
Joined: 05 Mar 2017, 14:21
Location: Wetter (Ruhr), Germany

Re: How to show a hidden docked dialog?

Post by Uwe van der Horst » 18 Oct 2017, 07:56

My 5 cents: The RACON.SQLWindows.UserInterface which you can download from the Team Developer Sample Vault has a function for hiding the close button (UISalControlBarRemoveCloseButton).
But the latest version is for TD 6.3. Maybe you ask the author for a TD7-version.

http://wiki.tdcommunity.net/index.php/R ... rInterface
Best regards,
Uwe van der Horst
Advo-web GmbH

wilhelm
Germany
Posts: 26
Joined: 22 Mar 2017, 08:49
Location: Cologne

Re: How to show a hidden docked dialog?

Post by wilhelm » 18 Oct 2017, 09:42

EwaldP wrote:
18 Oct 2017, 07:42
So far as I know after pressing the (x) the dialog is closed and not hidden. You have to created the dialog again. If you want to slide the dialog in and out you can use SalDlgSetDockSlide.
At least in 6.0 it's some sort of hidden and that's what the tooltip of the (x) says.
The SAM_Destroy in the dialog doesn't get fired as well.

And you are right, at least in 7.0 the dialog is destroyed. Sadly I have to use 6.0...

Thanks anyway for your answer.

Wilhelm
Last edited by wilhelm on 18 Oct 2017, 09:51, edited 1 time in total.

wilhelm
Germany
Posts: 26
Joined: 22 Mar 2017, 08:49
Location: Cologne

Re: How to show a hidden docked dialog?

Post by wilhelm » 18 Oct 2017, 09:43

Uwe van der Horst wrote:
18 Oct 2017, 07:56
My 5 cents: The RACON.SQLWindows.UserInterface which you can download from the Team Developer Sample Vault has a function for hiding the close button (UISalControlBarRemoveCloseButton).
Thanks, I will look into it.

Wilhelm

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 400
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: How to show a hidden docked dialog?

Post by Dave Rabelink » 18 Oct 2017, 10:02

Quite some time ago I tried to handle more advanced docking features. Or at least to prevent/disable some features.

PreventUndock.zip

The sample provided here disables undocking, the sys buttons (pin and close) and disables resizing when docked.
It is a very early testcase and certainly not ready.

But you might use some of the implementation to get started.

(it uses subclasser to disable those features).
You do not have the required permissions to view the files attached to this post.
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

EwaldP
Austria
Posts: 57
Joined: 07 Mar 2017, 08:00
Location: Austria

Re: How to show a hidden docked dialog?

Post by EwaldP » 18 Oct 2017, 11:46

Since 6.1 SAM_Destroy is fired. fyi

Ewald
Ewald P. Palmetshofer
EDV-Hausleitner GmbH
4020 Linz
www.edv-hausleitner.at

wilhelm
Germany
Posts: 26
Joined: 22 Mar 2017, 08:49
Location: Cologne

Re: How to show a hidden docked dialog?

Post by wilhelm » 18 Oct 2017, 14:34

Dave Rabelink wrote:
18 Oct 2017, 10:02
But you might use some of the implementation to get started.
Thanks Dave,
but I think it's not worth the effort.
I have just played arround a little with your sample, but even when I call SalDestroyWindow programatically , the docked dialog is only destroyed when the parent (where it docked to ) is destroyed.
At least that's how it seems to behave.

Cheers
Wilhelm

EwaldP
Austria
Posts: 57
Joined: 07 Mar 2017, 08:00
Location: Austria

Re: How to show a hidden docked dialog?

Post by EwaldP » 19 Oct 2017, 08:12

I think there were some bug fixes and enhancements above 6.0. If you can't upgrade the TD-version, I wouldn't implement the dockable dialog features.
Regards
Ewald
Ewald P. Palmetshofer
EDV-Hausleitner GmbH
4020 Linz
www.edv-hausleitner.at

Return to “General Discussion”

Who is online

Users browsing this forum: Ccbot [Crawler] and 0 guests