Recent

Author Topic: Single windows for Lazarus (package: anchordockingdsgn?)  (Read 6687 times)

OdysseusL

  • New member
  • *
  • Posts: 7
Single windows for Lazarus (package: anchordockingdsgn?)
« on: June 11, 2023, 04:59:51 pm »
Hello,

I search for an option to change the IDE to a single window mode. I found a website that i have to use the package "anchordockingdsgn" for Lazarus. But this package is not listed in the "package manager". Do I miss something?

Thanks in advance.

Handoko

  • Hero Member
  • *****
  • Posts: 5524
  • My goal: build my own game engine using Lazarus
Re: Single windows for Lazarus (package: anchordockingdsgn?)
« Reply #1 on: June 11, 2023, 05:07:54 pm »
Hello OdysseusL,
Welcome to the forum.

Do this:
Lazarus main menu > Package > Install/Uninstall Packages > right panel: anchordockingdsgn 1.0 > Install Selection > Save and rebuild IDE

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12202
  • Debugger - SynEdit - and more
    • wiki
Re: Single windows for Lazarus (package: anchordockingdsgn?)
« Reply #2 on: June 11, 2023, 05:22:35 pm »
And also via the same dialog install the package "DockedFormEditor"

Do not install any package with "Sparta" in the name.

OdysseusL

  • New member
  • *
  • Posts: 7
Re: Single windows for Lazarus (package: anchordockingdsgn?)
« Reply #3 on: June 11, 2023, 06:09:01 pm »
Thank you very much. Why the second package "DockedFormEditor"? What happens, if I don't install it?

Handoko

  • Hero Member
  • *****
  • Posts: 5524
  • My goal: build my own game engine using Lazarus
Re: Single windows for Lazarus (package: anchordockingdsgn?)
« Reply #4 on: June 11, 2023, 06:47:12 pm »
I do not use anchor/docking layout, not much I can comment.

But here:
https://wiki.freepascal.org/DockedFormEditor

dsiders

  • Hero Member
  • *****
  • Posts: 1556
Re: Single windows for Lazarus (package: anchordockingdsgn?)
« Reply #5 on: June 11, 2023, 06:54:05 pm »
Thank you very much. Why the second package "DockedFormEditor"? What happens, if I don't install it?

It allows the form editor/designer to be docked in the IDE too. Otherwise, it is still a floating window. Here it is installed:


OdysseusL

  • New member
  • *
  • Posts: 7
Re: Single windows for Lazarus (package: anchordockingdsgn?)
« Reply #6 on: June 11, 2023, 07:31:43 pm »
Again thank you very much for your (extremely quick) help! It strengthening my decision to change back from C++ to Pascal (my first programming language I learned (UCSD Pascal on Apple II)).

Handoko

  • Hero Member
  • *****
  • Posts: 5524
  • My goal: build my own game engine using Lazarus
Re: Single windows for Lazarus (package: anchordockingdsgn?)
« Reply #7 on: June 11, 2023, 08:40:05 pm »
Can you share your story why you decided to use C++ and why you want to change back to Pascal?

I am a hobbyist programmer, I learn and write program in my leisure time. Graphics and game programming are my main interests. Most of the tutorials and source codes I found, are written for C/C++. So, if I have time I would learn C/C++.

It would be nice to hear your experience as a C++ and Pascal user.

tearsfornations

  • New Member
  • *
  • Posts: 35
  • Jesus is worth talking about.
    • Lightning Bolt Quiz - How many Lightning Bolts do you deserve?
Re: Single windows for Lazarus (package: anchordockingdsgn?)
« Reply #8 on: June 11, 2023, 10:23:52 pm »
Hello OdysseusL,
Welcome to the forum.

Do this:
Lazarus main menu > Package > Install/Uninstall Packages > right panel: anchordockingdsgn 1.0 > Install Selection > Save and rebuild IDE

Hi, I am trying to achieve this one form window as well, I am on MacOS and I installed the anchordockingdsgn 1.0 and also the DockedFormEditor but my lazarus looks the same? Is there something I need to do to enable it?

Thanks!
-
Used C++Builder for the longest time, got macOS, How many Lightning Bolts do you deserve? Find out at my website: https://boltquiz.org

ccrause

  • Hero Member
  • *****
  • Posts: 1094
Re: Single windows for Lazarus (package: anchordockingdsgn?)
« Reply #9 on: June 12, 2023, 09:04:52 am »
Hello OdysseusL,
Welcome to the forum.

Do this:
Lazarus main menu > Package > Install/Uninstall Packages > right panel: anchordockingdsgn 1.0 > Install Selection > Save and rebuild IDE

Hi, I am trying to achieve this one form window as well, I am on MacOS and I installed the anchordockingdsgn 1.0 and also the DockedFormEditor but my lazarus looks the same? Is there something I need to do to enable it?

Thanks!

Did Lazarus recompile without errors after the Install Selection > Save and rebuild IDE step?

tearsfornations

  • New Member
  • *
  • Posts: 35
  • Jesus is worth talking about.
    • Lightning Bolt Quiz - How many Lightning Bolts do you deserve?
Re: Single windows for Lazarus (package: anchordockingdsgn?)
« Reply #10 on: June 12, 2023, 10:20:57 am »
Ok, I got it, but now the forms are not showing up right.

There is like a big space at the top.

My one has a string grid and that's it with 4 columns.
-
Used C++Builder for the longest time, got macOS, How many Lightning Bolts do you deserve? Find out at my website: https://boltquiz.org

OdysseusL

  • New member
  • *
  • Posts: 7
Re: Single windows for Lazarus (package: anchordockingdsgn?)
« Reply #11 on: June 12, 2023, 12:13:22 pm »
Hello @Handoko,

Can you share your story why you decided to use C++ and why you want to change back to Pascal?

It is a very short story (sorry, it is not a real topic of this thread):
My very first programming language was "Simon's Basic" with Commodore 64. My first programming language (at school) was UCSD Pascal on Apple II. Later, during my "academic career" I startet with FORTRAN, C, and finally C++. With C++ I startet my first GUI applications using Qt (this is more than two decades ago). In the company I work now for more than 25 years, I have to program in C++ and Java (and ObjectREXX). Since 15 years (project manager, it manager, ...) I have stopped programming. In the last two weeks I "restartet" with programming in C++ (hobbyist programmer). Everything works fine until I wanted to use a GUI. My first (new) steps with Qt and the subsequent legacy of C++ (you have to take care of everything, due to the history C/C++) breaks my will to continue with C++. So I decided to meet my roots and start with (Object)Pascal and their TForms.

Handoko

  • Hero Member
  • *****
  • Posts: 5524
  • My goal: build my own game engine using Lazarus
Re: Single windows for Lazarus (package: anchordockingdsgn?)
« Reply #12 on: June 13, 2023, 07:02:37 pm »
So the reason you choose Lazarus because you need a tool to work with GUI easily. Yes, Lazarus is a rapid application development tool. You can build native looking GUI software in relatively short time, Lazarus has plenty ready to use visual components.

If you're new in Lazarus/Pascal, you may want to try the demos that come with your Lazarus default installation:
Lazarus main menu > Tools > Example Projects

Also you can download and try short demos from:
https://wiki.freepascal.org/Portal:HowTo_Demos

And this link may be useful for you:
https://wiki.freepascal.org/Lazarus_Documentation

OdysseusL

  • New member
  • *
  • Posts: 7
Re: Single windows for Lazarus (package: anchordockingdsgn?)
« Reply #13 on: June 13, 2023, 07:37:00 pm »
Thank you very much!

 

TinyPortal © 2005-2018