Lazarus IDE 1.4 RC2 docked: designing forms problem lazarus / 13-General ---------------------------------------------------------------------- flamer0n · 2015-03-03 10:27 I'm not sure if this is a default behaviour or a bug but I find it frustrating. When using Lazarus IDE 1.4RC2 with anchor docking, the form being designed gets behind everything whatever you press outside the form (change a property of a component or try to click on component palette to drop a new component), so keeping my finger on F12 doesn't seem very appealing when designing forms and coding with lazarus. ---------------------------------------------------------------------- Windsurfer · 2015-03-03 11:35 I noticed the same thing, and as a GNU/Linux user decided to use one workspace for the anchored desktop and another for form design. Perhaps this can also be done on Windows. It still needs a button or mouse click but is less cluttered. ---------------------------------------------------------------------- flamer0n · 2015-03-03 12:06 I don't know but I'd rather have the form/sourceEditor switched only when I press F12 not otherwise ---------------------------------------------------------------------- JuhaManninen · 2015-03-03 14:09 The form designer is not yet part of the AnchorDocking. Thus you should not use it if you have forms to design. It is not usable. It may be useful with non-GUI server or cmd-line code. In fact I still don't know why so many people want to use docking. Some people are obsessed with it, saying that Lazarus is not usable without it. Can somebody please explain me why docking is good, except for being fashionable of course. ---------------------------------------------------------------------- dmytron · 2015-03-03 14:29 As for me, Delphi 7 was good but when I opened Delphi 2006, I couldn't get my hands off it. "Full docking" gives a feeling of stability, of solidity. Floating form designer looks... I'd say, untidy. Of course, in some way it's just a question of choice. After all, somebody loves helicopters, somebody loves Boeing-747. But for people who just want an easy IDE to program with (as you remember, part of the Delphi appeal was that it was very friendly to amateurs), for these people the feeling of stability is very important. Yes, I'd say it's a psychological factor mainly. But many people who have liked Delphi maybe won't be so eager to learn Lazarus when they see it's still undocked. Somebody else can add something he or she likes in full docking. ---------------------------------------------------------------------- garlar27 · 2015-03-03 14:52 Quote from: JuhaManninen on March 03, 2015, 03:09:04 pmIn fact I still don't know why so many people want to use docking. Some people are obsessed with it, saying that Lazarus is not usable without it. Can somebody please explain me why docking is good, except for being fashionable of course. IMHO docking is good (I would be pleased if it works good) but is not a must have. I've lived 25 years without it and I can do what I do with or without docking. I think that the best of docking is: customisation. You can have all you need in one form with your prefered layout (everybody likes it in a different way). Docking is good with high resolution screens and a problem with low res ones (it eats the vital screen space, though it use the space more efficiently than placing windows side by side). I'm using anchordockingdsgn.lpk ATM at desing time. And no docking at run time (ATM, but in the near future I will need it, if I need it and is not available, I will have to adapt, improvise and keep going -as usual- ). ---------------------------------------------------------------------- marcov · 2015-03-03 15:11 Quote from: dmytron on March 03, 2015, 03:29:22 pmAs for me, Delphi 7 was good but when I opened Delphi 2006, I couldn't get my hands off it. "Full docking" gives a feeling of stability, of solidity. I never had that feeling. Contrary  I then extremely disliked it, because the designer had all kinds of weird rescaling behaviour, specially for Tframes.  But I did like the newer way of selecting components using text names instead of icons and with a list that you can quickly search. IMHO that was ten times more important in D2006 than the docking. ---------------------------------------------------------------------- flamer0n · 2015-03-03 15:27 I like it better docked and it's a personal preference, just as liking some color or some kind of music... though I don't mind undocked windows either ---------------------------------------------------------------------- Martin_fr · 2015-03-03 15:58 While I personally dont need/want docking, I acknowledge that as a matter of personal preference it is important. And also that for people who have used it before, not having it is a change of some degree in the workflow, and that can be annoying. So I agree it is a desirable feature, and I even agree that once a truly working version exists (apparently requires a contributor), it could be made default (even though I would personally uninstall it). I wonder, how many features that are not strictly docking are part of the "I like to have docking". The only one thing that I can see where docking helps is the ability of having several windows at the same location and access them via tabs. (.e.g. all designers in the same location / watches and eval and dbg-inspector in the same location). --- The following are all *not* docking (they may or may not come with docking, but they do not require it, and could exist without) Docking will snap the windows into position, so there is no space between. But that could be done for undocked windows to (some windowmanager may offer this) Having a designer window, in which the designed form can be scrolled, is *NOT* docking. You could have that with floating windows too. Without docking this feature (if active) could be hardcoded to be part of the source editor. A matter of taste, and implementing this feature. The dependency here is not that docking *brings* this feature, but that docking *needs* this feature. Having  windows shown depending on context (object inspector and palette only visible if designing / dbg windows only while running ...) is nothing to do with docking either. IMHO however the ability to store several desktop layouts and activate them depending on context, is much more important than docking. And finally using the IDE on a desktop stretched over more than one monitor, requires the IDE to be several windows (though you can have one dock-win on each monitor) What else is there? ---------------------------------------------------------------------- taazz · 2015-03-03 20:42 Quote from: Martin_fr on March 03, 2015, 04:58:32 pmWhile I personally dont need/want docking, I acknowledge that as a matter of personal preference it is important. And also that for people who have used it before, not having it is a change of some degree in the workflow, and that can be annoying. So I agree it is a desirable feature, and I even agree that once a truly working version exists (apparently requires a contributor), it could be made default (even though I would personally uninstall it). I wonder, how many features that are not strictly docking are part of the "I like to have docking". The only one thing that I can see where docking helps is the ability of having several windows at the same location and access them via tabs. (.e.g. all designers in the same location / watches and eval and dbg-inspector in the same location). --- The following are all *not* docking (they may or may not come with docking, but they do not require it, and could exist without) Docking will snap the windows into position, so there is no space between. But that could be done for undocked windows to (some windowmanager may offer this) Having a designer window, in which the designed form can be scrolled, is *NOT* docking. You could have that with floating windows too. Without docking this feature (if active) could be hardcoded to be part of the source editor. A matter of taste, and implementing this feature. The dependency here is not that docking *brings* this feature, but that docking *needs* this feature. Having  windows shown depending on context (object inspector and palette only visible if designing / dbg windows only while running ...) is nothing to do with docking either. IMHO however the ability to store several desktop layouts and activate them depending on context, is much more important than docking. And finally using the IDE on a desktop stretched over more than one monitor, requires the IDE to be several windows (though you can have one dock-win on each monitor) What else is there? A window manager that supports anything more than simple snapping is a pain to use. Personally I always disable all those "enhanced" features when seen or change to a window manager that has them disabled by default. No, snapping the windows together does not minimize the screen usage since all the frames around the window are still visible and occupy space. Everything you describe can be done with and with out docking. Docking is the process to do everything you describe using the mouse with the added ability to attach windows one inside the other or detach them in any layout you might need. Even the ability to remember the layout a user created is not part of the docking library it self, but an added ability that makes perfect sense to pack it with the docking library. What you describe as docking is the non floating layout (that you do not like) which is not docking just one of the layouts you can have with docking. Lets not confuse usability with layout. Docking is an intuitive usability enhancement. ---------------------------------------------------------------------- Leledumbo · 2015-03-04 05:40 I personally like docking when it's properly integrated including the form designer, which is not the case for anchor docking at the moment. KZDesktop (and FreeSparta) used to have it, but works fine only on Windows and implemented in kinda hackish way, not flexible enough as general docking solution. I currently use anchordocking though, since the saving option can save any windows. I have no problem switching between forms and code with F12. And whenever I click a component from the palette, the form designer is automatically brought to front where I can directly drop. No idea whether it's just me (or my window manager) or is really an implemented feature. ---------------------------------------------------------------------- airpas · 2015-03-04 08:11 to me full docking is better than layered ide  , switching every time between message , source , form designer is annoying especially when they are overlapped . if its not good , why (c# , vb , delphi , NetBeans ,....) using it . ---------------------------------------------------------------------- taazz · 2015-03-04 08:48 Quote from: airpas on March 04, 2015, 09:11:04 amto me full docking is better than layered ide  , switching every time between message , source , form designer is annoying especially when they are overlapped . if its not good , why (c# , vb , delphi , NetBeans ,....) using it . I agree with you that having to switch between windows to see relevant information all the time is annoying especially when 1) there is not short cut key to bring any specific window you might need in front and you have to go hunting in menus to do it. 2) The default behavior of that window is when clicked to auto focus the editor hiding the window again. this is one my anoyances  with lazarus at this point please choose a style and stick to it everywhere (and let me change it easily If I need to). By a single style I mean either single click opens or double click opens not single click on messages focuses the edit window and double click on the component window to focus the designer. single or double, pick one and stick with it everywhere. anything else is simple annoying as hell. To be frank "single click to open" is annoying as hell I prefer double click to open/change focus and single click to select view tips etc. As for the form designer I'm sorry but it is always hiden by the source window regardless of the layout (docked or floating). In the first case (floating layout) it is behind what ever window you where last using on the second case( docked layout) it is in a tab inside the edit window hidden from view by the code and in both cases you have to switch between design and code edit views. ---------------------------------------------------------------------- Basile B. · 2015-03-04 10:56 Quote from: flamer0n on March 03, 2015, 11:27:01 amI'm not sure if this is a default behaviour or a bug but I find it frustrating. When using Lazarus IDE 1.4RC2 with anchor docking, the form being designed gets behind everything whatever you press outside the form (change a property of a component or try to click on component palette to drop a new component), so keeping my finger on F12 doesn't seem very appealing when designing forms and coding with lazarus. A quick efficient improvement (as a temp workaround the issue) could be to make the designer style as fsStayOnTop. A few monthes ago i tried to make a patch for this but didn't succeed. I believe this is because the designer form represents the final form in itself, while it would have to be parented in another one to make such a setting working. In the facts, as a user (with AnchorDockingDsgn package setup), form designing represents a very small amount of the time spent in Laz so the small annoyance caused by this is very acceptable.( ) ---------------------------------------------------------------------- Martin_fr · 2015-03-04 11:04 Quote from: taazz on March 04, 2015, 09:48:36 amTo be frank "single click to open" is annoying as hell I prefer double click to open/change focus and single click to select view tips etc. Menu Tools > Options > Environment / Desktop: "Prefer double-click over single-click" ---------------------------------------------------------------------- JuhaManninen · 2015-03-04 13:10 I quote both Leledumbo and taazz here. Quote from: Leledumbo on March 04, 2015, 06:40:22 amAnd whenever I click a component from the palette, the form designer is automatically brought to front where I can directly drop. No idea whether it's just me (or my window manager) or is really an implemented feature. It is a feature. Somebody made a patch and I applied it already a long time ago. It was temporarily broken while I made the palette configurable but now works again. Quote from: taazz on March 04, 2015, 09:48:36 amTo be frank "single click to open" is annoying as hell I prefer double click to open/change focus and single click to select view tips etc. Quite the opposite! Double click is a user interface design bug. I configure everything for single click, including my KDE on Linux and also Windows which fortunately allows it. Luckily internet browsers already work with single click by default. QuoteAs for the form designer I'm sorry but it is always hiden by the source window regardless of the layout (docked or floating). In the first case (floating layout) it is behind what ever window you where last using This makes no sense. In a floating layout you can place the windows so they don't hide each other. I guess your source editor does not cover the whole screen. With docked layout it is more difficult because the docked area typically covers the whole screen. ---------------------------------------------------------------------- taazz · 2015-03-04 16:12 Quote from: JuhaManninen on March 04, 2015, 02:10:40 pmI quote both Leledumbo and taazz here. Quote from: Leledumbo on March 04, 2015, 06:40:22 amAnd whenever I click a component from the palette, the form designer is automatically brought to front where I can directly drop. No idea whether it's just me (or my window manager) or is really an implemented feature. It is a feature. Somebody made a patch and I applied it already a long time ago. It was temporarily broken while I made the palette configurable but now works again. Quote from: taazz on March 04, 2015, 09:48:36 amTo be frank "single click to open" is annoying as hell I prefer double click to open/change focus and single click to select view tips etc. Quite the opposite! Double click is a user interface design bug. I configure everything for single click, including my KDE on Linux and also Windows which fortunately allows it. Luckily internet browsers already work with single click by default. QuoteAs for the form designer I'm sorry but it is always hiden by the source window regardless of the layout (docked or floating). In the first case (floating layout) it is behind what ever window you where last using This makes no sense. In a floating layout you can place the windows so they don't hide each other. I guess your source editor does not cover the whole screen. With docked layout it is more difficult because the docked area typically covers the whole screen. How wide is you monitor exactly? If you can have form designer and code editor one next to an other it must be pretty wide or you have a multi-monitor setup which might be more sensible. In any case I would love to see a working layout with the code editor and form designer one next to an other floating or docked layout even on the foreign environments that airpas mentioned. As for the single/double click its a matter or perspective I guess, I never had the need to click something and something else to popup. Even web browsers don't do that and they suppose to be design to do that. I hate it when I click on list box, not a button, not a link not even a menu, a list box, and something pops up. Thank god I can usually change to double click in most environments. Same goes for the component palette if when Ι click on the component palette, which although is set up as a toolbar it misses functionality (the keyboard handling of things), the form designer gets focus then something is seriously wrong with the design. I wouldn't mind for the designer to come in front of all the other windows but the component palette must reserve the focus and be on top of the  designer at the end, actually I hide the component palette and all the toolbar buttons on that window leaving only the menu visible. I like some hand holding from time to time I hate forceful guidance. Oh you click on the message window here there is the code that raised the error. Stupid IDE I haven't read the message yet stop assuming and show me the message window! Well you get the idea. ---------------------------------------------------------------------- taazz · 2015-03-04 16:14 Quote from: Martin_fr on March 04, 2015, 12:04:45 pmQuote from: taazz on March 04, 2015, 09:48:36 amTo be frank "single click to open" is annoying as hell I prefer double click to open/change focus and single click to select view tips etc. Menu Tools > Options > Environment / Desktop: "Prefer double-click over single-click" See attachments there is the option I use but its for the message window only. Not my point but thanks for the tip. ---------------------------------------------------------------------- Martin_fr · 2015-03-04 16:26 Looks different in my IDE According to the hint (not tested) Message window, search result, jump history ---------------------------------------------------------------------- Martin_fr · 2015-03-04 16:30 Quote from: taazz on March 04, 2015, 09:48:36 am By a single style I mean either single click opens or double click opens not single click on messages focuses the edit window and double click on the component window to focus the designer. single or double, pick one and stick with it everywhere. anything else is simple annoying as hell. What do you refer to  "component window". The one I have closes if double clicked (not sure why or what for, but different story) ---------------------------------------------------------------------- taazz · 2015-03-04 16:33 IDE version? I'm still on Lazarus 1.2.4 r45510 Quote from: Martin_fr on March 04, 2015, 05:30:58 pmQuote from: taazz on March 04, 2015, 09:48:36 am By a single style I mean either single click opens or double click opens not single click on messages focuses the edit window and double click on the component window to focus the designer. single or double, pick one and stick with it everywhere. anything else is simple annoying as hell. What do you refer to  "component window". The one I have closes if double clicked (not sure why or what for, but different story) I mean the window that shows up when you select the menu "view\components (ctrl+alt+P)" and yes it closes up when "double clicked" that was the point single click vs double click not what it does. ---------------------------------------------------------------------- Martin_fr · 2015-03-04 18:01 Ok, but afaik you want action on double click? So, if you tick that checkbox from the option, then it is consistent. (Though if it is *not* ticked, then it could be seen inconsistent) message window: - single click: select message - double click: action (jump to error) component palette - single click: select component - double click: action (close window) Now I would agree the action makes no sense. But then that is nothing to do with single versus double or is it? The action would not make sense, if it happened on single click? As for why it closes I do not know, but maybe someone does, or maybe it can be changed. Best to raise a feature request. ---------------------------------------------------------------------- balazsszekely · 2015-03-04 18:10 Quote@Martin_fr As for why it closes I do not know, but maybe someone does, or maybe it can be changed. Best to raise a feature request. This is how it was design, although I do not understand why. Take a look at  componentlist.pas: Code: [Select]procedure TComponentListForm.ComponentsDblClick(Sender: TObject); // This is used for all 3 treeviews begin   UseAndCloseButtonClick(nil);       // Select and close this form end; The fix is trivial. ---------------------------------------------------------------------- JuhaManninen · 2015-03-04 22:20 Quote from: taazz on March 04, 2015, 05:33:22 pmIDE version? I'm still on Lazarus 1.2.4 r45510 C'mon. This whole thread is about 1.4 RC2. ---------------------------------------------------------------------- taazz · 2015-03-04 23:25 Quote from: JuhaManninen on March 04, 2015, 11:20:57 pmQuote from: taazz on March 04, 2015, 05:33:22 pmIDE version? I'm still on Lazarus 1.2.4 r45510 C'mon. This whole thread is about 1.4 RC2. yes, so it is. My comments so far never touched any specific problem/bug or omision. Just comments on design details and making things a bit clear on definitions. So I should be in the clear except the options blooper that is.