Re: [Lazarus] Search path options for pacages

2015-08-04 Thread Mattias Gaertner
On Tue, 4 Aug 2015 09:44:01 -0500
Larry Dalton  wrote:

> How do I add a search path for packages in linux mint? Buttons are grayed out

You don't need to alter search paths of packages (unless you wrote
the package).

If you get a 'can't find unit' message, the message can be misleading.
Probably the compiler found the unit, but it did not like it.
This can be caused by adding too many search paths, using the wrong
version of a package, left overs from prior installs, compiler bugs,
etc.

Please give more details. What package, error message, system, how did
you install, etc.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] getdevicecaps

2015-08-04 Thread Juha Manninen
On Tue, Aug 4, 2015 at 8:31 PM, Larry Dalton  wrote:
> That has already been converted and the unit compiles and runs on window 7 
> platform, but will not compile on linux

The converter has a checkbox "Cross-platform" which is checked by default.
Why did you uncheck it?
Please try again.

Juha

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Search path options for pacages

2015-08-04 Thread Larry Dalton
Thanks all of you. You helped me figure it out and my packages all work now.

Sent from my iPhone

> On Aug 4, 2015, at 12:27, Péter Gábor  wrote:
> 
> In my previous mail I was assuming that Larry wants to add search path
> (for example: where additional units can be found) for a package in the
> "Package dialog", selecting "Options / Copiler Options / Paths".
> There are buttons to open "Path Editor" and add/edit search paths.
> 
> 2015-08-04 16:44 keltezéssel, Larry Dalton írta:
>> How do I add a search path for packages in linux mint? Buttons are grayed out
> 
> -- 
> Péter Gábor
> p...@freemail.hu
> 
> 
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] getdevicecaps

2015-08-04 Thread Larry Dalton
That has already been converted and the unit compiles and runs on window 7 
platform, but will not compile on linux

Sent from my iPhone

> On Aug 4, 2015, at 12:21, Juha Manninen  wrote:
> 
>> On Tue, Aug 4, 2015 at 8:06 PM, Larry Dalton  wrote:
>> I am converting a program from windows to linux mint. The following unit
>> won't compile under linux because uses the windows unit.
> 
> Do you mean you are converting a program from Delphi?
> FPC / Lazarus is a cross-platform system. A properly made program can
> be compiled for different platforms without changing the code.
> Use the Delphi converter and see what it does for your program.
> 
> Juha
> 
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Search path options for pacages

2015-08-04 Thread Péter Gábor
In my previous mail I was assuming that Larry wants to add search path
(for example: where additional units can be found) for a package in the
"Package dialog", selecting "Options / Copiler Options / Paths".
There are buttons to open "Path Editor" and add/edit search paths.

2015-08-04 16:44 keltezéssel, Larry Dalton írta:
> How do I add a search path for packages in linux mint? Buttons are grayed out

-- 
Péter Gábor
p...@freemail.hu


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Search path options for pacages

2015-08-04 Thread Péter Gábor


2015-08-04 19:09 keltezéssel, Juha Manninen írta:
> On Tue, Aug 4, 2015 at 6:26 PM, Péter Gábor  wrote:
> When you install an IDE package to Lazarus and recompile it, the
> new binary goes to the home directory and startlazarus is clever
> enough to start it from there.
> There were bugs in this process but to my understanding they are fixed.
There was typos in my previous mail, but "In the past I solved this
with..." :)

> If it still does not work then please explain the steps to reproduce.
Now I'm using fixes and trunk only

-- 
Péter Gábor
p...@freemail.hu


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] learning advice for FPC/Lazarus noob

2015-08-04 Thread Gary Randall

On 8/4/2015 12:14 PM, Gour wrote:

Is the magazine mostly about Delphi (my conclusion based on free issue)
or not?


Sincerely,
Gour

Yes, the magazine has more Delphi than Lazarus, but the older issues in 
the bonus have some good Lazarus stuff.  Eventually, I want to convert 
some of my engineering software to smartphones so I enjoy those articles 
too.  And I can use the Delphi stuff.


Gary

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] getdevicecaps

2015-08-04 Thread Juha Manninen
On Tue, Aug 4, 2015 at 8:06 PM, Larry Dalton  wrote:
> I am converting a program from windows to linux mint. The following unit
> won't compile under linux because uses the windows unit.

Do you mean you are converting a program from Delphi?
FPC / Lazarus is a cross-platform system. A properly made program can
be compiled for different platforms without changing the code.
Use the Delphi converter and see what it does for your program.

Juha

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Search path options for pacages

2015-08-04 Thread Juha Manninen
On Tue, Aug 4, 2015 at 6:26 PM, Péter Gábor  wrote:
> In the pas a solved this with changing (recursive) the group id (to
> mine) for the directories belonging to FPC and Lazarus and giving write
> premissions.
> You can add write premissions to "other" but it has security risk.
>
> BUT I recommend to install lazarus into your home directory by building
> it from sources.

There is no need to install into home directory unless you need the
trunk development version.
For your own programs the default Mint package installation should
work. When you install an IDE package to Lazarus and recompile it, the
new binary goes to the home directory and startlazarus is clever
enough to start it from there.
There were bugs in this process but to my understanding they are fixed.
If it still does not work then please explain the steps to reproduce.

Another problem with Mint installation is that they use very old
versions in their repo. You can download the .deb packages provided by
Lazarus project instead, or use the trunk.

Juha

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] getdevicecaps

2015-08-04 Thread Larry Dalton
I am converting a program from windows to linux mint. The following unit
won't compile under linux because uses the windows unit. I have replaced
windows unit with linux unit. Now it can't find GetDeviceCaps. Enclosed is
the following unit. What do I have to rewrite to get it to compile under
linux?

unit baseformRt;

interface
uses
StringRt,sysutils,StdCtrls,graphics,d_print,person_type,laz_procs,AddressUnit;

type


form_adjust_record=record
form_name:string[20];
form_number:integer;
form_vert_adjust:double;
form_horiz_adjust:double;
filled:boolean;
end;{ends form_adjust_record}



baseform_Writer=object
this_adjust:form_adjust_record;
Top_of_bank:Double;
Last_line:double;
right_side:double;
Bank_Font:TFont;
Bank_Canvas:TCanvas;
vert_adjust:double;
horiz_adjust:double;
Bank_x_pixels:integer;
Bank_Y_Pixels:integer;
b_printer:printrec;
last_pay:tdatetime;
form_horiz_adjust:double;
form_vert_adjust:double;
ppix,ppiy:integer;
b_width:double;
{Del_counter:integer;
del_string:string;}
total_down:currency;
warrantyline:string;
scalex,scaley:double;
var today:tdatetime;
constructor init(var BankCanvas:TCanvas);

procedure stringinit(a_line:string;a_vert:double;a_horiz:double);
procedure set_font_size(const dog:double);
procedure set_font_by_length(const dog:double;const hite:double;const
cat:string);

procedure bottomstring_init(a_line:string;a_vert:double;a_horiz:double);
procedure int_init(a_int:integer;a_vert:double;a_horiz:double);
procedure long_init(a_long:longint;a_vert:double;a_horiz:double);
procedure double_init(a_double:double;a_vert:double;a_horiz:double);
procedure perc_init(a_perc:double;a_vert:double;a_horiz:double);
procedure dollar_init(a_dollar:currency;a_vert:double;a_horiz:double);
procedure x_init(a_vert:double;a_horiz:double);
procedure big_x_init(a_vert:double;a_horiz:double);
procedure dot_init(a_vert:double;a_horiz:double);
procedure na_init(a_vert:double;a_horiz:double);
procedure phn_init(a_phone:phone_record;a_vert:double;a_horiz:double);
procedure date_init(a_date:tdatetime;a_vert:double;a_horiz:double);
procedure street_init(a_street:address_record;a_vert:double;a_horiz:double);
procedure city_init(a_city:address_record;a_vert:double;a_horiz:double);
procedure start_line(vert_start:double;horz_start:double);
procedure draw_line(vert_end:double;horz_end:double);
procedure draw_thin_line(vert_end:double;horz_end:double);


end;

implementation
uses printers,numtools,messages,linux,
forms,dialogs,controls,new_dates;

procedure baseform_writer.draw_line(vert_end:double;horz_end:double);
var b_x,b_y:integer;
test_height:double;
test_string:string;
begin
bank_canvas.Pen.Width:=bank_canvas.pen.width*6;
test_string:='My String';
test_height:=inchheight(bank_canvas,ppiy,test_string);
b_x:=round((form_horiz_adjust+horz_end)*ppix);
b_y:=round((test_height+vert_end+form_vert_adjust)*ppiy);
bank_canvas.LineTo(b_x,b_y);
bank_canvas.pen.width:=round(bank_canvas.pen.width/6);
end;{ends baseform_writer.draw_line}

procedure baseform_writer.draw_thin_line(vert_end:double;horz_end:double);
var b_x,b_y:integer;
test_height:double;
test_string:string;
begin
bank_canvas.Pen.Width:=bank_canvas.pen.width*2;
test_string:='My String';
test_height:=inchheight(bank_canvas,ppiy,test_string);
b_x:=round((form_horiz_adjust+horz_end)*ppix);
b_y:=round((test_height+vert_end+form_vert_adjust)*ppiy);
bank_canvas.LineTo(b_x,b_y);
bank_canvas.pen.width:=round(bank_canvas.pen.width/2);
end;

procedure baseform_writer.start_line(vert_start:double;horz_start:double);
var b_x,b_y:integer;
test_line:string;
test_height:double;
begin
test_line:='My String';
test_height:=inchheight(bank_canvas,ppiy,test_line);
b_y:=round((test_height+vert_start+form_vert_adjust)*ppiy);
b_x:=round((form_horiz_adjust+horz_start)*ppix);
bank_canvas.MoveTo(b_x,b_y);
end;{ends start_line}


constructor baseform_writer.init(var BankCanvas:TCanvas);

var right_marg:double;

message_string:string;
dealer_only:boolean;
line:string;
label end_form;
begin

bank_canvas:=bankcanvas;
b_width:=0;
top_of_bank:=0;
Last_line:=0;
right_side:=0;

Bank_Font:=tfont.Create;

bank_font.Size:=10;
bank_font.Style:=[fsbold];
bank_font.Name:='Times New Roman';


ppix:=GetDeviceCaps(Bank_Canvas.Handle,logpixelsX);
ppiy:=GetDeviceCaps(bank_canvas.Handle,logpixelsY);

bank_x_pixels:=GetDeviceCaps(bank_canvas.Handle,LogPixelsX);
Bank_Y_pixels:=GetDeviceCaps(bank_canvas.Handle,LogPixelsY);

line:='This printer';

vert_adjust:=inchHeight(Bank_Canvas,Bank_Y_Pixels,line);
horiz_adjust:=inchWidth(bank_canvas,bank_x_pixels,line);

Bank_Font.Style:=bank_font.Style-[fsUnderline];


form_horiz_adjust:=0;
form_VERT_ADJUST:=0;



end_form:
end;{ends baseform_writer.init}



procedure
baseform_writer.stringinit(a_line:string;a_vert:double;a_horiz:double);

const this_checker=false;
begin
today:=now;
if this_checker then if messagedlg('now testing
stringinit',mtconfirmation,[mbok,mbabort],0)=mrabort then halt;
IF A_LINE<>'' THEN
b_printer.init('S',today,0,a_line,a_vert,
a_horiz,bank_fon

Re: [Lazarus] Search path options for pacages

2015-08-04 Thread Juha Manninen
On Tue, Aug 4, 2015 at 5:44 PM, Larry Dalton  wrote:
> How do I add a search path for packages in linux mint?

Don't use project search path for a package's code. You must create a
dependency for it instead.
This is a common error made by Delphi developers. In Delphi you must
use either the project search path or the global search path for
library code.

> Buttons are grayed out

What buttons?

Juha

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] learning advice for FPC/Lazarus noob

2015-08-04 Thread Gour
Gary Randall  writes:

Hello Gary,

> I've been programming for 53 years, learning everything from machine
> and assembler languages to various OOPs.

Congatulations!

> Like any language
> where you can get to the guts of things, the learning curve can be
> long, maybe even continuous.  The forum is also an excellent resource
> when you need a question answered.

Thank you.

> I got "The Blaise Pascal Magazine" going back a bunch of issues as a
> bonus when I ordered the package and found many excellent articles in
> them.

Is the magazine mostly about Delphi (my conclusion based on free issue)
or not?


Sincerely,
Gour

-- 
As a blazing fire turns firewood to ashes, O Arjuna, so does the 
fire of knowledge burn to ashes all reactions to material activities.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Search path options for pacages

2015-08-04 Thread Péter Gábor
On my LinuxMint I have Lazarus installed (built from source) in my home
folder and I can add search paths to any of the packages regardless the
origin of the package (came with Lazarus or created/added by myself).

I think that you installed FPC and Lazarus via the package manager of
your system. In this case the directory of Lazarus binaries, libraries
and sources are not writeable for you (including the package
configurations).

In the pas a solved this with changing (recursive) the group id (to
mine) for the directories belonging to FPC and Lazarus and giving write
premissions.
You can add write premissions to "other" but it has security risk.

BUT I recommend to install lazarus into your home directory by building
it from sources.


2015-08-04 16:44 keltezéssel, Larry Dalton írta:
> How do I add a search path for packages in linux mint? Buttons are grayed out

-- 
Péter Gábor
p...@freemail.hu


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Search path options for pacages

2015-08-04 Thread Larry Dalton
How do I add a search path for packages in linux mint? Buttons are grayed out

Sent from my iPhone

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Editor toolbar changes ?

2015-08-04 Thread Juha Manninen
On Tue, Aug 4, 2015 at 3:24 PM, Graeme Geldenhuys
 wrote:
> If the combobox could be added again, I too would be very grateful. I
> mostly used the default button behaviour (jump to implementation -
> without having to open the combobox), but on occasion I used the other
> options too.

Ok, the button's default behavior needs some extra logic and maybe a
flag in TIDEMenuCommand.

> Adding 5 buttons with no captions are too much, and finding
> them on occasion in the Search sub-menu wastes too much time.

Yes, the dropdown thing is needed.
The changes so far have been part of bigger improvements in the IDE,
made by at least 4 people (including myself).
A public API for IDE Coolbar and Editor Toolbar must be added, too.

Juha

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Converting from windows to linux mont

2015-08-04 Thread Larry Dalton
I am trying to convert one of my programs from windows to mint. When I try to 
compile one of my package, I get the following error: cannot find unit insrate 
used by numtools. Check search path of package larrypackage32. Try a clean 
rebuild. When I try to do that, I get several "deletr failed" error codes.

Sent from my iPhone
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Editor toolbar changes ?

2015-08-04 Thread Michael Van Canneyt



On Tue, 4 Aug 2015, Juha Manninen wrote:


On Tue, Aug 4, 2015 at 2:50 PM, Michael Van Canneyt
 wrote:

Double-click 'jump to' under 'Code explorer' ?
Maybe this is another "jump to" ?


Right, yes. That one is quite useless in a toolbar. I don't know how
to filter out the useless commands.
Another related issue are the IDE commands without a  menu entry. You
can configure key combinations for them but you cannot add them to a
toolbar. The Lazarus command system is a little messy.



It's in fact almost the only button I care about, because I use it most of
all, besides the backward/forward in history.


Personal preferences differ. I did not realize it was so crucial for somebody.


Well, that's why we have a mailing list :-)


I thought only Graeme uses it. :)


Clearly not, obviously he was right about the importance of this button to 
treat it specially ;)

(BTW: It's one of the first buttons of "GExperts" which I add to the toolbar in Delphi... 
Just to give you an idea...)



However it may be easier to fix than I first though. The Search menu
already has a menu section for the Jump ... commands. The
configuration window can be made to accept a menu section, too. Then
the sub-items would show in a dropdown list.


That seems like the most easy approach, yes.


Now I have summer activities but I will look at this a little later.
Patches are welcome, too.


Take your time, I am glad you see a solution and are willing to work on it.

Please don't forget to notify when you implement it :)

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Editor toolbar changes ?

2015-08-04 Thread Graeme Geldenhuys
On 2015-08-04 13:11, Juha Manninen wrote:
> Personal preferences differ. I did not realize it was so crucial for somebody.
> I thought only Graeme uses it. :)

So I don't count. :)


> However it may be easier to fix than I first though. The Search menu
> already has a menu section for the Jump ... commands.

If the combobox could be added again, I too would be very grateful. I
mostly used the default button behaviour (jump to implementation -
without having to open the combobox), but on occasion I used the other
options too. Adding 5 buttons with no captions are too much, and finding
them on occasion in the Search sub-menu wastes too much time.

I hard-coded that "Jump To" combobox for a reason. ;-)


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Editor toolbar changes ?

2015-08-04 Thread Juha Manninen
On Tue, Aug 4, 2015 at 2:50 PM, Michael Van Canneyt
 wrote:
> Double-click 'jump to' under 'Code explorer' ?
> Maybe this is another "jump to" ?

Right, yes. That one is quite useless in a toolbar. I don't know how
to filter out the useless commands.
Another related issue are the IDE commands without a  menu entry. You
can configure key combinations for them but you cannot add them to a
toolbar. The Lazarus command system is a little messy.


> It's in fact almost the only button I care about, because I use it most of
> all, besides the backward/forward in history.

Personal preferences differ. I did not realize it was so crucial for somebody.
I thought only Graeme uses it. :)
However it may be easier to fix than I first though. The Search menu
already has a menu section for the Jump ... commands. The
configuration window can be made to accept a menu section, too. Then
the sub-items would show in a dropdown list.
Now I have summer activities but I will look at this a little later.
Patches are welcome, too.

Juha

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Editor toolbar changes ?

2015-08-04 Thread Michael Van Canneyt



On Tue, 4 Aug 2015, Juha Manninen wrote:


On Tue, Aug 4, 2015 at 12:26 PM, Michael Van Canneyt
 wrote:

But:
If I click the 'configure' button, the 'jump to' is not displayed in the
list of enabled buttons.


Earlier it was hard-coded and not configurable. IMO it did not deserve
any special treatment, it should one configurable command amoung other
commands ... and now it is.


I appreciate the API is now probably better. But the GUI is now worse.


In the newer installation, when I add the 'Jump to' button, a button is
added to the editor toolbar,
but it is not functional: the dropdown menu is not shown, and clicking it
does not do anything (not surprising).


How did you do that?


Double-click 'jump to' under 'Code explorer' ?
Maybe this is another "jump to" ?


You cannot add a 'Jump to' button. You can add 'Jump to Interface' and
'Jump to Implementation' buttons and they work perfectly well. These
commands were added to Search menu precisely for this purpose.


I imagined this, and I tried this, but then I need 5 buttons, which 
have not very clear and distinguishable icons and take a lot of place.


1 button with a clear dropdown takes less place and is very understandable 
because the caption is very clear.





What does this mean ? Did anything change in the toolbar editor ?


Yes, it was changed a lot. The code was moved from the package to IDE's code.
The configuration dialog and related code is shared with the IDE
Coolbar configuration.
The configuration data is stored in environment options instead of a
separate config file.
The new desktops feature now includes Editor Toolbar, too.
Earlier the Editor Toolbar had a profile feature for the same purpose
but new desktops affect the whole IDE.


Should I be afraid to update my SVN in the older installation ?


No, the old settings are copied and preserved, except for the
hard-coded (hackinsh) 'Jump to' button.


It's in fact almost the only button I care about, because I use it most of all, 
besides the backward/forward in history.



More improvements are needed but they must be done in a consistent way
for the whole IDE.
As you noticed you cannot configure a dropdown button with a menu. The
IDE Coolbar has some hard-coded dropdown buttons even though it is
otherwise configurable. No good. There should be a clean API for
commands with dropdown menus. Then both the IDE Coolbar and Editor
Toolbar could use it.
If somebody wants to work on such a feature, I would be happy to help
and finally commit it.



[...]
Seems to be a confirmed bug then :)


No. It is a feature, not a bug.


That depends on your point of view, of course.
As a user of the IDE I don't care so much about the API, it's invisible.
The fact that my much-used button is gone, is very visible.

As a programmer, I of course completely understand you want a clean and 
clear programming interface. No argument there.


But then please make it possible - from the start - to create a dropdown button 
and add commands to that (as you suggest), so users can at least recreate the old 
situation from day 1.


well, it means I must wait with upgrading the other machine till the job is 
properly finished :(

Thanks for the explanation and please notify on the list when someone has 
completed the work.

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Editor toolbar changes ?

2015-08-04 Thread Juha Manninen
On Tue, Aug 4, 2015 at 12:26 PM, Michael Van Canneyt
 wrote:
> But:
> If I click the 'configure' button, the 'jump to' is not displayed in the
> list of enabled buttons.

Earlier it was hard-coded and not configurable. IMO it did not deserve
any special treatment, it should one configurable command amoung other
commands ... and now it is.


> In the newer installation, when I add the 'Jump to' button, a button is
> added to the editor toolbar,
> but it is not functional: the dropdown menu is not shown, and clicking it
> does not do anything (not surprising).

How did you do that?
You cannot add a 'Jump to' button. You can add 'Jump to Interface' and
'Jump to Implementation' buttons and they work perfectly well. These
commands were added to Search menu precisely for this purpose.

> What does this mean ? Did anything change in the toolbar editor ?

Yes, it was changed a lot. The code was moved from the package to IDE's code.
The configuration dialog and related code is shared with the IDE
Coolbar configuration.
The configuration data is stored in environment options instead of a
separate config file.
The new desktops feature now includes Editor Toolbar, too.
Earlier the Editor Toolbar had a profile feature for the same purpose
but new desktops affect the whole IDE.

> Should I be afraid to update my SVN in the older installation ?

No, the old settings are copied and preserved, except for the
hard-coded (hackinsh) 'Jump to' button.

More improvements are needed but they must be done in a consistent way
for the whole IDE.
As you noticed you cannot configure a dropdown button with a menu. The
IDE Coolbar has some hard-coded dropdown buttons even though it is
otherwise configurable. No good. There should be a clean API for
commands with dropdown menus. Then both the IDE Coolbar and Editor
Toolbar could use it.
If somebody wants to work on such a feature, I would be happy to help
and finally commit it.


> [...]
> Seems to be a confirmed bug then :)

No. It is a feature, not a bug.


Regards,
Juha

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Editor toolbar changes ?

2015-08-04 Thread Michael Van Canneyt



On Tue, 4 Aug 2015, Graeme Geldenhuys wrote:


On 2015-08-04 10:26, Michael Van Canneyt wrote:

In the newer installation, when I add the 'Jump to' button, a button is added 
to the editor toolbar,
but it is not functional: the dropdown menu is not shown, and clicking it does 
not do anything
(not surprising).


This drove me insane too. Recently somebody changed the editor toolbar.
There is no more "Jump To" dropdown. You now have to add individual
buttons that jump to specific locations. So I had to add the "Jump to
Implementation Section" (my most used option) onto my toolbar after the
combobox disappeared after a Lazarus upgrade.

You can find the options under:
 IDE Main Menu -> Search -> Jump To ->  ...


Seems to be a confirmed bug then :)

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Editor toolbar changes ?

2015-08-04 Thread Graeme Geldenhuys
On 2015-08-04 10:26, Michael Van Canneyt wrote:
> In the newer installation, when I add the 'Jump to' button, a button is added 
> to the editor toolbar,
> but it is not functional: the dropdown menu is not shown, and clicking it 
> does not do anything
> (not surprising).

This drove me insane too. Recently somebody changed the editor toolbar.
There is no more "Jump To" dropdown. You now have to add individual
buttons that jump to specific locations. So I had to add the "Jump to
Implementation Section" (my most used option) onto my toolbar after the
combobox disappeared after a Lazarus upgrade.

You can find the options under:
  IDE Main Menu -> Search -> Jump To ->  ...


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] authoring user manuals

2015-08-04 Thread Michael Schnell

On 08/03/2015 04:08 PM, Gour wrote:

Hello,

by looking at
http://wiki.lazarus.freepascal.org/Add_Help_to_Your_Application page it
seems there are several options to provide help (aka user manual) for
one’s app - CHM, HTML & INF.


As there is a wiki containing many pages that are interesting for users 
you might add "wiki format" here.


Most of the source of  the "F1-help" is done using a propriety "FP" help 
file format and Editor, but AFAIK you can use other file formats as 
well. For "F1-help" (not aka user manual) AFAIK, there is no way to do 
that using Wiki format.


 
-Michael



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] No memory left

2015-08-04 Thread Aradeonas
Hi,

Today I update Lazarus and FPC to last Trunk version and when I want to
install a package and recompile IDE it gave me "No memory left". As
hint said I should use -ch param and beside that I dont know how to
that and what value I should gave it (because I don't know what is the
default value) also I dont know why this happen?My PC didnt changed and
its weird.

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


[Lazarus] Editor toolbar changes ?

2015-08-04 Thread Michael Van Canneyt


Hi,

I have 2 lazarus installations:
A new one (one that was compiler more recently: today). 
Another one is a little older (rev 49180).
I have in the older installation in the editor toolbar a dropdown button with the items 'Jump to' menu. 
It works as expected.


But:
If I click the 'configure' button, the 'jump to' is not displayed in the list 
of enabled buttons.

In the newer installation, when I add the 'Jump to' button, a button is added 
to the editor toolbar,
but it is not functional: the dropdown menu is not shown, and clicking it does 
not do anything
(not surprising).

What does this mean ? Did anything change in the toolbar editor ?
Should I be afraid to update my SVN in the older installation ?

Michael.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus