Recent

Author Topic: Application.HintHidePause  (Read 2108 times)

bobonwhidbey

  • Hero Member
  • *****
  • Posts: 592
    • Double Dummy Solver - free download
Application.HintHidePause
« on: February 22, 2019, 11:26:45 pm »
The implication from the documentation is that HintHidePause controls the # of mille seconds that a Hint for a component will be visible. I have not gotten this to work. It appears that the length of time is dependant of the length of the hint. Long hints (more characters) get more time visible than short hints. Could this be?  Is it possible to control the time a hint is visible?
Lazarus 3.0RC2, FPC 3.2.2 x86_64-win64-win32/win64

ASerge

  • Hero Member
  • *****
  • Posts: 2223
Re: Application.HintHidePause
« Reply #1 on: February 22, 2019, 11:52:40 pm »
I have not gotten this to work.
Lazarus 2.0.0. Windows. Worked as expected.
Give example, please.

bobonwhidbey

  • Hero Member
  • *****
  • Posts: 592
    • Double Dummy Solver - free download
Re: Application.HintHidePause
« Reply #2 on: February 23, 2019, 12:18:57 am »
I create a small project. The longer the hint message is, the longer it remains visible.
Lazarus 3.0RC2, FPC 3.2.2 x86_64-win64-win32/win64

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: Application.HintHidePause
« Reply #3 on: February 23, 2019, 12:36:16 am »
One question: Whatever its length, does the hint remain visible at least the number of milliseconds in HintHidePause? Because if so, the fact that long hints remain more time may well be a "feature" of the OS.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

ASerge

  • Hero Member
  • *****
  • Posts: 2223
Re: Application.HintHidePause
« Reply #4 on: February 23, 2019, 12:37:22 am »
I create a small project. The longer the hint message is, the longer it remains visible.
You are right, there is an additional property HintHidePausePerChar. Set it to zero.

bobonwhidbey

  • Hero Member
  • *****
  • Posts: 592
    • Double Dummy Solver - free download
[solved] Application.HintHidePause
« Reply #5 on: February 23, 2019, 01:26:22 am »
This seems to have solved the problem.

Code: Pascal  [Select][+][-]
  1.       Application.HintHidePausePerChar := 0;

Thank you lucamar and ASerge
Lazarus 3.0RC2, FPC 3.2.2 x86_64-win64-win32/win64

 

TinyPortal © 2005-2018