> Tools->Options->CodeTools->General->Jump directly to method body.
What a relief :D
Regards,
Ara
--
http://www.fastmail.com - Email service worth paying for. Try it for free
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
Hi,
When you do Ctrl+Click on a procedure you will go to the interface and
then you should hit Ctrl+Shift+Down to go to the implementation, How can
I make it like Delphi that when you do Ctrl+Click on a procedure it goes
to implementation not interface?
Regards,
Ara
--
If you don't know already there is a graphics contest in Pascal.
http://forum.lazarus.freepascal.org/index.php/topic,32626.0.html
--
http://www.fastmail.com - The professional email service
--
___
Lazarus mailing list
Hi,
Can we have advanced record support in JCF? is there any bug report
about this that I cant find or this is already implemented?
JCF has problem like this but CodeTool And FPC have not any problem.
> TADVRecord = record
> private
> function GetProp:boolean;
> public
> property Prop: boolean
> The data will be dupplicated.
Yes and it is bad but as I said it is good for even couple
thousand record.
Regards,
Ara
--
http://www.fastmail.com - A fast, anti-spam email service.
--
___
Lazarus mailing list
A simple way is to make BufferCount=RecordCount so all record will be in
buffer, it will be fast and easy to use and good for even couple of
thousands records but not a real solution.
Regards,
Ara
--
http://www.fastmail.com - Email service worth paying for. Try it for free
--
> The easy one is probably to make two independent connections to the
> database. More elaborated solutions would be for example copy all said
> records to a memdataset and only connect that to a dbgrid, OR put the
> records in a non-dataset enabled component, like a TDrawGrid or
> TStringGrid,
Thanks.
So what is the best way to provide those 100 to 1100 record at least
without Dataset calling AfterScroll event?
I want to not make any event while scrolling my custom Grid so other
connected DB controls change their values otherwise while Im scrolling
my custom grid it will cause calling
Thanks, It seems I should explain better.
For RecordCount you are right and it seems DBGrid doesn't know correct
number either otherwise it should has a better scroll size.
I want to do something like DBGrid and for that I want to get only a
part of data for example record 1000 to 1100 and for
Jesus,
In that demo if I set BufferCount to 9 always get 9 records and even
Query.RecordCount will be 9 even result is more.
How can I get real count? I can get count before setting the link but is
it the best way?
How can I move or scroll link without moving Query? I want to scroll the
grid and
Thanks for the explanation, with your demo its more clear to me.
Regards,
Ara
--
http://www.fastmail.com - Choose from over 50 domains or use your own
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
Hi,
I'm curious about how TDBGrid now what to show in a column as value.
I mean if I want to make a custom grid simple solution si going from
first to last of TDataset and read columns value.
I Browsed TDBGrid code lately but sadly I couldnt find how it works to
get data without (as I think)
Thanks for the explanation Michael but I didnt have an idea about
this ability.
Regards,
Ara
--
http://www.fastmail.com - Or how I learned to stop worrying and
love email again
--
___
Lazarus mailing list
> We do have documentation, you know. Is it so much to ask to
> look at it ?
> http://www.freepascal.org/docs-html/current/prog/progsu128.html
No it is not but it is not came to my searches and FPC documentation is
not much good for searching at least from google and if I know what I
want I
> AFAIK, it's because it's not technically possible.
As an amateur can I ask why?
> Use {$IF DECLARED(useheaptrace)} in your main project file (just like
> lazarus.pp uses it).
Very interesting! I didnt know this ability,Thanks. How it works? what
key names it has?
But it has a problem, if you use
My bad, I missed this http://bugs.freepascal.org/view.php?id=24681
But as it marked as "no change required" but I cant understand why we
cant benefit from something like this that have an internal option in
project option but we cant control to save the output without defining
an internal define
Hi,
As subject said I want to debug from my local Windows machine Lazarus a
Linux server and for that I read wiki and all posts like:
http://wiki.lazarus.freepascal.org/Remote_Debugging
http://forum.lazarus.freepascal.org/index.php/topic,19014.0.html
Thanks Graeme but it sort line by line but I want to sort procedures and
classes but it you choose multiple procedures it will mess the code and
even you choose only definitions in class interface and sort them it
will not sort implementations.
Regards,
Ara
--
http://www.fastmail.com -
Hi,
I see JCF and CodeTool have many abilities and CodeTool also can
complete code with declaring needed procedures with Ctrl+C shortcut.
Now I have a code with on sorted events and procedures and it made me
tired to find them so it made me ask is there a option or tool in one of
these or other
What Lazarus version?
Regards,
Ara
--
http://www.fastmail.com - Choose from over 50 domains or use your own
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
> "-d" is the fpc flag for a define. See "fpc -h".
Thanks,
Ara
--
http://www.fastmail.com - Access all of your messages and folders
wherever you are
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
> Add -dUse_XYZ to Project / Project Options / Compiler Options /
> Custom Options
Curiosity : Why a "d" in the beginning?
Regards,
Ara
--
http://www.fastmail.com - A no graphics, no pop-ups email service
--
___
Lazarus mailing list
Hi,
Thanks for explanation Sandro.
I checked your demo and even other demos and I can say they are
interesting, I wish I had the source specially JPEG demo so I can check
your results.
Regards,
Ara
--
http://www.fastmail.com - Does exactly what it says on the tin
--
Thanks.
I will test it.
Is there any particular reason that you didnt use official release?
Why there is much difference? It seems I miss something!
Regards,
Ara
--
http://www.fastmail.com - A fast, anti-spam email service.
--
___
Lazarus
Thank you very much for sharing. Clean.
I looked into it and its questioning for me how it works?
Implementations like I mentioned is not like it and documentations and
even dlls in here
http://www.libjpeg-turbo.org/Documentation/OfficialBinaries are not
like that.
Can you explain more?
Very interesting! Thanks for sharing, maybe I was wrong in
implementation. Do you used any different header or implementation?
Can you share it?
@All : Is there a way to use libjpeg-*turbo *with Lazarus *without*
using an external library like DLL?
Regards,
Ara
--
http://www.fastmail.com -
> I, myself, am very thankful to Lazarus and FPC. Without them, I had to
> pay a lot of money to upgrade to Delphi, which I hate after version 7,
> for my work to make a living. I make money from a FREE open source
> project which developers work without reward. I want to say loudly
> here, THANK
> As someone who has been active on this list for a few weeks only, I
> want to take this opportunity to thank the developers both of Lazarus
> and FPC for your work, and also for being among the most approachable
> people in open source projects I know. You are part of why I migrated
> most of my
No just install and use it.
Regards,
Ara
--
http://www.fastmail.com - A fast, anti-spam email service.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Very good. Thanks.
Red line left margin has problem in Google chrome default PDF viewer,
maybe it is Chrome problem but I think you should know.
Regards,
Ara
--
http://www.fastmail.com - Faster than the air-speed velocity of an
unladen european swallow
--
Thanks but I need libjpeg using because of speed and fpimage with
UsePalette := False is not fast enough.
My tests with libjpeg.dll and this header[1] id much faster than
fpimage (half the time) so I wanted to have a native way using pasjpeg
instead of a dll.
Regards,
Ara
Links:
1.
Hi,
I want use libjpeg and I found pasjpeg package in fpc that contains
jpeglib.pas unit but I coudnt find a working demo to know how load a
jpeg file and show it.
Can anyone point me to a better direction?
Regards,
Ara
--
http://www.fastmail.com - mmm... Fastmail...
--
> What did you use before? --pcp? If that works on commandline but not
> in .cfg, then report a bug please.
I will check more.
> You need to ask them.
I tried but he didnt answer this question nor previous one about his
custom version so I asked maybe someone else know about that.
> So there are
Aha!
If found the problem!
I have a config folder in my Lazarus directory that has every config xml
files like default Lazarus have in Appdata.
When I open Lazarus forms shortcut like I said there was no problem but
when I add that path to cfg it has problem until I changed the address
to this :
Thanks Martin.
This is what I done:
* Get a Trunk Lazarus version and make it and make a shortcut and
install all my packages and settings and ...
* Make cfg file and add what you said in it with my Lazarus path
something like this : --primary-config-path=C:\Trunk\lazarus
* Run Lazarus
> The same as when you specified --pcp
>
> If you copied the lazarus.exe from another install, then you need to
> rebuild it once. And add or remove packages if needed.
unfortunately I cant understand you.
Regards,
Ara
--
http://www.fastmail.com - A no graphics, no pop-ups email service
> Could you try this: 1) Create shortcut on the desktop. 2) Using
> Properties, add the parameters to it (and of course, save it). 3) Use
> 'Pin to Taskbar' 4) Delete the shortcut on the desktop.
I checked and it doesn't solve the problem and still there will be one
opened Lazarus and one
> I understood your remark as "getlazarus offers this functionality
> already".
Yes and I want to know how.
Regards,
Ara
--
http://www.fastmail.com - Send your email first class
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
> That is what the lazarus.cfg file is for.
>
> Instead of supplying the parameters fer --pcp, you put them into the
> cfg file.
>
> lazarus.exe, when started, looks for a lazarus.cfg file in the same
> folder as the exe. If found it adds the content to its command line
> params. (one per line).
>
> The recommende way is and has always been to use the --
> pcp=path/to/config commandline parameter. Why do you insist that it
> must be done in another way? Why can you simpy use the mechanismes we
> have provided for just that? If you don want a shortcut (why???) then
> just start it from the
> How do you know that it works ?
What do mean from that? If you mean GetLaarus version I have one
installed and if you mean I have another old Lazarus that I tried
using cfg.
But I want the best way for my trunk version so I can run it beside of
stable version without making shortcut.
Regards,
> Of course it looses all the settings, because you just told it to look
> in a different directory. Copy your original settings from their
> default location over to the new one and you should be good to go.
Ichecked and there is not any old cfg file.
> Be careful. When copying all settings
> Put a "lazarus.cfg" into the folder with lazarus.exe and write exactly
> this line into this file.
Thanks but it seems not a good way. Lazarus will lose all the setting
ans installed package and also GetLazarus version doesn't use a cfg file
as I searched so it can has a better answer.
Hi,
As Wiki said here http://wiki.freepascal.org/Multiple_Lazarus I should
make a shortcut for second Lazarus like this :
> --primary-config-path=lazarusconf
But I dont want to make a shortcut like this and like GetLazarus version
I want to somehow set this config without making a new shortcut.
Thank you Michael Van Canneyt.
Regards, Ara
--
http://www.fastmail.com - A no graphics, no pop-ups email service
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Subject say what I want and as discussed here there are couple of ways to do
this and one of them is a custom garbage collector :
http://stackoverflow.com/questions/415958/how-to-automatically-free-classes-objects
I want to know is there any better way in Lazarus or what should I do?
Regards,
Thanks to Thaddy there is a patch that add this ability:
http://bugs.freepascal.org/view.php?id=29761
Regards, Ara
--
http://www.fastmail.com - The professional email service
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
Hi,
I want CopyFromDataset for TBufDataset so I can copy a dataset to it so
I write it now. Problem is I never compile a fpc package before and now
fpc dont recognize my new procedure although Lazarus will recognize it.
How can I compile fcl-db package?
Regards, Ara
--
http://www.fastmail.com
Hi,
For my project I need a good tree view and the best free one was and is
VirtualTree but it has not DB component and the only version I can found
that could compile with Lazarus is this TVirtualDBTreeEx version[1]. It
need a simple change and it will compile but it has a uncompleted demo
that
> Why not ? It should perfectly work without file.
It seems I got a problem with changing properties in design time and
then opening it. if I make everything in code it works good. But problem
with memdatset and memds units still exist.
Regards, Ara
--
http://www.fastmail.com - Same, same, but
Hi,
I want a memory dataset like VirtualTable [1]and really I cant
understand what are these bufdataset and memdataset and wiki[2] page as
I cant make bufdataset works without a file. I want an easy to sue
memory dataset without any file usage.
Yes there is a way to use TMemDataset like this as
I reinstall everything and tried a new test :
1. add lazopenglcontext
2. add OpenGLContext unit
3. type O:=TOpenGLControl.Create(self);
4. run and no problem.
5. type o.Parent:=self;
6. run and that error again.
Regards, Ara
--
http://www.fastmail.com - Accessible with your email
Hi,
Im working on one of my projects and tried to make a release version, so
I used shortcut button in build modes and add release mode but when I
compile and run I get SIGSEGV error when main form want to be create.
After many tries I found out that if I check "Use Heaptrc unit" in
project
> Are you sure it's in the OpenGL units initialization?
Yes.
> Can you test the Lazarus examples/openglcontrol/ demo, and see does it
crash too? Yes.
> we're using FPC OpenGL units on many platforms, including Windows 10,
and we often test with latest FPC from trunk. And everything seems to
work
> I tried to replace old Lazarus and FPC OpenGl components with new one
> and clean and recompile but problem is still there.
It seemed taht it not used new FPC OpenGL package units because they are
precompiled so I tried and delete compiled opengl units from units
folder but not Lazarus says it
Hi,
I have a new Laptop and with new Windows 10 and tried my old working
demos and I tried it with Last Lazarus Trunk 1.7 and FPC 3.1.1 and just
tried to run it and its happen :
> A dynamic link library (DLL) initialization routine failed
It is because OpenGL loading error and I dont have clue
I done two more tests: Get Lazarus 1.6 RC2 and still have problem. Copy
and recompile OpenGL package from 1.0 to 1.7 and still have problem.
So it seems problem is not because of OpenGL package.
Any idea?
Regards, Ara
--
http://www.fastmail.com - Access your email from home and the web
--
Thanks Denis.
Regards, Ara
--
http://www.fastmail.com - mmm... Fastmail...
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Very good,Please let us know.
Regards, Ara
--
http://www.fastmail.com - The professional email service
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
> Is there any interest in such feature?
Yea, sure! It can be very helpful for localization.
Regards, Ara
--
http://www.fastmail.com - Access your email from home and the web
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
I like this one more :
> It now is "because we haven't implemented it yet"
Because :
> A literal such as [10,20,30,40] is a set in pascal, not an array.
Is not a good one I think. For example this one works :
> function Test(Arr:array of integer); Usage: Test([1,2,3]);
Why it cant work for
Michael can I ask why we cant do something like this :
> MyArr :=[10, 20, 30, 40];
Regards, Ara
--
http://www.fastmail.com - Send your email first class
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
Hi, As question explained here
http://stackoverflow.com/questions/6493727/can-i-assign-items-in-an-array-all-at-once-in-delphi-pascal
and the easiest answer is :
> type
TIntArray =arrayof integer;procedure TForm1.Button1Click(Sender:
TObject);var MyArr: TIntArray;begin MyArr :=
Hi,
It seems CodeTools has a problem with packages that are in address with
"#" in the directory name at least in Windows. It cant find package
units and do auto complete but program will compile and this problem
will happen for only packages and units that are in a folder like this
> The trend is actually switching to web+desktop applications. I.e.
> Steam client or Delphi's "help" window. So each application is a
> browser on its own. A smarter framework might suggest an alternative
> to html+js, so it could integrate with any application easily, rather
> than for a browser
> See many threads (on the forum) about integrating ChromeKit or Gecko
> into LCL app
Of course I saw them but as I said I surprised from that I cant find any
particular good one because I have habit that always there will be good
thing made with FPC and Lazarus.
But if you know a especial one
Thanks it works for me. But a quick question: Why we always make events
like "procedure () of object" if we can make without "of object" ?
Regards, Ara
--
http://www.fastmail.com - Accessible with your email software
or over the web
--
So why Bart said :
> Or define a
type TNotifyProc = procedure(Sender: TObject); (Which the will not be
of type TNotifyEvent) ? Regards, Ara
--
http://www.fastmail.com - Or how I learned to stop worrying and
love email again
--
Hi,
Is there anyone here to answer about GetLazarus Nightly version? I
remember the time that people here was disagree about making a new forum
and now seems right to me because that forum and author email seems non
responding.
I want to know if it can cross compile from Windows 64bit to Linux
> A TNotifyEvent must be a procedure that is a method of a class. You
> have created and tried to use a plain procedure instead.
So how can I use a notify in a console program?
> Because
TNotifyEvent = procedure(Sender: TObject) of object;
The 'of object' means you need a method, not a procedure.
Hi,
Maybe Im tierd but could any one tell me what this code wont work:
> program Project1;
>
> {$mode objfpc}{$H+}
>
> uses Classes, SysUtils;
>
> type
>
> { Tbook }
>
> Tbook = class private fnoti: TNotifyEvent; public property
> noti: TNotifyEvent read fnoti write fnoti; end;
>
> var
Hi,
I have many libraries and all the wrappers are static and I cant change
all of them to dynamic loading but I want to put them in different
folder my program root. It seems there is "delayed" option is in Delphi
that give you time to SetDllDirectory and change the path before loading
dll. And
Hi,
I have many libraries (dll,so) and they come with wrappers with constant
library path and file name. I want to move these libraries to a specific
folder and load from there so one way I know is to change them and load
them dynamicly but I cant do it every time new library version came out
> Yes. Look for bauglir websocket. It uses synapse.
I use it, it works very well Michael it is so old and I cant compile it
with FPC 3 and need many changes that I made but they cause many error,
Do you know any updated version?
Regards, Ara
--
http://www.fastmail.com - Or how I learned to
[Cross posted on forum so if you want answer there :
http://forum.lazarus.freepascal.org/index.php/topic,30635.0.html ]
Hi,
I want to play with MySQL process and get what ever it write to console
so I write this code:
> Process := TProcess.Create(nil); with Process do begin
> Executable :=
> Simply said: You cannot.
Sure it doable. For example alternative consoles can work with mysql
with help of cmd and runs cmd and then run mysql with cmd and with that
they get some kind of control but I dont how to do this with Lazarus.
For example if you run this without -WG command you can see
> is it maybe sent via something other than STDOUT? STDERR perhaps? for
> security
reasons maybe? Nothing! :|
> Process := TProcess.Create(nil); with Process do begin Executable
> := '"C:\Program Files (x86)\MySQL\MySQL Server 5.5\bin\mysql.exe" -u
> root -p'; with Parameters do begin
> What is the -WG param ? I could not find it in the documentation.
Win32 GUI application in compiler option> conf and target
> If you are afraid that it will be visible in the task list, just set
> the MYSQL_PWD and USER environment variables in TProcess.
Good point.
> All in all, I suspect you
> Simple Loop:
- Read from program output
- interpret the output and
- write to program input. That's all the "general" advice we can give.
Yea sure I do this and I have no problem with simple CMD programs.
Problem is programs like MySQL that can be run from one line command and
need
> Did you use the poNoConsole option ?
Yes and NumByteAvailable is 0 but it write "Enter Password" message in
console. I can understand why this message goes in Lazarus output or
wherever except output of TProcess.
Regards, Ara
--
http://www.fastmail.com - Access all of your messages and
It seems FPC optimizer know what line will be used so compile them and
probably line initialization lines but how I can find out what line
will run! It is so ugly that you can not find out what line in your
program will run!
Regards, Ara
--
http://www.fastmail.com - IMAP accessible web-mail
I think about that and I checked as I can but neither of them will run
and also I add another project and add all the packages and uses units
in FormX to it so if any Initialization make the problem I could find it
but no, without no problem it will run. Just this project and just this
form cause
How can I know what lines run from the first line?
Regards, Ara
--
http://www.fastmail.com - Does exactly what it says on the tin
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
Hi,
Today I open one of my applications and start working on it and made
many changes and hit the run but it will immediately crash! So like a
programmer I add a break poit on my main form create and no it will not
run and crash will happen. So I add another break point to first line of
I shared this problem with admin and until now there isn't any answer.
Regards, Ara
--
http://www.fastmail.com - Faster than the air-speed velocity of an
unladen european swallow
--
___
Lazarus mailing list
> Animation effects (like seen on Android and iOS) is
another matter - they benefit from the GPU a lot. And this is Im
looking to.
Regards, Ara
--
http://www.fastmail.com - IMAP accessible web-mail
--
___
Lazarus mailing list
A testing mail!
Regards, Ara
--
http://www.fastmail.com - Does exactly what it says on the tin
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
And no annoying email.
Thanks Vincent. Ara
--
http://www.fastmail.com - Faster than the air-speed velocity of an
unladen european swallow
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
Hi,
Can I know who is Lazarus MailList maintainer?
Regards, Ara
--
http://www.fastmail.com - Faster than the air-speed velocity of an
unladen european swallow
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
> http://tulip-ui.azurewebsites.net/
Not the UI controls but the engine maybe.
> AsphyreSphinx is now Pascal eXtended Library.
I read about it but I didnt test it,any one here has experince with it?
> Doesn't Cairo have a hardware acceleration backend? Then again, you'd
> have to have a cairo
Thanks,It seems I am tired ;)
Regards, Ara
--
http://www.fastmail.com - Accessible with your email software
or over the web
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
Thanks for the point. Its good to add this to GetLazarus NightlyBuild.
Regards, Ara
--
http://www.fastmail.com - IMAP accessible web-mail
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
Hi,
I am working on a specefic GUI that need to be too fast and for this I
have fpGUI or mse but in this project I need fast image and resizing and
as I tested the fastest way for this kind of jobs OpenGL is the best so
I made a project on it and everything is great and much much fast! So I
want
> The normal GUI functions do use the hardware acceleration as they
> should. so no chance for a great improvement here.
Where can I read more about this?
So according to what you say problem may be using one handle per control
so resizing will make flickering. Is there anyway to disable this
> Why do you think there is anything faster than the standard GUI ?
I need controls that has animations and images that need to be fast
in painting. I checked everything I know, the best result for
graphical function is BGRABitmap but it is slow for high resolution
painting so the best result I
> First of, everything concerning glBegin and friends is ancient stuff,
> don't touch them.
Don't touch glMatrix* or anything like that, too. Do it on your own
(even in JS if you use WebGL). In short: Do the matrix math on the CPU,
use the most optimal vertex submission mechanism supported by the
> That's true but something like 2.0 or 3.2 can most likely nowadays be
> reasonably targeted. If you go 1.2 it should work everywhere.
On phones you can offen use the current version as people upgrade their
phones often. Often more problematic are different driver versions and
their bugs. If you
Thanks Michael,Martin,Reimar and Ondrej. As you said martin it is not
easy to use but give you very good performance.I tested it with
BGRABitmap OpenGL and it can be very good. But it can have many problems
like making text box or memo or whatever. I know there are GUI
components with OpenGL even
> He had used OpenGL to do the GUI for a project (as he had found by
> testing that this was the fastest solution).
Exactly. I dont know why but I am fascinated about fast GUIs. I am not
a professional game developer but for my projects sometimes I need
animations and image processing and Im tired
> Just trying to help...
Thank you very much Michael and I want to know more about this
system.Maybe It not used in this case but be used for my current UI
system or next one.
Regards, Ara
--
http://www.fastmail.com - A fast, anti-spam email service.
--
1 - 100 of 461 matches
Mail list logo