Recent

Author Topic: Some problems in Lazarus 1.8.4 that I had  (Read 3078 times)

Seingalt

  • Newbie
  • Posts: 3
Some problems in Lazarus 1.8.4 that I had
« on: June 23, 2018, 03:55:17 pm »
First all sorry for my bad English!

I disabled the TDBEdit for ReadOnly and I enabled it after but it'not enabled.

In TActionList I associted the buttons that's right,but in button I try remove the Caption but it'not disapered,I have change in code using :

Event on Show:
button.caption:=' ';

System Operation : Windows 7 64 bits service pack 1
« Last Edit: June 23, 2018, 03:58:38 pm by Seingalt »

Handoko

  • Hero Member
  • *****
  • Posts: 5122
  • My goal: build my own game engine using Lazarus
Re: Some problems in Lazarus 1.8.4 that I had
« Reply #1 on: June 23, 2018, 04:16:11 pm »
Hello Seingalt,
Welcome to the forum.

We need more information especially the source code. If you're not willing to publicize your project, you can write a test project that can produce the problem.

Copy all the necessary files including the database to a new folder, except: the lib folder, *.bak, *.exe. Compress the folder and send the zip file to the forum.

Bart

  • Hero Member
  • *****
  • Posts: 5265
    • Bart en Mariska's Webstek
Re: Some problems in Lazarus 1.8.4 that I had
« Reply #2 on: June 23, 2018, 04:42:58 pm »
Set the Caption in the associated Action.

Bart

Seingalt

  • Newbie
  • Posts: 3
Re: Some problems in Lazarus 1.8.4 that I had
« Reply #3 on: June 23, 2018, 06:07:46 pm »

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1106
Re: Some problems in Lazarus 1.8.4 that I had
« Reply #4 on: June 23, 2018, 08:20:33 pm »
Ok I send the project in zip file:
https://www.4shared.com/archive/gnrqBQNDee/Cadastro.html
Since your 7zip file is only 150kb, I have just downloaded it from 4shared and uploaded it here to help other people help you...
I have not opened your project to look at it, though.

Handoko

  • Hero Member
  • *****
  • Posts: 5122
  • My goal: build my own game engine using Lazarus
Re: Some problems in Lazarus 1.8.4 that I had
« Reply #5 on: June 23, 2018, 08:33:34 pm »
Downloaded and tested. Unfortunately I'm not good in database programming. I will let others to help TS.

Seingalt

  • Newbie
  • Posts: 3
Re: Some problems in Lazarus 1.8.4 that I had
« Reply #6 on: June 23, 2018, 11:02:08 pm »
I persist see the code and I look a panel1.enabled:=false  :o, it could be difficult the propertie ReadOnly.

Sorry I will pay more attention last time.

The problem with Caption in buttons persist,but I will go see well before post it.

Thanks for attention and patietion

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1106
Re: Some problems in Lazarus 1.8.4 that I had
« Reply #7 on: June 25, 2018, 07:23:01 am »
The problem with Caption in buttons persist,but I will go see well before post it.
When working with TActionList, you should plan even more before act. I mean, you should think and build all TAction before building TMainMenu, TPopMenu, TToolBar, TCoolBar, TButton, TSpeedButton and TImageList.
Captions are handled easily, automatically and correctly.
To show the images from the TImageList at design-time, you need to set it to all involved components.
See a very small example attached.

http://www.drbob42.com/delphi4/actions.htm
http://edn.embarcadero.com/article/27058
http://forum.lazarus.freepascal.org/index.php?topic=17001.0
http://wiki.freepascal.org/TActionList
http://wiki.freepascal.org/TAction
http://wiki.freepascal.org/Lazarus_Components
http://wiki.freepascal.org/Current_conversion_projects

 

TinyPortal © 2005-2018