Yeah, as everybody else stated. The Tag property should do the trick for you.
Graeme.
On 3/19/07, Ger Remmers <[EMAIL PROTECTED]> wrote:
Hi all,
I would like to add a numeric property, ObjectNumber, to TObject (for my
internal use only).
This property needs to be read/write and default to 0 (
I've come across this problem as well. At design time, I set the
colors of Panel to greens, reds etc so it is easy to work with in the
form designer. At runtime I reset those colors to clBtnFace.
I can't remember which event handler I had to use. OnCreate or OnShow.
I know one of them didn't work
On 3/19/07, Vincent Snijders <[EMAIL PROTECTED]> wrote:
EditorToolbar, is that the same as what this patch is doing?
http://www.freepascal.org/mantis/view.php?id=8514
From the feature description, it seems to be. I'll download the two
.diff files and see what they do and maybe incorporate
On 3/19/07, Mattias Gaertner <[EMAIL PROTECTED]> wrote:
Maybe a fpc 2.3.1 ?
I diffed with fpc 2.0.5.
It's was actually the old FPC 2.1.1 which I believe is now the FPC 2.2
branch. After I sent the message I did a diff against the fpc 2.0.5
and I see what you mean. A lot has changed between th
Sorry I have problems with spelling sometimes :-0
I gess a lot of programmers have this.
Met vriendelijke groet,
Pieter Valentijn
Delphidreams
http://www.delphidreams.nl
-Oorspronkelijk bericht-
Van: Bram Kuijvenhoven [mailto:[EMAIL PROTECTED]
Verzonden: maandag 19 maart 2007 23:08
Why don't you use the tag property of the TButton;
Procedure From1.Create(Sender : TObject);
var
C : integer;
begin
for C := 1 to 20 do
Knop[C] := TButton.Create;
Knop[C].tag:= C;
Knop[C].OnClick := @DoSomethingBright;
end;
Procedure Form1.DoSomethingBright(Sender : TObject);
begin
Pieter Valentijn wrote:
TJanXml is a opensource XML parcer in Delphi made by Jan Verhoeven He is
a Ducth man who inspired me sometime ago to make opensource my self.
It is spelled 'parser' with an s :)
Bram
_
To unsubscribe:
There is no need to mess with TObject, every TComponent descendent
component has the Tag property where you can store whatever you want.
http://lazarus-ccr.sourceforge.net/docs/rtl/classes/tcomponent.tag.html
Procedure From1.Create(Sender : TObject);
var
C : integer;
begin
for C := 1 to 20 do
Hi all,
I would like to add a numeric property, ObjectNumber, to TObject (for my
internal use only).
This property needs to be read/write and default to 0 (zero).
How/where do I go about doing this?
example use
Knop : array[1..20] of TButton;
Procedure From1.Create(Sender : TObject);
var
C :
This soultion will not but if rewriten thwen it can handel a better
suport for records.
Its now ordered (by indexed name) but it can be changed to use nodes.
TJanXml is a opensource XML parcer in Delphi made by Jan Verhoeven He is
a Ducth man who inspired me sometime ago to make opensource my self
Interesting. I have to mention that the main reason for my question is
that I want to use XML for data storage, because I can see XML being
able to withstand changes in the data format. So that brings up the
question in my mind, how would the example code handle addition or
removal of record el
Graeme Geldenhuys schreef:
Hi,
When creating packages that extend the Lazarus IDE, like PrettyFormat,
EditorToolbar (my own), etc.
EditorToolbar, is that the same as what this patch is doing?
http://www.freepascal.org/mantis/view.php?id=8514
Vincent
_
When does the OnCreate event for a form run? Does this happen after the
creation
of just the form or the form and all of it child components?
I am having a problem trying to restore font and color setting to a Tmemo
control
with values from a stored config file. In Delphi, I normally do this
On Mon, 19 Mar 2007 11:48:39 +0200
"Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote:
> On 3/19/07, Mattias Gaertner <[EMAIL PROTECTED]> wrote:
>
> > > The other problem I have, is duplication. Why does Lazarus have a
> > > copy of the ptopu.pp unit?
> >
> > Because the .ppu file is not part of fpc 2
I was surprised when i discovered Laz/FPC automatically compiles rc
files if using $R directive but you must specify the extension, dunno
about Delphi ...
Windows automatically assigns the lowest id icon to the executable and
it's forms but one can specify any other icon, problem is Lazarus
unlik
On 3/19/07, Felipe Monteiro de Carvalho
<[EMAIL PROTECTED]> wrote:
On 3/19/07, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote:
> It must be possible under Linux. Lazarus has an application icon in
> the top left of each window. So does the GUI Runner of FPCunit.
The way I see it, the application ic
On 3/19/07, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote:
It must be possible under Linux. Lazarus has an application icon in
the top left of each window. So does the GUI Runner of FPCunit.
The way I see it, the application icon is what you see when you look
to the .exe file on the explorer. The
On 3/19/07, Felipe Monteiro de Carvalho
<[EMAIL PROTECTED]> wrote:
On 3/19/07, Guadagnini David <[EMAIL PROTECTED]> wrote:
> How I can set the icon for my application?
On Windows you create a .rc file and link it to your executable.
On Linux this doesn´t exist.
It must be possible under Linux
On 3/19/07, Razvan Adrian Bogdan <[EMAIL PROTECTED]> wrote:
You have to create a rc or res file and add it to the application with
{$R resfile.res or resfile.rc}
Does {$R resfile.rc} work? I´ve always compile the .rc file and linked
the resulting .res file.
I think it´s possible that $R etwas.
You have to create a rc or res file and add it to the application with
{$R resfile.res or resfile.rc}
Look at lazarus itself for an example, if i remember correctly Lazarus
icons were not real windows icons just bitmaps that read ico format
with bitmap handle and was extremely tricky to get the co
Yes you can use this property to find out things or you can remember
your own variabel.
the key here is that only 1 control will recieve then key down. So if
you want to move a notebook with controls you need to write a routine to
handel there mouse down to.
I think theres lots of solutions to th
On 3/19/07, Guadagnini David <[EMAIL PROTECTED]> wrote:
How I can set the icon for my application?
On Windows you create a .rc file and link it to your executable.
On Linux this doesn´t exist.
One mac os x there is a thread about it on the forum.
For a example, download the magnifier source
> What about Application.Icon property ?
No. Around the in main program icon (in Delphi it is on Options of
project)
Well, in Lazarus I was not able to find it in project options, such as
Delphi, also in other part. I tried so set it at runtime using
Application.Icon but I got an access violat
XN Resource Editor
http://www.wilsonc.demon.co.uk/d10resourceeditor.htm and it includes
sources. Last time i checked res files were only supported on windows
but lrs were supported internally by lazarus.
If you want to edit .lrs files use tool included with lazarus to
generate lrs ...
Razvan
___
Maybe synaser from Synapse project will be useful to you
http://synapse.ararat.cz/
From what i know you can access hardware directly as root but dunno
the calls, you might want to read this though
http://wiki.freepascal.org/Hardware_Access
Razvan
___
I guess I was secretly hoping that things like the right lick menu on the
notebook control can just be "enabled" on the notebook in my control since
it is already implemented. So, can the right click event on the notebook in
the wizard be propagated from the wizard to the notebook? I wonder if tha
What about Application.Icon property ?
No. Around the in main program icon (in Delphi it is on Options of project)
begin:vcard
fn:David Guadagnini
n:Guadagnini;David
org:Biotecnica Instruments S.p.A.;R&D
adr:;;Via Licenza 18;Roma;RM;00133;Italy
email;internet:[EMAIL PROTECTED]
title:Software ar
On 3/19/07, Guadagnini David <[EMAIL PROTECTED]> wrote:
> How I can set the icon for my application?
>
> Thank
>
>
What about Application.Icon property ?
Slapshot
--
Antonio Sanguigni alias slapshot
--
GioveLUG (Linux User G
On Mon, 19 Mar 2007 10:35:09 +0200
"Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> When creating packages that extend the Lazarus IDE, like PrettyFormat,
> EditorToolbar (my own), etc.
> They sometimes need config screens to setup there behaviour. For
> example, I want to extend the Pret
On 3/19/07, Mattias Gaertner <[EMAIL PROTECTED]> wrote:
> Is there a special or preferred location where those config screens
> should appear? New tab in Environment Options or a new menu item under
> the Environment main menu.
IMO at the moment it would be better to add them to
the menu (itmOp
On 3/19/07, Mattias Gaertner <[EMAIL PROTECTED]> wrote:
> The other problem I have, is duplication. Why does Lazarus have a copy
> of the ptopu.pp unit?
Because the .ppu file is not part of fpc 2.0.4 and the ptopu.pp are
different.
I'm not sure understand your answer about the .ppu file? Do
On Mon, 19 Mar 2007 09:49:42 +0200
"Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote:
> On 3/17/07, Vincent Snijders <[EMAIL PROTECTED]> wrote:
>
> > There is prettyformat in the lazarus\components directory. It is an
> > IDE plug-in. It doesn't work too well in my experience though, but
> > that mig
You are right, a very stupid question.
Just joking! :-) I actually have no idea. I think the Lazarus wiki
might have something about this.
Graeme.
On 3/19/07, Guadagnini David <[EMAIL PROTECTED]> wrote:
How I can set the icon for my application?
Thank
_
How I can set the icon for my application?
Thank
begin:vcard
fn:David Guadagnini
n:Guadagnini;David
org:Biotecnica Instruments S.p.A.;R&D
adr:;;Via Licenza 18;Roma;RM;00133;Italy
email;internet:[EMAIL PROTECTED]
title:Software architet
tel;work:+39064112616
x-mozilla-html:FALSE
version:2.1
end:vc
Hi,
When creating packages that extend the Lazarus IDE, like PrettyFormat,
EditorToolbar (my own), etc.
They sometimes need config screens to setup there behaviour. For
example, I want to extend the PrettyFormat package so the user can
specify a custom format rules file to use when doing the form
I think if you need a dynamic way to extract data use Tpersistent + to
store the data.
If you need 1 to manny use TCollection.
(http://www.delphi3000.com/articles/article_1844.asp?SK=)
I wrote a article on how to get data from and to the GUI
http://www.delphi3000.com/articles/article_1846.asp?SK=
36 matches
Mail list logo