docking problem lazarus / 13-General ---------------------------------------------------------------------- marquessbr · 2009-07-07 12:15 I recompile the IDE with -dEnableIDEDocking and the docking work fine, but, have a bug, I dont know if this bug is know of all user of this issue. The bug is follow: when the codeexplorer or message window is docked in the editor window, if I try to use the "toggle form/unit view" using menu or F12 key it ork only to toggle of form to source editor, but to togle of sorce code window to form thont work, wy?. have a solution to this? if I can help, tell-me wath I need to do. peace! ---------------------------------------------------------------------- marquessbr · 2009-07-22 14:09 someone know if it is a bug or if it is, have any solution for this problem all thanks! ---------------------------------------------------------------------- Martin_fr · 2009-07-22 15:37 The fact that this is not compiled by default, but only when you request it via define, means that this feature is not in state that was deemed ready for release. So probably it is a bug. However afaik this docking is not currently worked on, and may not be worked on again at all. A lot of work is going on, on a new dock manager, so once this is ready it will probably replace this old attempt. There seems to be yet another workaround: http://wiki.lazarus.freepascal.org/Manual_Docker But I do not know if it is any better... ---------------------------------------------------------------------- Troodon · 2009-07-22 15:44 The manualdocker component works fine for me, both on Windows and Linux, I actually wonder why it isn't builtin the IDE. ---------------------------------------------------------------------- theo · 2009-07-22 15:45 Quote from: Martin_fr on July 22, 2009, 05:37:03 pmThere seems to be yet another workaround: http://wiki.lazarus.freepascal.org/Manual_Docker But I do not know if it is any better... This one is for the message window only (the most important imho). It works fine. ---------------------------------------------------------------------- marquessbr · 2009-07-22 17:28 Sory, I have dificult to compose phrases in this language! Hi Martin_fr! If I know where in the source code the -d(...) definition is triggered I can verify the code and then, try to solve the problem here and public the way so on. first:    in ubuntu 9.04 i recompile the ide with this directive in tolls/.../buildl...options/advanced build... tab and dono't work, don't appear the "docking" options in the menu.  - in windows, after it is anabled, only after I delete the lazarus folder in my setting directory the options appear in the menu.  - in linux, at the moment, I don't delelte the .lazarus folder in my home dir, (Im live in Santos-SP - Brazil, beach!, rerere, so the linux pc is in my house, and is for my weekend). second    I need to know:    - the directive is triggered in the fpc source or in lazarus source?  - if is in lazarus source, I need to debug the ide to view wath i need to correct in the code and I donot have de min idea with how i cam make it. peace! ---------------------------------------------------------------------- marquessbr · 2009-07-22 17:56 Ok, I came at the part of the source code ...   {$IFNDEF EnableIDEDocking}   SrcEditMenuDocking.Visible:=false;   {$ENDIF}  ... what I need to doto debug and find the error. thenaks ---------------------------------------------------------------------- Martin_fr · 2009-07-22 22:15 First: read the FAQ about the topic: http://wiki.lazarus.freepascal.org/Lazarus_Faq#I_created_a_Patch_to_do ck_the_IDE_Messages_form_on_the_.22Source_Code_Editor.22_form_.28at_bo ttom.29 You can fix it, and maintain it in your code. Depending what triggered the error it may not be applied to lazarus itself. As for where to start debugging: You can search for all locations with   {$IFNDEF EnableIDEDocking} or IFDEF or other compiler directives for   "EnableIDEDocking". But the problem is more likely in the code that handles F12. It will need to find wich window is currently active. My guess: when docked the window can not be found (maybe a different title, maybe another property that is not as expected. So you need to fix F12 to regognize the active window, even if docked.   ide\keymapping.pp   ( ideintf\idecommands.pas /  components\synedit\syneditkeycmds.pp) You can use those as starting point for any kbd-related search. contains a list of all the key-commands. you are looking for "ecToggleFormUnit" (ecViewUnits ecViewForms may laso be of interest) search ecToggleFormUnit in the source (probably in sourceeditor.pp, or main.pp) Set some breakpoints, execute the command, single step until you reach the actual function doing the work. Then try to find what needs to be changed