Responsive elements lazarus / 31-LCL ---------------------------------------------------------------------- Morsus · 2015-06-22 13:43 Sorry if this question was asked before, I really tried to find the answer before posting and I couldn't find any. I made an windows application witch window can be resized and be made full screen. The thing is that elements in the app stays where they are as if application is always maximized or full screen. I solved some of this problems with changing .Left value of elements. But when it comes to eg. ShellTreeView I don't know how could I always make it max height even when window is resized. I hope I don't need to use timer to check the resizing of the window xD. Also I use 2 monitors and Code: [Select]PopupNotifier1.ShowAtPos(Mouse.CursorPos.x+330, Mouse.CursorPos.y);command works only on one monitor well. But when I move the application to other monitor it shows the Popup on the wrong location. Thank you for your time. ---------------------------------------------------------------------- Thaddy · 2015-06-22 13:48 That looks like a owner-parent-child issue: If the controls are not owned by the form on which they are layed out, but by the application, they will appear at their full screen location. Did you design your application in Lazarus or did you create your controls at run-time? ---------------------------------------------------------------------- Morsus · 2015-06-22 13:51 I am designing it in Lazzarus. ---------------------------------------------------------------------- Thaddy · 2015-06-22 13:56 In that case: check the parent properties. The controls should have a form as parent, probably not the main form from your description and certainly not the application object. This can go wrong if you have done a copy/paste operation with multiple controls and forgot to focus the paste target. AFAIK this is the most common cause ---------------------------------------------------------------------- Morsus · 2015-06-22 14:08 I managed to solve this by messing with component options but now I am stuck with double information on my tree list. I have C:// D:// C:// D:// ---------------------------------------------------------------------- taazz · 2015-06-22 15:05 Quote from: Morsus on June 22, 2015, 04:08:45 pmI managed to solve this by messing with component options Well thats Impossible. You are using Mouse.CursorPos which has nothing to do with the components and their options. Quote from: Morsus on June 22, 2015, 04:08:45 pm but now I am stuck with double information on my tree list. I have C:// D:// C:// D:// Be more specific which component gives you the duplicates and how do they get their data. ---------------------------------------------------------------------- Leledumbo · 2015-06-22 15:06 Quote from: Morsus on June 22, 2015, 03:43:21 pmThe thing is that elements in the app stays where they are as if application is always maximized or full screen. I solved some of this problems with changing .Left value of elements. Eww...have you read this? ---------------------------------------------------------------------- Thaddy · 2015-06-22 16:22 I can't explain the double slashes, but I do know you messed up the controls before: the defaults would not allow the initial described issue  to happen. Leledumbo's response shouldn't be necessary but a full read of docs is never bad practice. As in: read the full manual, known as RTFM ---------------------------------------------------------------------- Morsus · 2015-06-23 17:36 I have read that and I managed to fix my problems. Can you point me out to where should I read about TShellListView,TshellTreeView,TListView and TTreeView? ---------------------------------------------------------------------- Leledumbo · 2015-06-23 18:48 Quote from: Morsus on June 23, 2015, 07:36:26 pmI have read that and I managed to fix my problems. Can you point me out to where should I read about TShellListView,TshellTreeView,TListView and TTreeView? It's not extensive, I believe, but this is the best we have ATM: http://lazarus- ccr.sourceforge.net/docs/lcl/shellctrls/index-4.htmlhttp://lazarus- ccr.sourceforge.net/docs/lcl/comctrls/index.html ---------------------------------------------------------------------- Morsus · 2015-06-23 19:25 Can I get somewhere the parameters I can use with TShellListView? Eg. ShellListView1.Selected.SubItems.Strings[0]; //size of file I would need a name and how to get text from it (if its .txt). ---------------------------------------------------------------------- Leledumbo · 2015-06-23 19:43 Quote from: Morsus on June 23, 2015, 09:25:55 pmCan I get somewhere the parameters I can use with TShellListView? Eg. ShellListView1.Selected.SubItems.Strings[0]; //size of file I would need a name and how to get text from it (if its .txt). The source code, it's all open. TShellListView extends TCustomListView so it's basically the same as TListView: Caption is the first column, subsequent columns are in SubItems.Strings.