Problem with multiple display

Discussion of open issues, suggestions and bugs regarding PgDAC (PostgreSQL Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
badmood
Posts: 37
Joined: Thu 29 Jan 2009 23:28
Location: Italy

Problem with multiple display

Post by badmood » Sun 15 Feb 2009 18:49

Hi all,

I have a laptop that I connect to an external display. The configuration is:

- external display (22") to develop (so I can have Delphi opened in it)

- laptop monitor for the compiled program execution and PostgreSQL management tools

When I use the laptop "alone" (disconnected from the external display), if I'm working with Delphi and I try to edit PgQuery components SQL code with the PgQuery editor, it displays the editor window on the position where the last time I opened it: the external monitor. Clearly you can't see the window because the monitor isn't here...

In that case, the only thing you can do is to try to close it pressing the ESC key in "blind mode" and edit the SQL code directly in the form textual code.

In the same editor, there is also another error: if you try to go in the Macros label, it says everytime "meMacroValue is TDAMemo (D:\Projects\Dac\Source\Design\CRColFrame.pas, line 175)

Code: Select all

[11A251F6]{dcldac105.bpl} Crcolframe.TCRColFrame.UpdateControlState + $196
[201406A7]{vcl100.bpl  } Controls.TWinControl.WndProc (Line 7304, "Controls.pas" + 111) + $6
[2013F03A]{vcl100.bpl  } Controls.TWinControl.GetControl (Line 6630, "Controls.pas" + 4) + $A
[11A2529F]{dcldac105.bpl} Crcolframe.TCRColFrame.UpdateControlsState + $2B
[11A24F12]{dcldac105.bpl} Crcolframe.TCRColFrame.InitItems + $6A
[11A25473]{dcldac105.bpl} Crcolframe.TCRColFrame.DoActivate + $17
[11A1C307]{dcldac105.bpl} Crframe.TCRFrame.ReActivate + $7
[11A1C2D1]{dcldac105.bpl} Crframe.TCRFrame.Activate + $9
[11A1C2F8]{dcldac105.bpl} Crframe.TCRFrame.FrameEnter + $0
[20141A49]{vcl100.bpl  } Controls.TWinControl.DoEnter (Line 7916, "Controls.pas" + 1) + $14
[201425F5]{vcl100.bpl  } Controls.TWinControl.CMEnter (Line 8355, "Controls.pas" + 10) + $6
[2013C527]{vcl100.bpl  } Controls.TControl.WndProc (Line 5146, "Controls.pas" + 83) + $6
[20D1972A]{designide100.bpl} DeskUtil.SetFocusHook (Line 435, "DeskUtil.pas" + 4) + $C
[2132827C]{vclactnband100.bpl} ActnMenus.CallWndHook (Line 703, "ActnMenus.pas" + 12) + $F
[201406A7]{vcl100.bpl  } Controls.TWinControl.WndProc (Line 7304, "Controls.pas" + 111) + $6
[2013FDD0]{vcl100.bpl  } Controls.TWinControl.MainWndProc (Line 7073, "Controls.pas" + 3) + $6
[20040E4C]{rtl100.bpl  } Classes.StdWndProc (Line 11583, "common\Classes.pas" + 8) + $0
[201568E4]{vcl100.bpl  } Forms.SendFocusMessage (Line 1683, "Forms.pas" + 2) + $9
[2015C2DB]{vcl100.bpl  } Forms.TCustomForm.SetFocusedControl (Line 4674, "Forms.pas" + 49) + $B
[2014030E]{vcl100.bpl  } Controls.TWinControl.WndProc (Line 7211, "Controls.pas" + 18) + $7
[2132827C]{vclactnband100.bpl} ActnMenus.CallWndHook (Line 703, "ActnMenus.pas" + 12) + $F
[200FE4E7]{vcl100.bpl  } StdCtrls.TCustomListBox.WndProc (Line 4790, "StdCtrls.pas" + 43) + $6
[2013FDD0]{vcl100.bpl  } Controls.TWinControl.MainWndProc (Line 7073, "Controls.pas" + 3) + $6
[20040E4C]{rtl100.bpl  } Classes.StdWndProc (Line 11583, "common\Classes.pas" + 8) + $0
[2015C3FD]{vcl100.bpl  } Forms.TCustomForm.SetWindowFocus (Line 4713, "Forms.pas" + 10) + $8
[2015C04A]{vcl100.bpl  } Forms.TCustomForm.SetActiveControl (Line 4590, "Forms.pas" + 10) + $B
[20143979]{vcl100.bpl  } Controls.TWinControl.SelectFirst (Line 9165, "Controls.pas" + 8) + $4
[2018682E]{vcl100.bpl  } ComCtrls.TPageControl.ChangeActivePage (Line 5208, "ComCtrls.pas" + 28) + $6
[201866E2]{vcl100.bpl  } ComCtrls.TPageControl.CanShowTab (Line 5160, "ComCtrls.pas" + 1) + $18
[20186CB6]{vcl100.bpl  } ComCtrls.TPageControl.SetActivePage (Line 5390, "ComCtrls.pas" + 4) + $5
[20186DDB]{vcl100.bpl  } ComCtrls.TPageControl.UpdateActivePage (Line 5420, "ComCtrls.pas" + 2) + $19
[201866FA]{vcl100.bpl  } ComCtrls.TPageControl.Change (Line 5168, "ComCtrls.pas" + 2) + $4
[20185BE5]{vcl100.bpl  } ComCtrls.TCustomTabControl.CNNotify (Line 4772, "ComCtrls.pas" + 4) + $6
[2013C527]{vcl100.bpl  } Controls.TControl.WndProc (Line 5146, "Controls.pas" + 83) + $6
[201406A7]{vcl100.bpl  } Controls.TWinControl.WndProc (Line 7304, "Controls.pas" + 111) + $6
[2013C1B4]{vcl100.bpl  } Controls.TControl.Perform (Line 5021, "Controls.pas" + 5) + $C
[201407F7]{vcl100.bpl  } Controls.DoControlMsg (Line 7353, "Controls.pas" + 6) + $11
[20141271]{vcl100.bpl  } Controls.TWinControl.WMNotify (Line 7621, "Controls.pas" + 1) + $7
[2013C527]{vcl100.bpl  } Controls.TControl.WndProc (Line 5146, "Controls.pas" + 83) + $6
[20D1972A]{designide100.bpl} DeskUtil.SetFocusHook (Line 435, "DeskUtil.pas" + 4) + $C
[201406A7]{vcl100.bpl  } Controls.TWinControl.WndProc (Line 7304, "Controls.pas" + 111) + $6
[2132827C]{vclactnband100.bpl} ActnMenus.CallWndHook (Line 703, "ActnMenus.pas" + 12) + $F
[20159E7F]{vcl100.bpl  } Forms.TCustomForm.WndProc (Line 3512, "Forms.pas" + 136) + $5
[2013FDD0]{vcl100.bpl  } Controls.TWinControl.MainWndProc (Line 7073, "Controls.pas" + 3) + $6
[20040E4C]{rtl100.bpl  } Classes.StdWndProc (Line 11583, "common\Classes.pas" + 8) + $0
[201407A3]{vcl100.bpl  } Controls.TWinControl.DefaultHandler (Line 7334, "Controls.pas" + 23) + $17
[2013CB25]{vcl100.bpl  } Controls.TControl.WMLButtonDown (Line 5258, "Controls.pas" + 2) + $6
[20187205]{vcl100.bpl  } ComCtrls.TPageControl.WMLButtonDown (Line 5556, "ComCtrls.pas" + 1) + $4
[20006A3F]{rtl100.bpl  } System.TObject.Dispatch (Line 9284, "sys\system.pas" + 8) + $0
[2013C527]{vcl100.bpl  } Controls.TControl.WndProc (Line 5146, "Controls.pas" + 83) + $6
[20140158]{vcl100.bpl  } Controls.TWinControl.IsControlMouseMsg (Line 7176, "Controls.pas" + 9) + $25
[201406A7]{vcl100.bpl  } Controls.TWinControl.WndProc (Line 7304, "Controls.pas" + 111) + $6
[10F13869]{cxLibraryD11.bpl} Cxcontainer.TcxCustomInnerListBox.CNDrawItem + $691
[2013FDD0]{vcl100.bpl  } Controls.TWinControl.MainWndProc (Line 7073, "Controls.pas" + 3) + $6
[20040E4C]{rtl100.bpl  } Classes.StdWndProc (Line 11583, "common\Classes.pas" + 8) + $0
[20137642]{vcl100.bpl  } Controls.FindControl (Line 2104, "Controls.pas" + 6) + $9
[201625F0]{vcl100.bpl  } Forms.TApplication.ProcessMessage (Line 8105, "Forms.pas" + 23) + $1
[2016262A]{vcl100.bpl  } Forms.TApplication.HandleMessage (Line 8124, "Forms.pas" + 1) + $4
[2015E693]{vcl100.bpl  } Forms.TCustomForm.ShowModal (Line 5822, "Forms.pas" + 29) + $5
[11A1F0DB]{dcldac105.bpl} Daqueryeditor.TDAQueryEditorForm.SetComponent + $17
[11A19324]{dcldac105.bpl} Crdesign.TCRComponentEditor.ShowEditorEx + $8C
[11A19272]{dcldac105.bpl} Crdesign.TCRComponentEditor.ShowEditor + $32
[11A19579]{dcldac105.bpl} Crdesign.TCRComponentEditor.ExecuteVerb + $D
[057A907E]{vcldesigner100.bpl} VCLSurface.TVclDesignSurface.ComponentVerb (Line 2477, "vclsurface.pas" + 3) + $B
[201305E7]{vcl100.bpl  } Menus.TMenuItem.Click (Line 2283, "Menus.pas" + 14) + $8
[20131B0F]{vcl100.bpl  } Menus.TMenu.DispatchCommand (Line 3008, "Menus.pas" + 5) + $2
[20132C6E]{vcl100.bpl  } Menus.TPopupList.WndProc (Line 3798, "Menus.pas" + 4) + $E
[10F13869]{cxLibraryD11.bpl} Cxcontainer.TcxCustomInnerListBox.CNDrawItem + $691
[20132BBD]{vcl100.bpl  } Menus.TPopupList.MainWndProc (Line 3779, "Menus.pas" + 2) + $5
[20040E4C]{rtl100.bpl  } Classes.StdWndProc (Line 11583, "common\Classes.pas" + 8) + $0
[201625F0]{vcl100.bpl  } Forms.TApplication.ProcessMessage (Line 8105, "Forms.pas" + 23) + $1
[20162612]{vcl100.bpl  } Forms.TApplication.ProcessMessages (Line 8117, "Forms.pas" + 1) + $4
[00414303]{bds.exe     } AppMain.TAppBuilder.ApplicationActivated (Line 2055, "ui\AppMain.pas" + 0) + $7
[201D1675]{vcl100.bpl  } AppEvnts.TCustomApplicationEvents.DoActivate (Line 177, "appevnts.pas" + 1) + $C
[201D1CC1]{vcl100.bpl  } AppEvnts.TMultiCaster.DoActivate (Line 388, "appevnts.pas" + 5) + $C
[20161C76]{vcl100.bpl  } Forms.TApplication.WndProc (Line 7788, "Forms.pas" + 101) + $19
[20040E4C]{rtl100.bpl  } Classes.StdWndProc (Line 11583, "common\Classes.pas" + 8) + $0
[201625F0]{vcl100.bpl  } Forms.TApplication.ProcessMessage (Line 8105, "Forms.pas" + 23) + $1
[2016262A]{vcl100.bpl  } Forms.TApplication.HandleMessage (Line 8124, "Forms.pas" + 1) + $4
[2016291F]{vcl100.bpl  } Forms.TApplication.Run (Line 8223, "Forms.pas" + 20) + $3
[0042297A]{bds.exe     } bds.bds (Line 195, "" + 7) + $7
Thanks in advance.

Sergio

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Fri 20 Feb 2009 08:53

You can move an invisible window to your current monitor in the following way:
- Press Alt+Space. This will display the system menu of the window.
- Press M to select the Move command from the menu (M is for English version of Windows. If you have non-English version, please see what letter is underlined for the Move command.).
- Use arrow keys or move your mouse to move the window on your monitor.

You should try this first on a visible window.

We have fixed the problem with Macro tab of TPgQuery editor. The fix will be included in the next PgDAC build.

Post Reply