Lazarus

Using the Lazarus IDE => Designer => Topic started by: kamii on April 24, 2012, 09:40:31 am

Title: Merged Form Designer?
Post by: kamii on April 24, 2012, 09:40:31 am
Is there any project, that tries to Implement an merged / implemented form designer into a Tab of the sourcecode-editor?
Like in Visual Studio / Delphi or which IDE it also uses..

Greetings
Kamii
Title: Re: Merged Form Designer?
Post by: avra on April 24, 2012, 01:31:58 pm
What you are looking for comes as one of the features of a new docking manager implemented in Lazarus CodeTyphon edition.
Title: Re: Merged Form Designer?
Post by: kamii on April 24, 2012, 05:50:45 pm
Okay.. I can't find this features. Is this already implemented or just an upcomming feature?
Title: Re: Merged Form Designer?
Post by: Leledumbo on April 25, 2012, 01:54:12 am
AFAIK even the CodeTyphon edition doesn't have form designer docked into source editor tab. It's the same as other currently available docking packages: docks IDE windows except for the form designer.
Title: Re: Merged Form Designer?
Post by: kamii on April 25, 2012, 12:04:35 pm
This is exactly what i saw.. So there's no project right now which tried that one right?
too bad..
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 03, 2012, 05:51:02 pm
Friend, probably what you want is like this:

http://www.raphaelz.com.br/pessoal/kzdesktop01.png
http://www.raphaelz.com.br/pessoal/kzdesktop02.png
http://www.raphaelz.com.br/pessoal/kzdesktop03.png

This interface is part of one of my projects to Lazarus - I call it "KZ Desktop" - is simply a package after it is installed, just like any other package, transforms the lazarus IDE style as a visual studio. It's still in alpha state, but so is more stable, I will release to the staff here.

No need to make any changes in the lazarus source code, and works on windows and linux.

hugs
Title: Re: Merged Form Designer?
Post by: BigChimp on July 03, 2012, 06:40:16 pm
Interesting screenshots, RaphaelZ - looking forward to your contribution.

I'm always chasing IDE windows on my desktop... sounds like this could be nice solution!
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 03, 2012, 06:57:06 pm
Thank you ...
It was a few months I'm working on this project, and there are still fixing some bugs, but hopefully will soon be ready for use by all; In addition, I tested the design on Windows and Linux ... I believe it is a good solution for those who miss the delphi IDE as visual studio ...

If I worked in the code of Lazarus, the project would be perfect, but as I want to avoid that the user is required to make these changes every time it is launched a new version of lazarus, I created the project as a package.
Title: Re: Merged Form Designer?
Post by: BigChimp on July 03, 2012, 07:53:04 pm
Raphaelz, regardless of the quality/status of your code, you might want to upload it to a repository such as google code, github, bitbucket or sourceforge.

Perhaps some other people want to have a look at it and may have improvements... of course I understand that you would rather clean things up if it is hardly understandable, but even then, you can always warn people ;) (Edit: and once you put it up on bitbucket etc, you can still edit the code and upload the changes using subversion, mercurial/hg or git...)

Finally, depending on the devs, and your modifications, it may well become part of the official code for the people that prefer a single window setup...
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 03, 2012, 08:17:39 pm
Yes ..
My intention is to put it on a SVN - probably on sourceforge. I have not published the project because the controller window that I created has a bug that can irritate a lot of people ... But this week I found the solution and is almost ready, I will probably post this week; Another detail is that I have to separate this package from another project. The other project is a suite of components that greatly facilitate the development with databases... Soon I will bring news  ;)
Title: Re: Merged Form Designer?
Post by: BigChimp on July 03, 2012, 08:18:25 pm
Great. Thanks a lot!
Title: Re: Merged Form Designer?
Post by: Leledumbo on July 04, 2012, 06:20:20 am
WUOOOW!!! Looks cool :o
I'll be waiting for the downloads...
Title: Re: Merged Form Designer?
Post by: dr4cul453xy on July 04, 2012, 07:11:54 am
Cant wait to have this layout on my IDE,.. *wink O:-)
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 04, 2012, 10:19:56 pm
Hello folks ...
I put the project on sourceforge; The link to the SVN is this:

svn://svn.code.sf.net/p/kzdesktop/code/trunk

instructions:
Get the files via SVN, and install the package "kzdesktop_ide.lpk";
After installation, in lazarus, go to the menu "Tools \ KZDesktop - Start", and after that, restart Lazarus.

Remember that the project is still in development, there are some bugs that I am solving. If an error occurs that does not leave the starting lazarus, go to the lazarus folder and delete the file 'kzdesktop.cfg'. I hope it help!

For future information, may accompany my website http://www.raphaelz.com.br

Sure, I'll be here in the forum also    8)
Title: Re: Merged Form Designer?
Post by: Mando on July 05, 2012, 01:34:37 pm
Hello!!!

I love it. It works fine. Thanks a lot. (muito obrigado)

But, F12 doesn't  change  from "design editor" to "source editor". However, it does change  from  "source editor" to "design editor".
It's possile to correct that?


regards.



Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 05, 2012, 01:43:58 pm
Hello .. This happens on Linux, right? I've solved this problem but have not put in SVN, I believe that by the end of the day the solution is in SVN ...

Aguarde! ;)
Title: Re: Merged Form Designer?
Post by: Leledumbo on July 05, 2012, 03:33:18 pm
I got my source editor, messages, and form designer flying unreachable (they got no border as well) %)
I'm using latest svn btw (1.1)
Title: Re: Merged Form Designer?
Post by: Mando on July 05, 2012, 05:57:42 pm
Hello:

Quote
Hello .. This happens on Linux, right? I've solved this problem but have not put in SVN, I believe that by the end of the day the solution is in SVN ...

Aguarde! (http://www.lazarus.freepascal.org/Smileys/ExcellentSmileys1/wink.gif)

No, I use XP.

By the way, Is yours the project "EXACTA Contabilidade"? Is it free/open source?

regards

Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 05, 2012, 05:59:05 pm
I got my source editor, messages, and form designer flying unreachable (they got no border as well) %)
I'm using latest svn btw (1.1)

I see that you have version 1.1 of lazarus, I rode up the process in the official version 0.9.30.4 ... The handles of the windows should be different in this version, I'm working on some changes that might resolve it, and then they are ready, I transmit them so that you can test ...

hugs
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 05, 2012, 06:01:38 pm
Hello:

Quote
Hello .. This happens on Linux, right? I've solved this problem but have not put in SVN, I believe that by the end of the day the solution is in SVN ...

Aguarde! (http://www.lazarus.freepascal.org/Smileys/ExcellentSmileys1/wink.gif)

No, I use XP.

By the way, Is yours the project "EXACTA Contabilidade"? Is it free/open source?

regards

The project I'm working on windows 7 and debian ... I'll do some testing on XP

The "Exacta" is a project of my job, it's not open source ....
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 06, 2012, 08:47:54 pm
I got my source editor, messages, and form designer flying unreachable (they got no border as well) %)
I'm using latest svn btw (1.1)

I released a version that can work; If not, open the file 'kzdesktop.log' who will be in the folder of Lazarus, and post the contents here ...

 8)
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 06, 2012, 10:29:25 pm
Hello!!!

I love it. It works fine. Thanks a lot. (muito obrigado)

But, F12 doesn't  change  from "design editor" to "source editor". However, it does change  from  "source editor" to "design editor".
It's possile to correct that?

regards.

I released a version and did some testing on Windows XP, here, on a machine with windows xp, the F12 worked; Try to update now!

Title: Re: Merged Form Designer?
Post by: Leledumbo on July 08, 2012, 06:39:03 am
Quote
I released a version that can work; If not, open the file 'kzdesktop.log' who will be in the folder of Lazarus, and post the contents here ...
Here you go:
Quote
2012-07-07 10:40:17 -> SourceNotebook on MainIDEFormShow is Nil
2012-07-07 10:40:17 -> ObjectInspectorDlg on MainIDEFormShow is Nil
2012-07-07 10:40:17 -> SetupLazForm(MessagesView) successful.
2012-07-07 10:40:17 -> SetupLazForm(SourceNotebook) successful.
2012-07-07 10:40:17 -> SetupLazForm(Form1) successful.
2012-07-08 11:36:13 -> SourceNotebook on MainIDEFormShow is Nil
2012-07-08 11:36:13 -> ObjectInspectorDlg on MainIDEFormShow is Nil
2012-07-08 11:36:13 -> SetupLazForm(MessagesView) successful.
2012-07-08 11:36:13 -> SetupLazForm(SourceNotebook) successful.
2012-07-08 11:36:45 -> SetupLazForm(SourceNotebook) successful.
2012-07-08 11:36:45 -> SetupLazForm(Form1) successful.
Title: Re: Merged Form Designer?
Post by: SunyD on July 08, 2012, 06:32:12 pm
KZDesktop is great  :)
I installed and tested it on WinXp, Lazarus 1.1 (from 2012-05-17), fpc 2.6.1.
You must uninstall first AnchorDock-Package.
It's working with small errrors.
1. Not all Buttons on the Left top area are visible.
2. If you open any dialog like finddialog the focus don't return to source editor.

I think object-inspector should on the leftside.
Object, projekt and code-inspector could docked on the same place.

Raphael thanks for this good work!
Title: Re: Merged Form Designer?
Post by: Leledumbo on July 08, 2012, 06:34:24 pm
Quote
I think object-inspector should on the leftside.
Object, projekt and code-inspector could docked on the same place.
Like my current setup with easy dock manager: object inspector + project inspector + code browser on the left, docked under the same window with tabs.

EDIT: I've managed to dock the code explorer on the left, in its own panel. I'll attach if somebody wants it too.
Title: Re: Merged Form Designer?
Post by: SunyD on July 08, 2012, 07:44:54 pm
I made some changes on kzlazdesktop.pas to show the toolbars right.

Use only if your toolbuttons not shown!

Code: [Select]
procedure TKZLazDesktopInterface.SetupDefaultBars;
var aToolBarDeb, aToolBarStd : TToolbar; //SunyD
    i,w: integer; //Sunyd
begin

  with TKZLazDesktopInterface(Self) do
  begin

    if
      (pnlSpeedButtons = nil)
    then
      Exit;

    with pnlSpeedButtons do
    begin
      //Suny: Added from me
      aToolBarStd :=TToolBar(FindChildControl('tbStandard'));
       aToolBarStd.EdgeBorders:=[];
       aToolBarStd.Wrapable:=false;
       aToolBarStd.Align:=alNone;
       w:=0;
       for i:=0 to aToolBarStd.ControlCount-1 do
         w:=w+aToolBarStd.Controls[i].Width;
         aToolBarStd.SetBounds(BorderWidth,BorderWidth,w+2,aToolBarStd.ButtonHeight);

      aToolBarDeb :=TToolBar(FindChildControl('tbViewDebug'));
       aToolBarDeb.EdgeBorders:=[];
       aToolBarDeb.Wrapable:=false;
       aToolBarDeb.Align:=alNone;
       w:=0;
       for i:=0 to aToolBarDeb.ControlCount-1 do
         w:=w+aToolBarDeb.Controls[i].Width;
       aToolBarDeb.SetBounds(aToolBarStd.Left+aToolBarStd.Width,BorderWidth,w+2,aToolBarDeb.ButtonHeight);
      //End ... Suny: Added from me

      {Code from Raphael
      TToolBar(FindChildControl('tbViewDebug')).Align := alLeft;
      TToolBar(FindChildControl('tbStandard')).Align := alLeft;
      }

      Align := alClient;
      Parent := pnMenu;
    end;

    if ComponentPageControl <> nil then
    begin

      {$IFDEF MSWINDOWS}
      pnComponents.Height := GetSystemMetrics(SM_CYCAPTION) + 35;
      {$ELSE}
      pnComponents.Height := 75;
      {$ENDIF}

      ComponentPageControl.Parent := pnComponents;

    end;

  end;

end;   
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 09, 2012, 01:37:08 pm
I made some changes on kzlazdesktop.pas to show the toolbars right.

Use only if your toolbuttons not shown!

Code: [Select]
procedure TKZLazDesktopInterface.SetupDefaultBars;
var aToolBarDeb, aToolBarStd : TToolbar; //SunyD
    i,w: integer; //Sunyd
begin

  with TKZLazDesktopInterface(Self) do
  begin

    if
      (pnlSpeedButtons = nil)
    then
      Exit;

    with pnlSpeedButtons do
    begin
      //Suny: Added from me
      aToolBarStd :=TToolBar(FindChildControl('tbStandard'));
       aToolBarStd.EdgeBorders:=[];
       aToolBarStd.Wrapable:=false;
       aToolBarStd.Align:=alNone;
       w:=0;
       for i:=0 to aToolBarStd.ControlCount-1 do
         w:=w+aToolBarStd.Controls[i].Width;
         aToolBarStd.SetBounds(BorderWidth,BorderWidth,w+2,aToolBarStd.ButtonHeight);

      aToolBarDeb :=TToolBar(FindChildControl('tbViewDebug'));
       aToolBarDeb.EdgeBorders:=[];
       aToolBarDeb.Wrapable:=false;
       aToolBarDeb.Align:=alNone;
       w:=0;
       for i:=0 to aToolBarDeb.ControlCount-1 do
         w:=w+aToolBarDeb.Controls[i].Width;
       aToolBarDeb.SetBounds(aToolBarStd.Left+aToolBarStd.Width,BorderWidth,w+2,aToolBarDeb.ButtonHeight);
      //End ... Suny: Added from me

      {Code from Raphael
      TToolBar(FindChildControl('tbViewDebug')).Align := alLeft;
      TToolBar(FindChildControl('tbStandard')).Align := alLeft;
      }

      Align := alClient;
      Parent := pnMenu;
    end;

    if ComponentPageControl <> nil then
    begin

      {$IFDEF MSWINDOWS}
      pnComponents.Height := GetSystemMetrics(SM_CYCAPTION) + 35;
      {$ELSE}
      pnComponents.Height := 75;
      {$ENDIF}

      ComponentPageControl.Parent := pnComponents;

    end;

  end;

end;   

SunyD, Thank you! I put it in SVN if you want, you can update your SVN to keep up with the other updates

Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 09, 2012, 01:41:57 pm
Quote
I think object-inspector should on the leftside.
Object, projekt and code-inspector could docked on the same place.
Like my current setup with easy dock manager: object inspector + project inspector + code browser on the left, docked under the same window with tabs.

EDIT: I've managed to dock the code explorer on the left, in its own panel. I'll attach if somebody wants it too.

Is working with you now? ... I started working with an option for the Object Inspector can stay on the left, will soon be released! :D
Title: Re: Merged Form Designer?
Post by: Leledumbo on July 09, 2012, 02:11:11 pm
Quote
Is working with you now?
Not with the 1.1 version at home, I have 0.9.30.4 at office as well and that's where I use and modify it ;)
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 09, 2012, 02:33:51 pm
Quote
Is working with you now?
Not with the 1.1 version at home, I have 0.9.30.4 at office as well and that's where I use and modify it ;)

Well .. I'm working on the project here; Any suggestions you have to work with you or any improvement, I can pass here to update the SVN

 ;D
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 09, 2012, 03:01:19 pm
I think object-inspector should on the leftside.
Object, projekt and code-inspector could docked on the same place.

Done! rs... I created a screen options in tools menu ; There you can select the left or right ;)

Obs: Update your SVN
Title: Re: Merged Form Designer?
Post by: Leledumbo on July 09, 2012, 03:48:48 pm
Quote
Well .. I'm working on the project here; Any suggestions you have to work with you or any improvement, I can pass here to update the SVN
Since the code is in my office's computer, I can't attach here. However, the addition is very trivial (on r26, I haven't seen the r28):

1. Add package called ide as dependency (codeexplorer unit is part of this package)
2. In klazdesktop.pas: Add codeexplorer to the uses clausePut another panel (say pnCodeExplorer) and splitter, on the left
3. Add TKZLazDesktopInterface.IsCodeExplorerView which is as simple as:
Code: [Select]
function TKZLazDesktopInterface.IsCodeExplorerView(fm: TCustomForm): boolean;
begin
  Result := (fm.ClassName = 'TCodeExplorerView');
end;
4. Add:
Code: [Select]
function TKZLazDesktopInterface.CodeExplorerView: TCodeExplorerView;
begin
  Result := TCodeExplorerView(Screen.FindForm('CodeExplorerView'));
end;
5. Last but not least, in TKZLazDesktopInterface.ScreenActiveFormChange, add:
Code: [Select]
if IsCodeExplorerView(Screen.ActiveForm) then
    begin
      SetupLazForm(Screen.ActiveForm, pnCodeExplorer);
    end;
Now I get code explorer on the left ;)
Please adapt the code for r28
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 09, 2012, 04:30:23 pm
Quote
Well .. I'm working on the project here; Any suggestions you have to work with you or any improvement, I can pass here to update the SVN
Since the code is in my office's computer, I can't attach here. However, the addition is very trivial (on r26, I haven't seen the r28):

1. Add package called ide as dependency (codeexplorer unit is part of this package)
2. In klazdesktop.pas: Add codeexplorer to the uses clausePut another panel (say pnCodeExplorer) and splitter, on the left
3. Add TKZLazDesktopInterface.IsCodeExplorerView which is as simple as:
Code: [Select]
function TKZLazDesktopInterface.IsCodeExplorerView(fm: TCustomForm): boolean;
begin
  Result := (fm.ClassName = 'TCodeExplorerView');
end;
4. Add:
Code: [Select]
function TKZLazDesktopInterface.CodeExplorerView: TCodeExplorerView;
begin
  Result := TCodeExplorerView(Screen.FindForm('CodeExplorerView'));
end;
5. Last but not least, in TKZLazDesktopInterface.ScreenActiveFormChange, add:
Code: [Select]
if IsCodeExplorerView(Screen.ActiveForm) then
    begin
      SetupLazForm(Screen.ActiveForm, pnCodeExplorer);
    end;
Now I get code explorer on the left ;)
Please adapt the code for r28

Ok, I'm working on it ... One detail about the 'ide' package is that I've thought about using it, but when tested in a Lazarus installed on a debian, I discovered that the package IDE is not public to compile (in the linux debian), and for security, I'm avoiding the ide, to maintain compatibility with most people ...
Title: Re: Merged Form Designer?
Post by: SunyD on July 09, 2012, 05:14:44 pm
I think object-inspector should on the leftside.
Object, projekt and code-inspector could docked on the same place.

Done! rs... I created a screen options in tools menu ; There you can select the left or right ;)

Obs: Update your SVN

yesterday I changed selft your code and placed it left :)
I check your changes now.
Of course you can take my little changes and put it in your code, always.
Title: Re: Merged Form Designer?
Post by: SunyD on July 09, 2012, 05:29:18 pm
Maybe it's better to change Lazarus source and put designer in die Sourceeditor:
One Button on Statusbar to switch (one hidden other visible) between SynEdit and formdesigner.

For the other things is AnchorDock-Package very good.
Title: Re: Merged Form Designer?
Post by: wp on July 09, 2012, 06:22:35 pm
Very nice! F12, however, is not working from form designer to editor - it is working the other way, though.
(r28).
Title: Re: Merged Form Designer?
Post by: SunyD on July 09, 2012, 06:33:53 pm
I updated from svn it's great.

Raphael, yesterday i forget to post 1 code line to avoid useless space under toolbars here is it. If anybody want it:
Code: [Select]
procedure TKZLazDesktopInterface.SetupDefaultBars;
......
      //End ... Suny: Added from me

      {Code from Raphael
      TToolBar(FindChildControl('tbViewDebug')).Align := alLeft;
      TToolBar(FindChildControl('tbStandard')).Align := alLeft;
      }

     //only this line below is new:
      pnMenu.Height:=aToolBarStd.Height+2;   //Added from Suny;
     //end of : only this line below is new

      Align := alClient;
      Parent := pnMenu;   

Screenshot:
Title: Re: Merged Form Designer?
Post by: Leledumbo on July 09, 2012, 06:57:05 pm
I just remembered an idea. It's better to show what's relevant to current context, so if the active tab is source editor, display code explorer, if the active tab is design editor, display object inspector. That way a lot of screen spaces could be saved.
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 09, 2012, 07:05:56 pm
I updated from svn it's great.

Raphael, yesterday i forget to post 1 code line to avoid useless space under toolbars here is it. If anybody want it:
Code: [Select]
procedure TKZLazDesktopInterface.SetupDefaultBars;
......
      //End ... Suny: Added from me

      {Code from Raphael
      TToolBar(FindChildControl('tbViewDebug')).Align := alLeft;
      TToolBar(FindChildControl('tbStandard')).Align := alLeft;
      }

     //only this line below is new:
      pnMenu.Height:=aToolBarStd.Height+2;   //Added from Suny;
     //end of : only this line below is new

      Align := alClient;
      Parent := pnMenu;   

Screenshot:

Added!
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 09, 2012, 07:08:45 pm
I just remembered an idea. It's better to show what's relevant to current context, so if the active tab is source editor, display code explorer, if the active tab is design editor, display object inspector. That way a lot of screen spaces could be saved.

I'm still doing some tests with the shortcut keys, but I consider it because you're right ... The keys should work as closely as possible to the original IDE ;)
Title: Re: Merged Form Designer?
Post by: SunyD on July 09, 2012, 07:12:46 pm
I just remembered an idea. It's better to show what's relevant to current context, so if the active tab is source editor, display code explorer, if the active tab is design editor, display object inspector. That way a lot of screen spaces could be saved.
This was also my idea, i was looking how to make it.
Yet my code explorer ist gone, it is unvisible# i must find it.

Another small bug is, you have more sources with forms opened, if you change formdesigner tab than form designer shows always the last opened form not the actually from source-editor. You have to press f12 or klick [change unit/form]-Button.
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 09, 2012, 07:44:25 pm
I just remembered an idea. It's better to show what's relevant to current context, so if the active tab is source editor, display code explorer, if the active tab is design editor, display object inspector. That way a lot of screen spaces could be saved.
This was also my idea, i was looking how to make it.
Yet my code explorer ist gone, it is unvisible# i must find it.

Another small bug is, you have more sources with forms opened, if you change formdesigner tab than form designer shows always the last opened form not the actually from source-editor. You have to press f12 or klick [change unit/form]-Button.

I was making some changes here, and now I work with shortcut keys ...

The changes I made (released now) are:
A panel for the code explorer;
A 'component find' in the components palette (very cool)

I'll start tinkering with the shortcuts now  ;)
Title: Re: Merged Form Designer?
Post by: SunyD on July 10, 2012, 01:50:53 am
I put code-explorer and object-inspector in PageCtrl and it will automatically bring to front what you selected. See screenshot above.
If you want it take to your code than here is what I made:
1. In Formular I created Pacecontrol (pcInspectors) with 2 tabsheets(tsObjInspector, tsCodeExplorer) and placed it where pnObjectInspector was.
2. I placed pnObjectInspector in to  tsObjInspector with aligned:=alCLient property
3. I placed pnCodeExplorer in to  tsCodeExplorer with aligned:=alCLient property.
4. Splitter1 between pnCodeExplorer and source-editor deleted, because it doesn't needed more.

5. In source-file:
Code: [Select]


procedure TKZLazDesktopInterface.ScreenActiveFormChange(Sender: TObject);
.......
    if IsSourceEditor(Screen.ActiveForm) then
    begin
      SetupLazForm(Screen.ActiveForm, pnCodeEditor);
      pcCorpo.ActivePageIndex := 0;
LINE ~870:
      pcInspectors.ActivePage:=tsCodeExplorer;//suny, added for pcInspectors

      if SourceNotebook.OnActivate <> @SourceNotebookActive then
...


if IsCodeExplorerView(Screen.ActiveForm) then
    begin
      //spCodeExplorer.AnchorSplitter(akRight, pnCodeExplorer);
      pnCodeExplorer.Visible := True;
LINE ~935
      //suny for pcInspectors deleted: Splitter1.Visible := True;
....

      end;

      pcCorpo.ActivePage := tsFormEditor;
LINE ~1030
      pcInspectors.ActivePage:=tsObjInspector;//suny, added for pcInspectors
    end;

............................

procedure TKZLazDesktopInterface.UpdateFromOptions;
begin

  if LoadCFG('Layout', 'ObjectInspectorPanel', 'right') = 'left' then
  begin

LINE ~1398:
    pcInspectors.Align := alLeft; //suny, changed for pcInspectors, old was: pnObjectInspector.Align := alLeft;
    spObjectInspector.Align := alLeft; //suny, added for pcInspectors, splitter was not aligned
     spObjectInspector.Left:=pcInspectors.Left+pcInspectors.Width+2; //suny, added for pcInspectors, splitter was not aligned


    //spObjectInspector.AnchorSplitter(akRight, pnCorpo);
    pnFindComponent.Align := alLeft;
  end
  else
  begin
LINE ~1498:
    pcInspectors.Align := alRight; //suny, changed for pcInspectors, old was: pnObjectInspector.Align := alRight;
    spObjectInspector.Align := alRight; //suny, added for pcInspectors, splitter was not aligned
     spObjectInspector.Left:=pcInspectors.Left-spObjectInspector.Width-2; //suny, added for pcInspectors, splitter was not aligned

    //spObjectInspector.AnchorSplitter(akLeft, pnCorpo);
    pnFindComponent.Align := alRight;
  end;




Also I uploaded 2 changed files, if you need it.

RaphaelZ if you take my code parts to your svn, you can remove all my comments. I make it to know what i changed.


Screenshots:
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 10, 2012, 01:42:05 pm
I put code-explorer and object-inspector in PageCtrl and it will automatically bring to front what you selected. See screenshot above.
If you want it take to your code than here is what I made:
1. In Formular I created Pacecontrol (pcInspectors) with 2 tabsheets(tsObjInspector, tsCodeExplorer) and placed it where pnObjectInspector was.
2. I placed pnObjectInspector in to  tsObjInspector with aligned:=alCLient property
3. I placed pnCodeExplorer in to  tsCodeExplorer with aligned:=alCLient property.
4. Splitter1 between pnCodeExplorer and source-editor deleted, because it doesn't needed more.

Okay .. You gave a great idea, I'll change here to be equal to what you did, but I will also create more options for where to put things  ;)
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 10, 2012, 07:17:37 pm
I put code-explorer and object-inspector in PageCtrl and it will automatically bring to front what you selected. See screenshot above.
If you want it take to your code than here is what I made:
1. In Formular I created Pacecontrol (pcInspectors) with 2 tabsheets(tsObjInspector, tsCodeExplorer) and placed it where pnObjectInspector was.
2. I placed pnObjectInspector in to  tsObjInspector with aligned:=alCLient property
3. I placed pnCodeExplorer in to  tsCodeExplorer with aligned:=alCLient property.
4. Splitter1 between pnCodeExplorer and source-editor deleted, because it doesn't needed more.

Okay .. You gave a great idea, I'll change here to be equal to what you did, but I will also create more options for where to put things  ;)

Here I am again ... I released a new option in SVN (on 'Desktop KZ - Options' menu) to select where you want the code explorer, I hope you enjoyed!
Title: Re: Merged Form Designer?
Post by: snorkel on July 12, 2012, 10:12:22 pm
Friend, probably what you want is like this:

http://www.raphaelz.com.br/pessoal/kzdesktop01.png
http://www.raphaelz.com.br/pessoal/kzdesktop02.png
http://www.raphaelz.com.br/pessoal/kzdesktop03.png

This interface is part of one of my projects to Lazarus - I call it "KZ Desktop" - is simply a package after it is installed, just like any other package, transforms the lazarus IDE style as a visual studio. It's still in alpha state, but so is more stable, I will release to the staff here.

No need to make any changes in the lazarus source code, and works on windows and linux.

hugs

Wow, this looks great.  Amazing how Lazarus is getting many of the features of Delphi but does not use one bit of .net garbage.
Will this work with the 1.1 version from the nightly win32 builds?
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 13, 2012, 01:50:49 pm
Friend, probably what you want is like this:

http://www.raphaelz.com.br/pessoal/kzdesktop01.png
http://www.raphaelz.com.br/pessoal/kzdesktop02.png
http://www.raphaelz.com.br/pessoal/kzdesktop03.png

This interface is part of one of my projects to Lazarus - I call it "KZ Desktop" - is simply a package after it is installed, just like any other package, transforms the lazarus IDE style as a visual studio. It's still in alpha state, but so is more stable, I will release to the staff here.

No need to make any changes in the lazarus source code, and works on windows and linux.

hugs

Wow, this looks great.  Amazing how Lazarus is getting many of the features of Delphi but does not use one bit of .net garbage.
Will this work with the 1.1 version from the nightly win32 builds?

I'm not very good with English, but from what I understand, you asked to work with Lazarus IDE 1.1 and windows? If so, I can say that it works with windows, because I test on windows xp and also in windows seven. There are users who are using version 1.1
Title: Re: Merged Form Designer?
Post by: Leledumbo on July 13, 2012, 07:32:14 pm
I still can't make it work with 1.1 (two days ago revision), I'll investigate when I have time.

Anyway, the r33 in my office looks damn great, especially since I just get a new computer with wide screen monitor. I call that effective interface: code explorer gets activated when code editor is activated, while object inspector gets activated when design editor is activated, wonderful... :D
Title: Re: Merged Form Designer?
Post by: SunyD on July 14, 2012, 04:30:55 pm
I updated today from svn.
It have still some bugs one new bug. (I have Lazarus 1.1 dailysnapshot from 2012-05-17, fpc 2.6.1, WinXP)
1.  Find Component doesn't work
2. In ObjectInspector, you can't navigate between properties with scroll-keys.
3. Cpu Usage from Lazarus raised to %50. (Maybe only on my pc with my Lazarus version)
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 14, 2012, 05:40:11 pm
I'll try to set up a 1.1 lazarus here so I can work on it ... I always test the KZ on a windows XP, a Windows Seven, and a Debian. But do this with version 9.30 of lazarus...

If you have suggestions, you may say!    8)
Title: Re: Merged Form Designer?
Post by: Leledumbo on July 20, 2012, 06:48:07 pm
Looks like I've found a bug: pressing OK button in options form with kzdesktop stopped would cause access violation on TKZLazDesktopInterface.UpdateFromOptions.

I also think I've found Lazarus 1.1 problem:, SourceNotebook and ObjectInspectorDlg don't exist yet on MainIDE.OnShow which is why the docking fails. Same case with the form in design editor.

EDIT:
For the source editor, Martin gives a solution here (http://free-pascal-lazarus.989080.n3.nabble.com/Need-help-to-get-IDE-forms-object-td4024867.html), you might want to try. I want to get some sleep now (00:44 A.M. here).

EDIT2:
Martin's solution does work, though only for source editor :)
Code: [Select]
procedure TKZLazDesktopInterface.SourceEditorCreate(TheOwner: TObject);
begin
  if SourceNotebook <> Nil then
    SetupLazForm(SourceNotebook, pnCodeEditor)
  else
    SaveLog('SourceNotebook on MainIDEFormShow is Nil');
end;
...
procedure TKZLazDesktopInterface.Execute;
begin
  ...
  SourceEditorManagerIntf.RegisterChangeEvent(semWindowCreate,@SourceEditorCreate);
  ...
end;
Title: Re: Merged Form Designer?
Post by: bdexterholland on July 21, 2012, 02:09:43 pm
I got r34 some minutes ago and i can't compile it. Compiler breaks on line 637 of KZLazDesktop.pas. Compiler returns:
/usr/lib64/lazarus/components/kzdesktop/kzlazdesktop.pas(637,31) Error: Identifier not found "SourceEditorWindow"

How can i fix it?

http://imagebin.org/221639
Title: Re: Merged Form Designer?
Post by: Leledumbo on July 21, 2012, 02:18:27 pm
Replace with SourceNotebook
Title: Re: Merged Form Designer?
Post by: JD on July 23, 2012, 12:46:44 pm
My goodness. I just tried this IDE layout today. I'm breathless. It looks great. Very promising. I'll be sure to report any bugs I find.

Thanks a lot.

JD
Title: Re: Merged Form Designer?
Post by: Leledumbo on July 23, 2012, 01:38:10 pm
Hi RaphaelZ, I finally got the solution that works on Lazarus 1.1:
Code: [Select]

procedure TKZLazDesktopInterface.DockEmAll;
begin
  SetupLazForm(IDEWindowCreators.GetForm('SourceNotebook',true), pnCodeEditor);
  SetupLazForm(IDEWindowCreators.GetForm('MessagesView',true), pnMessages);
  SetupLazForm(IDEWindowCreators.GetForm('CodeExplorerView',true), tsCodeExplorer);
  SetupLazForm(IDEWindowCreators.GetForm('ObjectInspectorDlg',true), tsObjectInspector);
  // we could also dock project inspector if needed
  // SetupLazForm(IDEWindowCreators.GetForm('ProjectInspector',true), somepanel);
end;

procedure TKZLazDesktopInterface.Execute;
begin
  ...
  // this is the key event handler
  LazarusIDE.AddHandlerOnIDERestoreWindows(@DockEmAll);
  ...
end;
Please test and apply on the next revision if you're OK with it :D
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 23, 2012, 03:31:02 pm
Hi RaphaelZ, I finally got the solution that works on Lazarus 1.1:
Code: [Select]

procedure TKZLazDesktopInterface.DockEmAll;
begin
  SetupLazForm(IDEWindowCreators.GetForm('SourceNotebook',true), pnCodeEditor);
  SetupLazForm(IDEWindowCreators.GetForm('MessagesView',true), pnMessages);
  SetupLazForm(IDEWindowCreators.GetForm('CodeExplorerView',true), tsCodeExplorer);
  SetupLazForm(IDEWindowCreators.GetForm('ObjectInspectorDlg',true), tsObjectInspector);
  // we could also dock project inspector if needed
  // SetupLazForm(IDEWindowCreators.GetForm('ProjectInspector',true), somepanel);
end;

procedure TKZLazDesktopInterface.Execute;
begin
  ...
  // this is the key event handler
  LazarusIDE.AddHandlerOnIDERestoreWindows(@DockEmAll);
  ...
end;
Please test and apply on the next revision if you're OK with it :D

Cool, thanks!

I will test now and then put it in SVN ;)

EDIT: The changes were recorded in SVN, I changed some things, but I believe that everything will work fine. Thanks, Leledumbo :D

Title: Re: Merged Form Designer?
Post by: Leledumbo on July 23, 2012, 05:38:48 pm
There are still some bugs, but it advances:
The first two are easily fixed, I attach them. Don't know about the last two yet...
Title: Re: Merged Form Designer?
Post by: BigChimp on July 23, 2012, 05:50:34 pm
Just posted on the Lazarus mailing list with a link to this thread to spread the news ;)

Have just tried kzdesktop on x86 Lazarus trunk (1.1) with FPC 2.6.1, Windows Vista x64; it seems the component palette icons flicker some when selecting the form view...

Trying to integrate kzdesktop into my fpcup installer (already added the repository to fpcup.ini).... but I think I'm hitting an fpcup bug: the IDE doesn't seem to get rebuilt after selecting packages in fpcup... so first looking at that.

I might have a look at the kzdesktop sourcecode later on...

Keep up the good work & thanks,
BigChimp
Title: Re: Merged Form Designer?
Post by: JD on July 23, 2012, 05:59:01 pm
I think I found a bug. The "Find Component" edit box (in the Design Editor) does not seem to work. I never get any results whenever I try to search for components using it.

JD

Lazarus 1.1/FPC 2.6.1 svn 37865 on Win32
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 23, 2012, 07:43:01 pm
I'm installing lazarus 1.1 to better be able to test the bugs that are telling me, soon I will bring something new ;)

Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 23, 2012, 08:18:13 pm
There are still some bugs, but it advances:
  • The OK button bug on options dialog when KZDesktop is stopped is still there, this is because of the last statement in OKButtonClick: KZLazDesktopInterface.UpdateFromOptions. A checking should be done whether KZLazDesktopInterface is nil or not
  • At the first time everything is docked, but when you try to load a project, then the source editor flies again
  • Opening any package will first trigger Access Violation, but pressing OK after that works fine
  • The design editor form is invisible, I can put controls on the form but I can't see the bounds
The first two are easily fixed, I attach them. Don't know about the last two yet...

I saw your file; I just fix some bugs, update your SVN ;)

(rev. 36)
Title: Re: Merged Form Designer?
Post by: avra on July 24, 2012, 09:53:51 am
Hi RaphaelZ, I finally got the solution that works on Lazarus 1.1
Thank you both so much  :)
Title: Re: Merged Form Designer?
Post by: BigChimp on July 24, 2012, 12:30:19 pm
Thanks for the update in r36!

Some bugs on my Lazarus x86 svn r, FPC 2.6.1 x86, on Windows Vista x64:

Thanks,
BigChimp
Title: Re: Merged Form Designer?
Post by: BigChimp on July 24, 2012, 01:51:53 pm
Attached a diff against svn revision 36 that fixes just some typos:
(Package Viewner=>Package Viewer, license clarification)

I've attached changed files as well as svnversion_typos.diff

Sorry, just a small contribution, but it's meant well ;)
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 24, 2012, 05:44:23 pm
Attached a diff against svn revision 36 that fixes just some typos:
(Package Viewner=>Package Viewer, license clarification)

I've attached changed files as well as svnversion_typos.diff

Sorry, just a small contribution, but it's meant well ;)

Thanks for the changes!
I included your changes in the sources;
I am currently working on correcting the key functions, such as the F12 for example ...
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 25, 2012, 09:35:17 pm
Attached a diff against svn revision 36 that fixes just some typos:
(Package Viewner=>Package Viewer, license clarification)

I've attached changed files as well as svnversion_typos.diff

Sorry, just a small contribution, but it's meant well ;)

Thanks for the changes!
I included your changes in the sources;
I am currently working on correcting the key functions, such as the F12 for example ...

Hello ..
The revision 38 is available with more bug fixes.
Download with the SVN and test!

Sure, there are still some bugs, but I'm fixing the bugs

;)
Title: Re: Merged Form Designer?
Post by: greenie on July 25, 2012, 10:26:37 pm
Hi RaphaelZ

Great job. Just one problem I have encountered using Lazarus 1.1 SVN. When using the design editor Lazarus.exe uses almost 50% cpu. It does not do this with Lazarus 0.9.30.4. Thanks for all your work on this.
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 25, 2012, 10:31:16 pm
Hi RaphaelZ

Great job. Just one problem I have encountered using Lazarus 1.1 SVN. When using the design editor Lazarus.exe uses almost 50% cpu. It does not do this with Lazarus 0.9.30.4. Thanks for all your work on this.

Someone had commented this; I particularly noticed this only on a pc with a debian system. But I'll be checking  ;)

Welcome to the forum!

Title: Re: Merged Form Designer?
Post by: greenie on July 25, 2012, 10:34:38 pm
Hi RaphaelZ

I should have said I am using Windows Vista 32 bit. I can't remember if it happens on Windows XP 64 bit or not.
Title: Re: Merged Form Designer?
Post by: a.atalla on July 25, 2012, 11:20:30 pm
Lazarus svn 1.1   Gtk toolkit
kzdesktop  (rev38)
Linux fedora 17

i can't switch between different forms in the same project .
also some times i get this white squar on top of the source editor  and sometimes not .
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 25, 2012, 11:27:27 pm
Hi RaphaelZ

I should have said I am using Windows Vista 32 bit. I can't remember if it happens on Windows XP 64 bit or not.

Curious ... In the beginning, the project actually used very cpu resources, but now, with the systems I tested, it is well ...

I will check it
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 25, 2012, 11:30:49 pm
Lazarus svn 1.1   Gtk toolkit
kzdesktop  (rev38)
Linux fedora 17

i can't switch between different forms in the same project .
also some times i get this white squar on top of the source editor  and sometimes not .

Hmm .. I saw this on a linux I tested here, but in others it does not appear ... I go see it
Title: Re: Merged Form Designer?
Post by: IndianaJones on July 26, 2012, 11:24:27 am

The project is fine and looks cool, thanks for developing and contributing it.
I have tested with win7 and mac os x. I t looks fine in win7 but some problems in mac version.
The problem in mac version is Design Editor doesnt show the TForm, can you have a look if you dont mind?
If you need any screenshot, i can post in here.
Thanks.
Title: Re: Merged Form Designer?
Post by: IndianaJones on July 26, 2012, 11:49:30 am

Here is the screenshot, hope it gives any clue to solve the problem.
Thanks.
Title: Re: Merged Form Designer?
Post by: Leledumbo on July 26, 2012, 01:40:29 pm
Quote
The problem in mac version is Design Editor doesnt show the TForm, can you have a look if you dont mind?
See #4 of my latest comment. It happens on 1.1 but not on 0.9.30.4. Apparently you have 1.1 on Mac, what version do you have on Win?
Title: Re: Merged Form Designer?
Post by: IndianaJones on July 26, 2012, 05:51:45 pm

I have tested 1.1 svn number 37865 on win7 platform and works fine. It doesnt work 1.1 svn 38041 on mac.
Title: Re: Merged Form Designer?
Post by: JD on July 26, 2012, 06:36:41 pm
The "Find Component" option in the Design View now works properly.   :D

However, I've noticed that if one moves to another form by selecting it from the Lazarus Windows menu the Design View does not change at all and remains fixed on the old form.

It is only after clicking "Toggle Form/Unit" from the Lazarus at least 2 times that the Design View updates and shows the new form.

Thanks a lot and keep up the good work.

JD

Lazarus 1.1/FPC 2.6.1 svn 37865
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 27, 2012, 02:03:10 pm
The "Find Component" option in the Design View now works properly.   :D

However, I've noticed that if one moves to another form by selecting it from the Lazarus Windows menu the Design View does not change at all and remains fixed on the old form.

It is only after clicking "Toggle Form/Unit" from the Lazarus at least 2 times that the Design View updates and shows the new form.

Thanks a lot and keep up the good work.

JD

Lazarus 1.1/FPC 2.6.1 svn 37865

Yes .. I'm still working on it; If I could make changes directly in the source code of Lazarus, would have solved many of these probemas; But my idea is just to do something that does not prevent the user from stay up with the official sources lazarus. ..

In short, I have to be adapted as I can ... That is why it is still a beta version :D

Title: Re: Merged Form Designer?
Post by: BigChimp on July 27, 2012, 02:30:23 pm
Yes .. I'm still working on it; If I could make changes directly in the source code of Lazarus, would have solved many of these probemas; But my idea is just to do something that does not prevent the user from stay up with the official sources lazarus. ..
I'm sure that fixes for problems in the Lazarus source code would be welcome. You can always submit a patch, if you want to.

I know that's not a short term solution, but in the long term it will probably reduce the need for workarounds..

(Note: haven't looked at the Lazarus and KZDesktop code involved, so this is purely based on the posts above).
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 27, 2012, 03:19:06 pm
Yes .. I'm still working on it; If I could make changes directly in the source code of Lazarus, would have solved many of these probemas; But my idea is just to do something that does not prevent the user from stay up with the official sources lazarus. ..
I'm sure that fixes for problems in the Lazarus source code would be welcome. You can always submit a patch, if you want to.

I know that's not a short term solution, but in the long term it will probably reduce the need for workarounds..

(Note: haven't looked at the Lazarus and KZDesktop code involved, so this is purely based on the posts above).

Interesting ... How could I submit a patch?

Put some events in some parts of the code lazarus help me a lot ...

An example that already exists:
LazarusIDE.AddHandlerOnIDERestoreWindows (...);

An example that does not exist:
LazarusIDE.AddHandlerOnWindowBringToFront (...);

The idea is more ways to interact with IDE ....

Title: Re: Merged Form Designer?
Post by: Knipfty on July 27, 2012, 03:28:05 pm
RaphaelZ,

http://wiki.lazarus.freepascal.org/How_To_Help_Developing_Lazarus (http://wiki.lazarus.freepascal.org/How_To_Help_Developing_Lazarus)

I've never done this, but here is a link which pretty much describes the process.

Knipfty
Title: Re: Merged Form Designer?
Post by: BigChimp on July 27, 2012, 04:06:16 pm
RaphaelZ,

http://wiki.lazarus.freepascal.org/How_To_Help_Developing_Lazarus (http://wiki.lazarus.freepascal.org/How_To_Help_Developing_Lazarus)
Good link. That also refers to
http://wiki.lazarus.freepascal.org/Creating_A_Patch (http://wiki.lazarus.freepascal.org/Creating_A_Patch)

A good way to do this: checkout Lazarus svn version (e.g. using fpcup), modify the source code (e.g. add the functions you need), then recompile Lazarus to see if it works ok.

Then go to your lazarus root dir, and show the changes from the version in Subversion e .g.:
Code: [Select]
cd /d c:\development\lazarus
svn diff
svn diff > mychanges.diff
after checking mychanges.diff, you can submit that as a patch.

Some hints:

I've submitted a few Lazarus issues and patches and must say that the Laz devs are very helpful for newb patchers ;)
Just make sure you give the information needed in the issue tracker, and a good explanation of why you want to patch it etc.

Looking forward to improvements ;)

BigChimp
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 27, 2012, 04:36:12 pm
RaphaelZ,

http://wiki.lazarus.freepascal.org/How_To_Help_Developing_Lazarus (http://wiki.lazarus.freepascal.org/How_To_Help_Developing_Lazarus)
Good link. That also refers to
http://wiki.lazarus.freepascal.org/Creating_A_Patch (http://wiki.lazarus.freepascal.org/Creating_A_Patch)

A good way to do this: checkout Lazarus svn version (e.g. using fpcup), modify the source code (e.g. add the functions you need), then recompile Lazarus to see if it works ok.

Then go to your lazarus root dir, and show the changes from the version in Subversion e .g.:
Code: [Select]
cd /d c:\development\lazarus
svn diff
svn diff > mychanges.diff
after checking mychanges.diff, you can submit that as a patch.

Some hints:
  • You can use FPC 2.6.1 (Fixes 2.6) as your FPC compiler; or FPC 2.7.1 (SVN trunk); earlier versions such as 2.4 may work but may lack fixes
  • Devs like self-contained patches best: e.g. if you need a new function and also want to fix an unrelated bug in another part of the code, it's better to submit 2 patches

I've submitted a few Lazarus issues and patches and must say that the Laz devs are very helpful for newb patchers ;)
Just make sure you give the information needed in the issue tracker, and a good explanation of why you want to patch it etc.

Looking forward to improvements ;)

BigChimp

Cool!
I will create some functions and await a response from the development team ...

Thank you!
Title: Re: Merged Form Designer?
Post by: JD on July 27, 2012, 04:37:12 pm
I found an odd behaviour in the latest svn version. When I try to open a second session of Lazarus (I like having several projects open especially when I'm doing client-server development), the KDesktop IDE of the second session becomes all white and completely unusable.

The first session continues to work normally however.

See the attached screenshot.

JD
Title: Re: Merged Form Designer?
Post by: Martin_fr on July 27, 2012, 05:18:39 pm
I will create some functions and await a response from the development team ...

I would advice, as soon as you know which functions you want, and where (and why) you want them, to discuss them on the mailing list.
So you can get an idea, if they will be accepted, or which changes may be needed.

See: http://wiki.lazarus.freepascal.org/Lazarus_Faq#I_created_a_Patch_to_dock_the_IDE_Messages_form_on_the_.22Source_Code_Editor.22_form_.28at_bottom.29
Of course your solution goes way beyond tat example, and your solution is valid, because it is an installable package.

There is (or is going to be) work on the docking solutions (anchor docking) to make it more stable, and add embedded design forms. But there is always room for more than one solution.

I do not know, if the docking can be archived with the current IDE interface code. So changes may be needed anyway (maybe, maybe not). But it means there may be a point for you to bring your ideas forward.
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 27, 2012, 05:55:42 pm
I will create some functions and await a response from the development team ...

I would advice, as soon as you know which functions you want, and where (and why) you want them, to discuss them on the mailing list.
So you can get an idea, if they will be accepted, or which changes may be needed.

See: http://wiki.lazarus.freepascal.org/Lazarus_Faq#I_created_a_Patch_to_dock_the_IDE_Messages_form_on_the_.22Source_Code_Editor.22_form_.28at_bottom.29
Of course your solution goes way beyond tat example, and your solution is valid, because it is an installable package.

There is (or is going to be) work on the docking solutions (anchor docking) to make it more stable, and add embedded design forms. But there is always room for more than one solution.

I do not know, if the docking can be archived with the current IDE interface code. So changes may be needed anyway (maybe, maybe not). But it means there may be a point for you to bring your ideas forward.

What you said is very important, thank you ...

I'm working with the tools available in the current version; But as my package does not interfere with the original source code of lazarus, I can continue working with the options that are rising ... I imagine also that with each passing day, I increasingly find solutions, because the package has already progressed a lot over the months.

I will continue working on the project, taking advantage of everything that appears again;)

hugs!
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 27, 2012, 06:01:37 pm
I found an odd behaviour in the latest svn version. When I try to open a second session of Lazarus (I like having several projects open especially when I'm doing client-server development), the KDesktop IDE of the second session becomes all white and completely unusable.

The first session continues to work normally however.

See the attached screenshot.

JD

What a crazy thing! rs

As this does not happen here, it is difficult to imagine what would be the problem ...

Well, I'm fixing more bugs, it is advisable to always be up to date with the repository; Some bugs like this will certainly disappear as I improve the control of the windows ...

Sorry, but the solution is to wait for me to improve the IDE!

Title: Re: Merged Form Designer?
Post by: JD on July 27, 2012, 06:46:35 pm
I found an odd behaviour in the latest svn version. When I try to open a second session of Lazarus (I like having several projects open especially when I'm doing client-server development), the KDesktop IDE of the second session becomes all white and completely unusable.

The first session continues to work normally however.

See the attached screenshot.

JD

What a crazy thing! rs

As this does not happen here, it is difficult to imagine what would be the problem ...

Well, I'm fixing more bugs, it is advisable to always be up to date with the repository; Some bugs like this will certainly disappear as I improve the control of the windows ...

Sorry, but the solution is to wait for me to improve the IDE!

That's not a problem for me. I can wait. Keep up the good work.
Title: Re: Merged Form Designer?
Post by: RaphaelZ on July 31, 2012, 09:25:54 pm
Hello friends ...
I've been working hard on the project during the day, I managed to solve many bugs and I can say that the work is great.

Soon, I will be providing an official version, with many new things.
What do yours think of after this, I create a new topic only for sharing information?

Hugs;

Title: Re: Merged Form Designer?
Post by: Leledumbo on August 01, 2012, 12:11:03 am
This forum needs a special subforum: IDE docking
Title: Re: Merged Form Designer?
Post by: BigChimp on August 01, 2012, 05:34:58 am
I've been working hard on the project during the day, I managed to solve many bugs and I can say that the work is great.

Soon, I will be providing an official version, with many new things.
What do yours think of after this, I create a new topic only for sharing information?
Great news Raphael,

Thanks a lot!

If you want to open a new topic, you can... it doesn't bother me to keep everything on this thread... but a new topic is fine, too.
With my own fpcup project, I had tried to separate announcements and bug reports in separate threads but in the end we got one big thread. That works fine.
Title: Re: Merged Form Designer?
Post by: SunyD on August 01, 2012, 03:26:29 pm
Congratulations Raphael and to the helpers like Leledumbo!
Find component and form-switch(F12) work now.
(Tested with Lazarus 1.1 SVN-Rev.: 37902, 2012-07-18; fpc 2.6.1 on WinXp Sp3 all 32Bit).

We/you can add new customizable toolbar to right empty place (right from debug toolbar). I will try it in the next day if i have time.

I'm working on new helpsystem for Lazarus (forked from LazHelp) with multitabs and better search. When I get it complete then Lazarus will be perfect.

EDIT:
Package Viewer needs close-button. You can't close a opened package.
Title: Re: Merged Form Designer?
Post by: JD on August 01, 2012, 03:59:23 pm
This forum needs a special subforum: IDE docking

I agree with you. This is an important issue.  :D
Title: Re: Merged Form Designer?
Post by: BigChimp on August 01, 2012, 04:17:00 pm
Sorry for the off-topic (OT) post:

I'm working on new helpsystem for Lazarus (forked from LazHelp) with multitabs and better search. When I get it complete then Lazarus will be perfect.
I'd invite you to consider working on lhelp - if this bug:
http://bugs.freepascal.org/view.php?id=22110 (http://bugs.freepascal.org/view.php?id=22110)
is fixed, you can have multiple chm files open and search works fine... furthermore, you get lhelp installed with stock Lazarus install and you can include context sensitive application help with it as well in recent Lazarus versions:
http://wiki.lazarus.freepascal.org/Add_Help_to_Your_Application#CHM (http://wiki.lazarus.freepascal.org/Add_Help_to_Your_Application#CHM)

But I completely understand if you want to continue with your own project.

Thanks,
BigChimp
Title: Re: Merged Form Designer?
Post by: SunyD on August 01, 2012, 05:14:09 pm
Sorry for the off-topic (OT) post:

I'd invite you to consider working on lhelp - if this bug:
http://bugs.freepascal.org/view.php?id=22110 (http://bugs.freepascal.org/view.php?id=22110)
is fixed, you can have multiple chm files open and search works fine... furthermore, you get lhelp installed with stock Lazarus install and you can include context sensitive application help with it as well in recent Lazarus versions:
http://wiki.lazarus.freepascal.org/Add_Help_to_Your_Application#CHM (http://wiki.lazarus.freepascal.org/Add_Help_to_Your_Application#CHM)

But I completely understand if you want to continue with your own project.

Thanks,
BigChimp

I will look it. I looked in LHelp-Source, I think Lhelp made to complicated. I create from zero and take some things from LHelp. I will add tabbed-view for look on more pages, search on on page, possibility to edit docs and add code snippets and support for zipped htm files, pdf ....

I added now personal toolbar to kzdesktop.
Is anybody know how can i access lazarus actions or menus?
Title: Re: Merged Form Designer?
Post by: RaphaelZ on August 01, 2012, 05:52:08 pm
Is anybody know how can i access lazarus actions or menus?

See the functions of the unit MenuIntf

;)
Title: Re: Merged Form Designer?
Post by: SunyD on August 02, 2012, 12:09:46 pm
See the functions of the unit MenuIntf
;)
Thanks, but I couldn't access all command with MenuIntf so I used command interface IDECommands.pas.
Maybe you should not add my changes to your source now because I can't acces to command image for toolbar.
I use show caption for toolbar. I added some commands to the personal toolbar.
Screenshot and changed source below.
Search for changes in source for "1aug2012". I made changes(added new source) on ~6 parts in source you cand find it easy.
Title: Re: Merged Form Designer?
Post by: Martin_fr on August 02, 2012, 12:17:56 pm
Have a look at the EditorToolbar (components folder) which is also a customizable toolbar.

And maybe think about making yours a separate package, so people can use your toolbar with other docking managers (or with the undocked IDE).
Title: Re: Merged Form Designer?
Post by: RaphaelZ on August 02, 2012, 01:49:52 pm
See the functions of the unit MenuIntf
;)
Thanks, but I couldn't access all command with MenuIntf so I used command interface IDECommands.pas.
Maybe you should not add my changes to your source now because I can't acces to command image for toolbar.
I use show caption for toolbar. I added some commands to the personal toolbar.
Screenshot and changed source below.
Search for changes in source for "1aug2012". I made changes(added new source) on ~6 parts in source you cand find it easy.

Interesting!
As soon as possible, I will examine the code and see what I can do ...

hugs ;)

Title: Re: Merged Form Designer?
Post by: RaphaelZ on August 02, 2012, 10:26:44 pm
Guys, as I have worked!

Fix many bugs, did many things ... I hope to release a version soon!

Some interesting things I did: find the component now works 100%; The form editor now has a special layout; the focus problems with F12 solved;

Everything has been tested on linux and windows.

Wait the next update! :)

hugs
Title: Re: Merged Form Designer?
Post by: JD on August 02, 2012, 10:38:00 pm
Great. I'm looking forward to it.
Title: Re: Merged Form Designer?
Post by: cpalx on August 03, 2012, 03:27:55 am
in mac works bad.
...
[/list]
Title: Re: Merged Form Designer?
Post by: ttomas on August 03, 2012, 12:38:37 pm
Search for changes in source for "1aug2012". I made changes(added new source)
Where is source repository for this changes?
http://sourceforge.net/p/kzdesktop/code/38/tree/ (http://sourceforge.net/p/kzdesktop/code/38/tree/)
show last changes at 2012-07-25
Title: Re: Merged Form Designer?
Post by: RaphaelZ on August 03, 2012, 01:47:56 pm
in mac works bad.
  • the form doesnt have the true color
  • i cant resize the form in visual
...
[/list]

This has been solved in the new version, but I have not liberated in SVN. Maybe today is in the air!

Title: Re: Merged Form Designer?
Post by: RaphaelZ on August 03, 2012, 01:55:19 pm
Search for changes in source for "1aug2012". I made changes(added new source)
Where is source repository for this changes?
http://sourceforge.net/p/kzdesktop/code/38/tree/ (http://sourceforge.net/p/kzdesktop/code/38/tree/)
show last changes at 2012-07-25

Sorry, did not understand what you mean (my english is very poor rs)

You wonder what is the way official sources codes?

would this: http://sourceforge.net/p/kzdesktop/code/38/tree/trunk/

Title: Re: Merged Form Designer?
Post by: SunyD on August 04, 2012, 12:10:11 pm
Search for changes in source for "1aug2012". I made changes(added new source)
Where is source repository for this changes?
http://sourceforge.net/p/kzdesktop/code/38/tree/ (http://sourceforge.net/p/kzdesktop/code/38/tree/)
show last changes at 2012-07-25

Tomas you should use Raphaels sources from here:
http://sourceforge.net/p/kzdesktop/code/38/tree/trunk/ (http://sourceforge.net/p/kzdesktop/code/38/tree/trunk/)

Sometimes I or others making some changes and posting here and if they are good and usefull Raphael takes it to the official sources.

Have a look at the EditorToolbar (components folder) which is also a customizable toolbar.

And maybe think about making yours a separate package, so people can use your toolbar with other docking managers (or with the undocked IDE).
He use also menuintf.pas. There is only some selected commands not all.
Title: Re: Merged Form Designer?
Post by: RaphaelZ on August 06, 2012, 10:38:01 pm
Hello folks ...

I just release another version of KZDesktop. I spent days working on bug fixing, and I am very pleased with the work. There are still some bugs, and I am aware of them. I appreciate the opinions of friends in the various operating systems.

hugs
Title: Re: Merged Form Designer?
Post by: Leledumbo on August 06, 2012, 11:54:02 pm
Attached is how it looks now on my system. There's a weird looking design form and the real form is still floating around...

p.s. I'm switching to the real form by shift+f12.
Title: Re: Merged Form Designer?
Post by: RaphaelZ on August 07, 2012, 03:17:23 pm
Attached is how it looks now on my system. There's a weird looking design form and the real form is still floating around...

p.s. I'm switching to the real form by shift+f12.

How strange ... In the previous version worked?

Well, try upgrading to the version I have released now, something that I can solve ...

The revision is r40

Title: Re: Merged Form Designer?
Post by: Leledumbo on August 07, 2012, 04:54:20 pm
Works well in 1.0RC1, I see that the change in design form border is intended. I'll try r40 with 1.1.

EDIT: The same with r40...
Title: Re: Merged Form Designer?
Post by: a.atalla on August 07, 2012, 10:39:45 pm
still can't switch between forms easly in a multi forms project ?
also when i open a new application project the forms looks like the first image
but when i change the background color from KZDektop Options the form appears like the second image
 
KZDesktop (r41 with lazarus from svn , ubuntu linux 64 bit)
Title: Re: Merged Form Designer?
Post by: RaphaelZ on August 08, 2012, 12:31:03 am
Works well in 1.0RC1, I see that the change in design form border is intended. I'll try r40 with 1.1.

EDIT: The same with r40...


I will investigate ...


still can't switch between forms easly in a multi forms project ?
also when i open a new application project the forms looks like the first image
but when i change the background color from KZDektop Options the form appears like the second image
 
KZDesktop (r41 with lazarus from svn , ubuntu linux 64 bit)

The second image is the correct way to display the window, I go see what could be causing this ...

"still can't switch between forms easly in a multi forms project ?" is a good idea ;)

EDIT: Try now the r42 and post the result   ;)


Title: Re: Merged Form Designer?
Post by: a.atalla on August 09, 2012, 01:18:43 am
same problem 
i tested in windows 7  , the difference is that in linux  when i move the window from the small bottom thumbnail , it moves in the big window
and disappear parts from it
but in windows  , moving the small image doesn't affect the big form 
Title: Re: Merged Form Designer?
Post by: RaphaelZ on August 09, 2012, 02:00:27 pm
same problem 
i tested in windows 7  , the difference is that in linux  when i move the window from the small bottom thumbnail , it moves in the big window
and disappear parts from it
but in windows  , moving the small image doesn't affect the big form

So from what I understand, the effect of the first image is formed when you move the thumbnail of the window?

Title: Re: Merged Form Designer?
Post by: a.atalla on August 09, 2012, 03:00:49 pm
the first image is just when i open a new project , and it give me the second image when i change the background as i mentioned befor .
i can reproduce the first image by moving the thumbnail of the window

all of that on linux only
Title: Re: Merged Form Designer?
Post by: RaphaelZ on August 09, 2012, 04:32:41 pm
the first image is just when i open a new project , and it give me the second image when i change the background as i mentioned befor .
i can reproduce the first image by moving the thumbnail of the window

all of that on linux only

Now I understand ...
I tested it on a ubuntu 12, on a debian 6, and also tested on a debian 7, and everything was working ... I'll do some more tests here ... ;)

Title: Re: Merged Form Designer?
Post by: a.atalla on August 09, 2012, 09:04:30 pm
a video for the bug

http://www.youtube.com/watch?v=KQSWyd_t8hU&feature=youtu.be
Title: Re: Merged Form Designer?
Post by: RaphaelZ on August 09, 2012, 09:44:42 pm
a video for the bug

http://www.youtube.com/watch?v=KQSWyd_t8hU&feature=youtu.be

LOL!

Thank you, with your video I understand well what is happening, I'll see what I can do .... :D

Title: Re: Merged Form Designer?
Post by: RaphaelZ on August 09, 2012, 09:59:00 pm
a video for the bug

http://www.youtube.com/watch?v=KQSWyd_t8hU&feature=youtu.be

Try using the attached files ....

Title: Re: Merged Form Designer?
Post by: a.atalla on August 10, 2012, 12:55:38 am
i'm sorry to say , nothing changes 
for info i'm using   with lazarus-1.1-svn  fpc-2.4.4  not fpc-2.6
Title: Re: Merged Form Designer?
Post by: RaphaelZ on August 10, 2012, 03:16:31 pm
i'm sorry to say , nothing changes 
for info i'm using   with lazarus-1.1-svn  fpc-2.4.4  not fpc-2.6

I will modify the sources and put a new schema to control the designers windows... Wait the future updates, please!

Hugs :)

Title: Re: Merged Form Designer?
Post by: a.atalla on August 10, 2012, 06:25:49 pm
I will modify the sources and put a new schema to control the designers windows... Wait the future updates, please!

Hugs :)

OK , i will stick with the glassdocking from CodeTypon till you finish :)
Thanks
Title: Re: Merged Form Designer?
Post by: RaphaelZ on August 10, 2012, 10:04:21 pm
I will modify the sources and put a new schema to control the designers windows... Wait the future updates, please!

Hugs :)

OK , i will stick with the glassdocking from CodeTypon till you finish :)
Thanks

Friend, I put a new version in the SVN. In this version, some bugs are fixed, then is interesting that you test the r45...  After, post the result here...

Hugs

Title: Re: Merged Form Designer?
Post by: a.atalla on August 11, 2012, 01:42:49 am
sorry to say that nothing changes
Title: Re: Merged Form Designer?
Post by: RaphaelZ on August 13, 2012, 01:53:48 pm
sorry to say that nothing changes

Hello...

Try this sources (attached); This is a test; if this works, I will make others tests before put this on the SVN...

Hugs

Title: Re: Merged Form Designer?
Post by: a.atalla on August 13, 2012, 04:47:08 pm
finally ..... good job the designer is OK now
one bug remain , after i switch between source code and designer  i see that

Title: Re: Merged Form Designer?
Post by: RaphaelZ on August 13, 2012, 06:12:20 pm
finally ..... good job the designer is OK now
one bug remain , after i switch between source code and designer  i see that

Try the KZDesktopTEST3.zip ;)

Title: Re: Merged Form Designer?
Post by: a.atalla on August 13, 2012, 06:17:23 pm
Great extra feature   :D i liked it
bt still the white space in teh source editor appears
Title: Re: Merged Form Designer?
Post by: RaphaelZ on August 13, 2012, 06:40:16 pm
Great extra feature   :D i liked it
bt still the white space in teh source editor appears

I know what is the white space; but I'm still trying make this work correctly...

As soon as possible I bring an update....

Hugs

Title: Re: Merged Form Designer?
Post by: teos on August 22, 2012, 07:40:58 pm
I'm curious to see what this is about. But..

I run CodeTyphon 2.7 (Lazarus 1.1) and when I open the package, install it and rebuild the IDE, the first time Lazarus started after the build was OK, I put on KDesktop but from that moment all what happens is a access violation at the start of Lazarus.

I am not familiair enough with Lazarus to know what I should do to get by this error.

Am I reading right that everybody who wants can contribute code straight in version control?
Title: Re: Merged Form Designer?
Post by: Martin_fr on August 22, 2012, 08:24:09 pm
If you use CodeTyphon, it probably (I do not use it, but what I heard) has "GlasDocking" installed.

Since KZDesktop does it's own docking, you would most likely need to uninstall glass docking.
No guarantee though, CT cousd have more/other modifications.

As for commit rights.

NO. Only a handful of developers have write access to SVN.

Everyone can submit patches, and if they are approved, then one of those developers will apply and commit it.

People who maintain add-on packages, can apply to get a folder in the Lazarus CCR SVN.
Title: Re: Merged Form Designer?
Post by: RaphaelZ on August 23, 2012, 05:54:09 pm
I work on the project KZDesktop almost every day ...

The problems cited in general could be solved if the KZDesktop do part of the lazarus project, but as this is not possible, I have to make many adjustments. Without this, everything would work perfect!

Well, I'll solve the problems as much as possible ;)

Hugs
Title: Re: Merged Form Designer?
Post by: JD on August 23, 2012, 06:17:05 pm
I work on the project KZDesktop almost every day ...

The problems cited in general could be solved if the KZDesktop do part of the lazarus project, but as this is not possible, I have to make many adjustments. Without this, everything would work perfect!

Well, I'll solve the problems as much as possible ;)

Hugs

I appreciate your work. I've tried all the other docking solutions and I prefer yours. So keep it up...  :D
Title: Re: Merged Form Designer?
Post by: BigChimp on August 24, 2012, 10:26:38 am
I work on the project KZDesktop almost every day ...

The problems cited in general could be solved if the KZDesktop do part of the lazarus project, but as this is not possible, I have to make many adjustments. Without this, everything would work perfect!

Well, I'll solve the problems as much as possible ;)
Hi Raphaelz,

I might misunderstand here, but working around Lazarus issues in kzdesktop seems inefficient, if you have good ideas for how Lazarus needs to be changed to work better with kzdesktop.

You are perfectly welcome to suggest improvements to the Lazarus code, or, better still, submit patches for it in the bugtracker.
If the suggestions/patches make sense, the developers will patch Lazarus.
As I think martin_fr said: it's a good idea to discuss these things in the Lazarus mailing list, but I suppose if you want to, you could post them here as well... I'm sure there are many people that are willing to help, review suggestions and patches, as kzdesktop seems fairly popular.

This way, even though kzdesktop would not be a part of the Lazarus project, you can improve kzdesktop and Lazarus much easier than if you limit yourself to kzdesktop.

Thanks,
BigChimp
Title: Re: Merged Form Designer?
Post by: ludob on August 25, 2012, 05:43:02 pm
Good job. Screens are very well organised.

Is there a possibility to dock the debug windows (watches, registers, etc.) ?
The floating windows in standard lazarus I can live with but even on a 22" monitor I keep searching for the debug windows that move to the back. If there where a docking solution for the debug windows that would be perfect.
Title: Re: Merged Form Designer?
Post by: RaphaelZ on August 27, 2012, 01:51:07 pm
I work on the project KZDesktop almost every day ...

The problems cited in general could be solved if the KZDesktop do part of the lazarus project, but as this is not possible, I have to make many adjustments. Without this, everything would work perfect!

Well, I'll solve the problems as much as possible ;)
Hi Raphaelz,

I might misunderstand here, but working around Lazarus issues in kzdesktop seems inefficient, if you have good ideas for how Lazarus needs to be changed to work better with kzdesktop.

You are perfectly welcome to suggest improvements to the Lazarus code, or, better still, submit patches for it in the bugtracker.
If the suggestions/patches make sense, the developers will patch Lazarus.
As I think martin_fr said: it's a good idea to discuss these things in the Lazarus mailing list, but I suppose if you want to, you could post them here as well... I'm sure there are many people that are willing to help, review suggestions and patches, as kzdesktop seems fairly popular.

This way, even though kzdesktop would not be a part of the Lazarus project, you can improve kzdesktop and Lazarus much easier than if you limit yourself to kzdesktop.

Thanks,
BigChimp


Thank you ...

I've thought for some suggestions, maybe in the future I do what you said ... For now, I'm correcting some things, so that at least the basic functions to works fine ... I hope KZDesktop is being helpful to you all!

 8)
Title: Re: Merged Form Designer?
Post by: RaphaelZ on August 27, 2012, 01:55:39 pm
Good job. Screens are very well organised.

Is there a possibility to dock the debug windows (watches, registers, etc.) ?
The floating windows in standard lazarus I can live with but even on a 22" monitor I keep searching for the debug windows that move to the back. If there where a docking solution for the debug windows that would be perfect.

I've thought about it, I want to make a special environment for debugging, like the BDS ... But first I'm correcting some bugs ...

By the way, I suggest downloading the last SVN, rev. 48. I do fix some bugs ...

hugs

Title: Re: Merged Form Designer?
Post by: RaphaelZ on August 27, 2012, 03:43:24 pm
Hey folks ...

I am organizing the ideas of kzdesktop, and needed your help.

Well, I want to make a compatibility list kzdesktop, like this:

Windows 7 - Works perfectly;
Windows XP - works perfectly;
Debian Squeeze - Works good. The keys ESC, DEL, do not work correctly on the form designer;
Debian Wheezy - Same as the Debian Squeeze;

I Would like to your help to create a list like this.

Also, I want to show you what are the future plans for the KZDesktop:

Bug fixes;
Improved package viewer;
Improved way to visualize large windows in the form designer;
Distinctive environment in debug mode;
ToDo List differentiated;
Flowchart of the project;
Different layout design for Android;
Integration with generators installation packages;
Integration with subversion (SVN);

hugs ;)
Title: Re: Merged Form Designer?
Post by: ludob on August 27, 2012, 06:44:34 pm
Quote
Well, I want to make a compatibility list kzdesktop, like this:
Don't know if that will be useful in a free format. What is "works good"?
Also, to be meaningful at least the kzdesktop and lazarus version should be part of the list.

My little contribution:
Windows XP sp2, lazarus 1.1 svn 38319, kzdesktop svn 48
Minor problems encountered:
- size of the resized object inspector/code explorer panel or the messages panel is not saved. Restarting lazarus returns to default sizes.
- when opening an existing project with the cursor at fe. position 100, well inside the visible window, the text is scrolled to the left so that the first visible character is in column 89 although the complete source line fits in the window. Text scrolling should only happen when the cursor is outside the visual area.
Title: Re: Merged Form Designer?
Post by: Martin_fr on August 27, 2012, 07:59:56 pm
- when opening an existing project with the cursor at fe. position 100, well inside the visible window, the text is scrolled to the left so that the first visible character is in column 89 although the complete source line fits in the window. Text scrolling should only happen when the cursor is outside the visual area.

@RaphaelZ

try
  SourceEditorManager.IncUpdateLock;
  SourceEditorManager.DecUpdateLock;

Until you got all the window and editor-tabs in place.

Try avoiding to access anything, that forces a tab to paint (unless it is the active tab).

If SynEdit needs to paint (or gets a handle for other reasons, before it is resized to the correct dimension, then this kind of scrolling happens

Also check if anything triggers
  TSourceNotebook.NotebookPageChanged
See the code there. It initializes the editor positions
Title: Re: Merged Form Designer?
Post by: RaphaelZ on August 27, 2012, 08:30:57 pm
Quote
Well, I want to make a compatibility list kzdesktop, like this:
Don't know if that will be useful in a free format. What is "works good"?
Also, to be meaningful at least the kzdesktop and lazarus version should be part of the list.

My little contribution:
Windows XP sp2, lazarus 1.1 svn 38319, kzdesktop svn 48
Minor problems encountered:
- size of the resized object inspector/code explorer panel or the messages panel is not saved. Restarting lazarus returns to default sizes.
- when opening an existing project with the cursor at fe. position 100, well inside the visible window, the text is scrolled to the left so that the first visible character is in column 89 although the complete source line fits in the window. Text scrolling should only happen when the cursor is outside the visual area.

"works good" - which means it works well enough to use, say 90%, but not work perfect

The size of the object inspector and the messages window is not saved, I will change the design to save;

The question of the scroll, I've noticed, but I dont fix this... But I will give attention to this bug...

Thank you for your cooperation!

Sorry my poor english.. Sometimes I can't express myself right

Hugs  ;)

Title: Re: Merged Form Designer?
Post by: RaphaelZ on August 27, 2012, 08:34:21 pm
- when opening an existing project with the cursor at fe. position 100, well inside the visible window, the text is scrolled to the left so that the first visible character is in column 89 although the complete source line fits in the window. Text scrolling should only happen when the cursor is outside the visual area.

@RaphaelZ

try
  SourceEditorManager.IncUpdateLock;
  SourceEditorManager.DecUpdateLock;

Until you got all the window and editor-tabs in place.

Try avoiding to access anything, that forces a tab to paint (unless it is the active tab).

If SynEdit needs to paint (or gets a handle for other reasons, before it is resized to the correct dimension, then this kind of scrolling happens

Also check if anything triggers
  TSourceNotebook.NotebookPageChanged
See the code there. It initializes the editor positions

Hunm, interesting...

I will try make this what you said

thanks very much!
Title: Re: Merged Form Designer?
Post by: Martin_fr on August 27, 2012, 08:53:20 pm
If you search in main.pp, you will see that opening a project uses this.

But if you do stuff with the window / tabs after that code, then you should wrap it into a lock of your own
Title: Re: Merged Form Designer?
Post by: andersos on September 02, 2012, 11:27:44 am
I like the idea of kzdesktop very much. Thanks for all the effort making this.

I installed the beta01 package from sourceforge on Lazarus 1.0 and I get this error message as
you can see in the attached screenshot.

Title: Re: Merged Form Designer?
Post by: RaphaelZ on September 03, 2012, 01:45:55 pm
Are you using any other package docking? If, to use KZDesktop you will have to uninstall it ...

Title: Re: Merged Form Designer?
Post by: andersos on September 03, 2012, 04:13:42 pm
Yes I use AnchorDocking. Ok, but it would be nice to be able to switch between Lazarus with AnchorDocking and KZDesktop though.
Title: Re: Merged Form Designer?
Post by: Leledumbo on September 03, 2012, 04:40:50 pm
Quote
Ok, but it would be nice to be able to switch between Lazarus with AnchorDocking and KZDesktop though.
Both has enable option in the environment options. Just don't enable both at the same time.
Title: Re: Merged Form Designer?
Post by: andersos on September 03, 2012, 05:06:40 pm
Yes that would be nice but when I disable AnchorDocking in options and restart Lazarus, AnchorDocking is still enabled. Why?
Title: Re: Merged Form Designer?
Post by: miquelmatas on September 03, 2012, 09:29:53 pm
uninstall AnchorDockingDsgn package
Title: Re: Merged Form Designer?
Post by: SunyD on September 08, 2012, 01:36:43 pm
Maybe it"s better to create only tabbed designer like sourceeditor and put this in Lazarus-Sources.
Other things can do with Dockmanager.
Title: Re: Merged Form Designer?
Post by: a.atalla on October 06, 2012, 12:45:56 am
finally ..... good job the designer is OK now
one bug remain , after i switch between source code and designer  i see that

The beta version doesn't contain that fix  , i still have a broblem in  the designer as i show in the youtube video in the Beta
http://www.youtube.com/watch?v=KQSWyd_t8hU&feature=youtu.be

The version tagged  Test2 in Reoply#24    solve the issue in the video , could u merge it in the Beta
TinyPortal © 2005-2018