Recent

Author Topic: Two propertys of identical object types  (Read 11333 times)

alexs

  • Guest
Two propertys of identical object types
« on: December 24, 2004, 01:29:51 am »
in component i'm declare 2 propertys of identical object types
...
    property Transaction:TJvUIBTransaction;
    property UpdateTransaction:TJvUIBTransaction;
...
property UpdateTransaction not display in object inspector
 :(

Lightning

  • Sr. Member
  • ****
  • Posts: 422
Two propertys of identical object types
« Reply #1 on: December 26, 2004, 10:05:27 pm »
Did you rebuild Lazarus ? You should rebuild to see them in the OI.
The future must be... Fast and OpenSource so...
Think Open and Lightning Fast!

Anonymous

  • Guest
Two propertys of identical object types
« Reply #2 on: December 27, 2004, 10:14:46 am »
Yes, I  rebuild Lazarus.
Other new properties are displayed

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2552
Two propertys of identical object types
« Reply #3 on: December 27, 2004, 10:45:43 am »
Are they both read and write ?
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Anonymous

  • Guest
Two propertys of identical object types
« Reply #4 on: December 28, 2004, 11:54:20 am »
In delphi 7 - ok.
full example
  private
    function GetTransaction: TJvUIBTransaction;
    function GetUpdateTransaction: TJvUIBTransaction;
    procedure SetUpdateTransaction(const AValue: TJvUIBTransaction);
    procedure SetTransaction(const AValue: TJvUIBTransaction);
...
published
  property Transaction:TJvUIBTransaction read GetTransaction write SetTransaction;
  property UpdateTransaction:TJvUIBTransaction read GetUpdateTransaction write SetUpdateTransaction;

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2552
Two propertys of identical object types
« Reply #5 on: December 28, 2004, 03:46:23 pm »
Hmm... maybe you have found a bug that 2 or more properties of the same class arent allowed.

Can you try this for example with 2 properties Font: TFont and Font2: TFont to see if it is there aswell ?
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Anonymous

  • Guest
Two propertys of identical object types
« Reply #6 on: December 29, 2004, 11:06:41 pm »
In a simple case all ok.
But in structure components of access to the data - it is not displayed.
http://www.progdigy.com/download/AlexDataset.zip - DataSet for access to FireBird/Interbase
Lazarus - win32, ver 0.9.2b 18.12.2004

jesusr

  • Sr. Member
  • ****
  • Posts: 482
Two propertys of identical object types
« Reply #7 on: December 30, 2004, 07:02:01 pm »
Quote from: "Anonymous"
In a simple case all ok.
But in structure components of access to the data - it is not displayed.
http://www.progdigy.com/download/AlexDataset.zip - DataSet for access to FireBird/Interbase
Lazarus - win32, ver 0.9.2b 18.12.2004


I tried your component in linux (with some changes) and it does show the Transaction and UpdateTransaction in the object inspector, Lazarus 0.9.3 beta 29-dic-2004 and Free Pascal Compiler version 1.9.5 [2004/12/29] for i386

by the way, setting Transaction automatically sets UpdateTransaction, it's ok?

Anonymous

  • Guest
Two propertys of identical object types
« Reply #8 on: December 31, 2004, 01:14:14 am »
i'm so sorry.
At assembly Lazarus the old version of modules, therefore property was used was not displayed. Whether there is a description - how correctly to adjust ways to libraries?

> by the way, setting Transaction automatically sets UpdateTransaction, it's ok?
i'ts ok.
>(with some changes)
What?

jesusr

  • Sr. Member
  • ****
  • Posts: 482
Two propertys of identical object types
« Reply #9 on: December 31, 2004, 06:46:11 am »
Quote from: "Anonymous"
i'm so sorry.
At assembly Lazarus the old version of modules, therefore property was used was not displayed. Whether there is a description - how correctly to adjust ways to libraries?
> by the way, setting Transaction automatically sets UpdateTransaction, it's ok?
i'ts ok.
>(with some changes)
What?


Sorry I have not checked lately the lazarus ccr documentation, so I don't know if there are documentation on how to set the paths to the libraries (If  I undestand correctly your first question)

on the second question this is what I have done:

1.
Changed the paths in the Package Compiler's options.
A)They were refered to what I supposed was your UIB install in C: and B)  the output dir for the package (the lib dir), also at some point in your C: disk.
I changed to point to my UIB install and the correct unit output for me.

2.
I changed the references to Windows, Messages in the uses to:

{$IFDEF WIN32}
Windows, Messages,
{$ELSE}
LCLIntf,
{$ENDIF}

I've not checked if LCLIntf is really needed, though but it works

for A) I think all what is needed is a dependency to the UIB package and not set the path to the source because this create duplicated units (which lazarus nicely detects :)) For B) it's not necesary to set an absolute path to the output unit dir (the lib dir), setting the value to: lib it's enought and will work in windows and linux.

there is a problematic file, though: jvuib.inc which is shared between your component and UIB. Maybe copying the file directly to your source tree will be enought but I don't tested.

I just tried to compile your component and not tried many things above, I will do it as soon as possible.

It's a nice component, great editor. Congratulations.

Anonymous

  • Guest
Two propertys of identical object types
« Reply #10 on: January 04, 2005, 03:08:25 pm »
Thanks for remarks.
I have written the module for editing property FieldName in component DBEdit, DBGrid, DBText, in style Delphi (with a choice from the list - now in Lazarus it is necessary to write a name of a field manually) is it is necessary?

jesusr

  • Sr. Member
  • ****
  • Posts: 482
Two propertys of identical object types
« Reply #11 on: January 04, 2005, 03:51:34 pm »
it would be nice to have it, please send your update to the mailing list

 

TinyPortal © 2005-2018