Lazarus

Programming => LCL => Topic started by: Sieben on September 07, 2020, 09:09:07 pm

Title: TEditButton family and OnContextPopup
Post by: Sieben on September 07, 2020, 09:09:07 pm
Are there any special reasons why no descendant of TCustomEditButton - except for TEditButton itself - publishes OnContextPopup?
Title: Re: TEditButton family and OnContextPopup
Post by: Bart on September 07, 2020, 11:04:12 pm
Probably not.
Can you make a patch and file a bugreport about that (and of course attach the patch file there)?

Bart
Title: Re: TEditButton family and OnContextPopup
Post by: Sieben on September 08, 2020, 10:03:40 am
Got the tutorials and will give it a try, thanks.
Title: Re: TEditButton family and OnContextPopup
Post by: Sieben on September 08, 2020, 11:20:17 am
Sorry for coming back so soon, but from what I understand from this tutorial:

https://wiki.freepascal.org/Creating_A_Patch (https://wiki.freepascal.org/Creating_A_Patch)

I would have to additionally install Lazarus trunk first to create a working patch. As I am just getting familiar with Lazarus, it's settings, pathes etc, and not too familiar with Linux either, I'm not sure if I really want to do that at the moment. Would it be feasible if someone 'threw up' a current trunk EditBtn.pas here so I can create a patch with that one...?
Title: Re: TEditButton family and OnContextPopup
Post by: JuhaManninen on September 08, 2020, 03:46:59 pm
I would have to additionally install Lazarus trunk first to create a working patch. As I am just getting familiar with Lazarus, it's settings, pathes etc, and not too familiar with Linux either, I'm not sure if I really want to do that at the moment.
Getting the trunk version is actually super-easy. Just make sure Subversion is installed, then in console :
$ svn co https://svn.freepascal.org/svn/lazarus/trunk lazarus_trunk
$ cd lazarus_trunk
$ make
$ ./lazarus &

It also requires some development library packages from Ubuntu repository but you already have them from your earlier installation.
You can have many versions of Lazarus in your machine the same way. No installation, just start them from their directory.

 https://wiki.freepascal.org/Getting_Lazarus#Development_version_of_Lazarus
Title: Re: TEditButton family and OnContextPopup
Post by: Sieben on September 08, 2020, 05:28:23 pm
Thanks, that sounds fairly easy indeed. Current dir in console should be my home directory then?
Title: Re: TEditButton family and OnContextPopup
Post by: JuhaManninen on September 08, 2020, 06:09:07 pm
Current dir in console should be my home directory then?
Yes, or any directory under it. You must have write access there.
I myself keep all SW development projects under directory ~/SW.
Title: Re: TEditButton family and OnContextPopup
Post by: Sieben on September 08, 2020, 09:58:21 pm
Thanks again. Will do so tomorrow.
Title: Re: TEditButton family and OnContextPopup
Post by: Sieben on September 28, 2020, 03:02:19 pm
Finally filed:

https://bugs.freepascal.org/view.php?id=37832 (https://bugs.freepascal.org/view.php?id=37832)

Sorry for delay, had to take a break for health reasons.

This SVN stuff really works great, just one issue with installing 2nd copy of Lazarus: at first start you will be prompted about possible conflicts with configuration files, and best advice would be to start the 2nd copy with it's own configuration path like this:

Code: Bash  [Select][+][-]
  1. ./lazarus -pcp=~/.lazarus_test

but obviously this param expects double dashes (?) with it's short version as well:

Code: Bash  [Select][+][-]
  1. ./lazarus --pcp=~/.lazarus_test
Title: Re: TEditButton family and OnContextPopup
Post by: valdir.marcos on September 29, 2020, 11:44:39 am
I would have to additionally install Lazarus trunk first to create a working patch. As I am just getting familiar with Lazarus, it's settings, pathes etc, and not too familiar with Linux either, I'm not sure if I really want to do that at the moment.
Getting the trunk version is actually super-easy. Just make sure Subversion is installed, then in console :
$ svn co https://svn.freepascal.org/svn/lazarus/trunk lazarus_trunk
$ cd lazarus_trunk
$ make
$ ./lazarus &

It also requires some development library packages from Ubuntu repository but you already have them from your earlier installation.
You can have many versions of Lazarus in your machine the same way. No installation, just start them from their directory.

https://wiki.freepascal.org/Getting_Lazarus#Development_version_of_Lazarus
1. How to get fpc trunk?
2. How to use fpc trunk to build lazarus trunk?
Title: Re: TEditButton family and OnContextPopup
Post by: Bart on September 29, 2020, 12:55:02 pm
Should be fixed in trunk by now.

Bart
Title: Re: TEditButton family and OnContextPopup
Post by: Sieben on September 30, 2020, 07:33:11 pm
Thanks. Should this here topic be flagged as 'solved' then?
Title: Re: TEditButton family and OnContextPopup
Post by: JuhaManninen on September 30, 2020, 08:02:14 pm
1. How to get fpc trunk?
2. How to use fpc trunk to build lazarus trunk?
FPC trunk is a little more complicated than Lazarus trunk. I guess FpcUpDeluxe is the easiest way to get it.
Using the development trunk version of both FPC and Lazarus increases the chance for temporary hiccups. I personally like to develop Lazarus with a released version of FPC.
Title: Re: TEditButton family and OnContextPopup
Post by: Bart on September 30, 2020, 09:14:10 pm
FPC trunk is a little more complicated than Lazarus trunk. I guess FpcUpDeluxe is the easiest way to get it.

Assuming you have a svn client and you have fpc 3.2.0 installed it is quite easy.
Code: [Select]
svn co <correct url for fpc, I'm too lazy to check> path/to/fpctrunksources
cd  path/to/fpctrunksources
make all
make install //installs the compiler in c:\pp if you are in Windows
fpcmkcfg -o .\fpc.cfg

You can supply e.g. OPT="-gl"  to the make command, so that you have a fpctrunk with debug info (slower, but quite nice to have).
Bart
TinyPortal © 2005-2018