Recent

Author Topic: Can't find TDrawGrid.OnGetCellHint  (Read 9233 times)

Handoko

  • Hero Member
  • *****
  • Posts: 5154
  • My goal: build my own game engine using Lazarus
Can't find TDrawGrid.OnGetCellHint
« on: May 27, 2017, 04:28:39 am »
TStringGrid has OnGetCellHint but why there is no TDrawGrid.OnGetCellHint?

I inspected the code of TDrawGrid and I found TCustomGrid (ancestor of TDrawGrid) already has OnGetCellHint as a protected property.

I need TDrawGrid.OnGetCellHint but I can not use it because it is in protected visibility. It is a bug or unimplemented feature?

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: Can't find TDrawGrid.OnGetCellHint
« Reply #1 on: May 27, 2017, 04:37:19 am »
Seems to have been addressed:
Quote
r51701 LCL: publish TDrawGrid OnGetCellHint event Issue #29727

edit: refined url
« Last Edit: May 27, 2017, 04:39:28 am by molly »

sky_khan

  • Guest
Re: Can't find TDrawGrid.OnGetCellHint
« Reply #2 on: May 27, 2017, 04:41:06 am »
Yes, 1.8 RC1 has it published. Time to upgrade :)

Handoko

  • Hero Member
  • *****
  • Posts: 5154
  • My goal: build my own game engine using Lazarus
Re: Can't find TDrawGrid.OnGetCellHint
« Reply #3 on: May 27, 2017, 04:52:16 am »
Thank you for the information. I will upgrade later, my Lazarus runs stable and I don't want to take any risks to use the pre-release version.

sky_khan

  • Guest
Re: Can't find TDrawGrid.OnGetCellHint
« Reply #4 on: May 27, 2017, 04:56:45 am »
Well then time to hack :)

type
  TGridCrack = class(TDrawGrid);

on form1.create
  TGridCrack(MyDrawGrid).OnGetCellHint:=@MyGetCellHint;

or if you dont like this either then time to wait :) You decide.
« Last Edit: May 27, 2017, 04:58:37 am by SkyKhan »

Handoko

  • Hero Member
  • *****
  • Posts: 5154
  • My goal: build my own game engine using Lazarus
Re: Can't find TDrawGrid.OnGetCellHint
« Reply #5 on: May 27, 2017, 10:42:50 am »
Tested your suggestion, and yes it works. For now I will use it. Thank you.  :D

Ondrej Pokorny

  • Full Member
  • ***
  • Posts: 220
Re: Can't find TDrawGrid.OnGetCellHint
« Reply #6 on: May 28, 2017, 08:03:48 am »
Thank you for the information. I will upgrade later, my Lazarus runs stable and I don't want to take any risks to use the pre-release version.

You shouldn't use it but test it. Only so problems you may experience can be resolved for 1.8.0.

wp

  • Hero Member
  • *****
  • Posts: 11916
Re: Can't find TDrawGrid.OnGetCellHint
« Reply #7 on: May 28, 2017, 09:24:25 am »
You shouldn't use it but test it. Only so problems you may experience can be resolved for 1.8.0.
I fully agree. By checking the "Secondary installation" box in one of the first installation screens you can install the new version and leave the old installation unchanged. But it should be noted that 1.8 may adds some properties to forms and some standard components, and hence, you may experience streaming errors when you open a project again in the old installation once it had been opened by 1.8. Therefore, always test with backup copies of your projects.

Handoko

  • Hero Member
  • *****
  • Posts: 5154
  • My goal: build my own game engine using Lazarus
Re: Can't find TDrawGrid.OnGetCellHint
« Reply #8 on: May 28, 2017, 03:46:57 pm »
:-[ Yep, I admit I'm lazy. The risk actually is no problem for me, I can reinstall back to the previous version if something wrong.

Lazy is a bad thing so I installed and tried 1.8.0RC1 release. And now I'm back to report that the TDrawGrid.OnGetCellHint is working correctly on Lazarus 1.8.0RC1. :)

But the installation process didn't run smoothly and I found a very serious bug that makes IDE version 1.8.0RC1 (almost) unusable. The installation issues aren't critical, just some warnings. But I found one serious problem that must be fixed.

=== Issue #1: Installation - FPC Conflict

The message said "Error: Breaks existing package 'fpc' conflict: fpc ()".
Actually everything the FPC is working correctly, don't know why the error showed up after finishing the FPC installation. I remember I ever got same error on other release.

=== Issue #2: First Time Starting IDE - Wrong Version

The message said "wrong version in ide/version.inc: 1.8.0RC1".
This warning won't gone until I delete my "./lazarus" folder under my home directory.

=== Issue #3: First Time Starting IDE - Package Registration Error

I didn't remember what I have done, the error warning just never come back anymore.

=== Issue #4: IDE Keyboard Typing !!! Critical !!!  >:D

This is bad, I almost unable to use Lazarus. On the IDE, each time I type my keyboard the character will appear twice, except for backspace key. For example if I type the word "begin", the result is "bbeeggiinn".


Well, have anyone report those issues I mentioned? Do I need to report it on the bug report forum or on the Lazarus Announcement thread?

Note:
The tests were performed on Ubuntu Mate 16.10 64-bit Lazarus 1.8.0RC1 2017-05-15 FPC 3.0.3 x86_64-linux-gtk2.
« Last Edit: May 28, 2017, 07:02:59 pm by Handoko »

wp

  • Hero Member
  • *****
  • Posts: 11916
Re: Can't find TDrawGrid.OnGetCellHint
« Reply #9 on: May 28, 2017, 04:05:29 pm »
Because many developers mainly read the Lazarus mailing list please write a note there and refer to this thread. Did you install to a clean directory?

Handoko

  • Hero Member
  • *****
  • Posts: 5154
  • My goal: build my own game engine using Lazarus
Re: Can't find TDrawGrid.OnGetCellHint
« Reply #10 on: May 28, 2017, 05:07:18 pm »
As you suggested, I have written an email to the Lazarus mailing list.

No, the installation was not on a clean directory. I used Synaptic Package Manager to remove Lazarus 1.6.4, FPC 3.0.2 and FPC-Source, but I noticed my Lazarus' configuration folder "./lazarus" was not removed from my home folder.

(I forgot to mention:)

Although I experienced those issues, the FPC was working correctly. I can start a new project, compile and run correctly.
« Last Edit: May 28, 2017, 05:14:22 pm by Handoko »

wp

  • Hero Member
  • *****
  • Posts: 11916
Re: Can't find TDrawGrid.OnGetCellHint
« Reply #11 on: May 28, 2017, 06:02:38 pm »
I don't see the mail... IIRC, you must register for your mail address to be accepted, but I may be wrong (http://lists.lazarus-ide.org/listinfo/lazarus).

Anyway, to speed things up I wrote a mail myself and referred to this and the other thread (http://lists.lazarus.freepascal.org/pipermail/lazarus/2017-May/231861.html).

Handoko

  • Hero Member
  • *****
  • Posts: 5154
  • My goal: build my own game engine using Lazarus
Re: Can't find TDrawGrid.OnGetCellHint
« Reply #12 on: May 28, 2017, 06:18:12 pm »
Thank you for helping me to write the mail.

I visited that page, it mentioned that we need to register to be able to subscribe but it doesn't say register is needed to post message there.

bytebites

  • Hero Member
  • *****
  • Posts: 640
Re: Can't find TDrawGrid.OnGetCellHint
« Reply #13 on: May 28, 2017, 06:51:54 pm »
Duplicated key is known issue:
https://bugs.freepascal.org/view.php?id=30863

Handoko

  • Hero Member
  • *****
  • Posts: 5154
  • My goal: build my own game engine using Lazarus
Re: Can't find TDrawGrid.OnGetCellHint
« Reply #14 on: May 28, 2017, 07:00:21 pm »
That issue has already reported since 2016-11-04. It is still not fixed, it must be a hard one. Hope it can be fixed soon.

Thank you for the information.

 

TinyPortal © 2005-2018