Implement dialog to change parent of control in IDE? lazarus / 13-General ---------------------------------------------------------------------- vfclists · 2016-03-08 23:34 When the are lots of components on a form, the menu for choosing the Parent can be very long and has to be scrolled through slowly. Can it by done via a searchable dialog, similar to searcihing in the Object Inspector? ---------------------------------------------------------------------- JuhaManninen · 2016-03-09 00:10 Actually it is a good idea. Change Class already has a dialog, Change Parent could have one, too. It should probably have a ListBox and a ListFilterEdit. It could be implemented as a generic reusable dialog because simple filtered list selections are often needed. Maybe there already is such a dialog somewhere. ---------------------------------------------------------------------- Ñuño_Martínez · 2016-03-17 17:09 I second this.  I had to change parent of control only once, but may be useful. ---------------------------------------------------------------------- taazz · 2016-03-17 17:16 I don't get it. Cut, paste does not work for you guys? How about selecting the parent in the form it self? Why do you need an other list to walk through? ---------------------------------------------------------------------- Ñuño_Martínez · 2016-03-17 17:18 Quote from: taazz on March 17, 2016, 06:16:12 pmCut, paste does not work for you guys? Actually, I had problems with this.  I don't know why (may be using wrong keyboard combination?) I never was able to cut a component and paste it. Anyway, when you have a lot of components (i.e. you have a lot of nested panels to keep things in place with some TFrames and so), it's not easy to move components from here to there... ---------------------------------------------------------------------- taazz · 2016-03-17 18:36 Quote from: Ñuño_Martínez on March 17, 2016, 06:18:24 pmQuote from: taazz on March 17, 2016, 06:16:12 pmCut, paste does not work for you guys? Actually, I had problems with this.  I don't know why (may be using wrong keyboard combination?) I never was able to cut a component and paste it. OS? I never had problems with it in linux or windows so far. Quote from: Ñuño_Martínez on March 17, 2016, 06:18:24 pmAnyway, when you have a lot of components (i.e. you have a lot of nested panels to keep things in place with some TFrames and so), it's not easy to move components from here to there... I have never seen a depth of containers higher than 4, which makes me wander why do you think that scrolling through a list of possible containers is faster than hitting the escape key 3 or 4 times? Then again I'm not your average user I do tend to favor the keyboard over the mouse quite a bit. ---------------------------------------------------------------------- FTurtle · 2016-03-18 11:36 I can do it. If someone has already started to do this, please let me know for not to duplicate work. ---------------------------------------------------------------------- Ñuño_Martínez · 2016-03-21 09:35 Quote from: taazz on March 17, 2016, 07:36:15 pmQuote from: Ñuño_Martínez on March 17, 2016, 06:18:24 pmQuote from: taazz on March 17, 2016, 06:16:12 pmCut, paste does not work for you guys? Actually, I had problems with this.  I don't know why (may be using wrong keyboard combination?) I never was able to cut a component and paste it. OS? I never had problems with it in linux or windows so far. Xubuntu Linux.  Anyway, It was a lot of time ago, I didn't try again.  May be it was an issue from an older version. ---------------------------------------------------------------------- vfclists · 2016-03-29 05:08 I'd like to see the code if you implement it. I want to learn more about IDE development. Quote from: FTurtle on March 18, 2016, 12:36:24 pmI can do it. If someone has already started to do this, please let me know for not to duplicate work. ---------------------------------------------------------------------- vfclists · 2016-03-29 05:14 Quote from: taazz on March 17, 2016, 06:16:12 pmI don't get it. Cut, paste does not work for you guys? How about selecting the parent in the form it self? Why do you need an other list to walk through? An example is when you have a deeply nested layout and you want to place items inside panels with thin borders containing aligned objects. It can be very awkward. ---------------------------------------------------------------------- FTurtle · 2016-03-29 20:31 Quote from: vfclists on March 29, 2016, 07:08:00 amI'd like to see the code if you implement it. I want to learn more about IDE development. Quote from: FTurtle on March 18, 2016, 12:36:24 pmI can do it. If someone has already started to do this, please let me know for not to duplicate work. The first version (patch_v3.diff) is implemented but it is not accepted because required to make improvements. I'm working on it now. You can see here: http://bugs.freepascal.org/view.php?id=29868 ---------------------------------------------------------------------- FTurtle · 2016-04-14 16:15 It is accessible for test from revision 52195