Recent

Author Topic: Merged Form Designer?  (Read 118832 times)

RaphaelZ

  • Jr. Member
  • **
  • Posts: 64
Re: Merged Form Designer?
« Reply #15 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! ;)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Merged Form Designer?
« Reply #16 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)

Mando

  • Full Member
  • ***
  • Posts: 181
Re: Merged Form Designer?
« Reply #17 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


RaphaelZ

  • Jr. Member
  • **
  • Posts: 64
Re: Merged Form Designer?
« Reply #18 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

RaphaelZ

  • Jr. Member
  • **
  • Posts: 64
Re: Merged Form Designer?
« Reply #19 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 ....
« Last Edit: July 05, 2012, 06:18:47 pm by RaphaelZ »

RaphaelZ

  • Jr. Member
  • **
  • Posts: 64
Re: Merged Form Designer?
« Reply #20 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)

RaphaelZ

  • Jr. Member
  • **
  • Posts: 64
Re: Merged Form Designer?
« Reply #21 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!


Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Merged Form Designer?
« Reply #22 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.

SunyD

  • Guest
Re: Merged Form Designer?
« Reply #23 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!

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Merged Form Designer?
« Reply #24 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.
« Last Edit: July 09, 2012, 10:55:38 am by Leledumbo »

SunyD

  • Guest
Re: Merged Form Designer?
« Reply #25 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;   

RaphaelZ

  • Jr. Member
  • **
  • Posts: 64
Re: Merged Form Designer?
« Reply #26 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


RaphaelZ

  • Jr. Member
  • **
  • Posts: 64
Re: Merged Form Designer?
« Reply #27 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
« Last Edit: July 09, 2012, 01:48:11 pm by RaphaelZ »

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Merged Form Designer?
« Reply #28 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 ;)

RaphaelZ

  • Jr. Member
  • **
  • Posts: 64
Re: Merged Form Designer?
« Reply #29 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

 

TinyPortal © 2005-2018