Recent

Author Topic: TEditButton family and OnContextPopup  (Read 2477 times)

Sieben

  • Sr. Member
  • ****
  • Posts: 310
TEditButton family and OnContextPopup
« on: September 07, 2020, 09:09:07 pm »
Are there any special reasons why no descendant of TCustomEditButton - except for TEditButton itself - publishes OnContextPopup?
Lazarus 2.2.0, FPC 3.2.2, .deb install on Ubuntu Xenial 32 / Gtk2 / Unity7

Bart

  • Hero Member
  • *****
  • Posts: 5275
    • Bart en Mariska's Webstek
Re: TEditButton family and OnContextPopup
« Reply #1 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

Sieben

  • Sr. Member
  • ****
  • Posts: 310
Re: TEditButton family and OnContextPopup
« Reply #2 on: September 08, 2020, 10:03:40 am »
Got the tutorials and will give it a try, thanks.
Lazarus 2.2.0, FPC 3.2.2, .deb install on Ubuntu Xenial 32 / Gtk2 / Unity7

Sieben

  • Sr. Member
  • ****
  • Posts: 310
Re: TEditButton family and OnContextPopup
« Reply #3 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

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...?
Lazarus 2.2.0, FPC 3.2.2, .deb install on Ubuntu Xenial 32 / Gtk2 / Unity7

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: TEditButton family and OnContextPopup
« Reply #4 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
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Sieben

  • Sr. Member
  • ****
  • Posts: 310
Re: TEditButton family and OnContextPopup
« Reply #5 on: September 08, 2020, 05:28:23 pm »
Thanks, that sounds fairly easy indeed. Current dir in console should be my home directory then?
Lazarus 2.2.0, FPC 3.2.2, .deb install on Ubuntu Xenial 32 / Gtk2 / Unity7

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: TEditButton family and OnContextPopup
« Reply #6 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.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Sieben

  • Sr. Member
  • ****
  • Posts: 310
Re: TEditButton family and OnContextPopup
« Reply #7 on: September 08, 2020, 09:58:21 pm »
Thanks again. Will do so tomorrow.
Lazarus 2.2.0, FPC 3.2.2, .deb install on Ubuntu Xenial 32 / Gtk2 / Unity7

Sieben

  • Sr. Member
  • ****
  • Posts: 310
Re: TEditButton family and OnContextPopup
« Reply #8 on: September 28, 2020, 03:02:19 pm »
Finally filed:

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
Lazarus 2.2.0, FPC 3.2.2, .deb install on Ubuntu Xenial 32 / Gtk2 / Unity7

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1106
Re: TEditButton family and OnContextPopup
« Reply #9 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?

Bart

  • Hero Member
  • *****
  • Posts: 5275
    • Bart en Mariska's Webstek
Re: TEditButton family and OnContextPopup
« Reply #10 on: September 29, 2020, 12:55:02 pm »
Should be fixed in trunk by now.

Bart

Sieben

  • Sr. Member
  • ****
  • Posts: 310
Re: TEditButton family and OnContextPopup
« Reply #11 on: September 30, 2020, 07:33:11 pm »
Thanks. Should this here topic be flagged as 'solved' then?
Lazarus 2.2.0, FPC 3.2.2, .deb install on Ubuntu Xenial 32 / Gtk2 / Unity7

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: TEditButton family and OnContextPopup
« Reply #12 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.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Bart

  • Hero Member
  • *****
  • Posts: 5275
    • Bart en Mariska's Webstek
Re: TEditButton family and OnContextPopup
« Reply #13 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