Re: [Lazarus] Can't compile WinCE app

2011-06-22 Thread Tommi Prami



So I did not use Snapshot compiler, but official and stabile versions. Maybe
this is Lazarus problem somehow?

Maybe, but the fact that there are snapshots built with fpc 2.4.4
suggests, that it may be some configuration problem.


Yes,

This could be something like that. Any ideas how to make this work. What 
settings to Check.


-TP-

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


Re: [Lazarus] Can't compile WinCE app

2011-06-22 Thread Felipe Monteiro de Carvalho
On Wed, Jun 22, 2011 at 9:51 AM, Tommi Prami groups.tpr...@gmail.com wrote:
 This could be something like that. Any ideas how to make this work. What
 settings to Check.

In Lazarus go to the menu Tools-Options-Paths and check the path to
the compiler

-- 
Felipe Monteiro de Carvalho

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


Re: [Lazarus] Can't compile WinCE app

2011-06-22 Thread Tommi Prami

On 22.6.2011 11:46, Felipe Monteiro de Carvalho wrote:

On Wed, Jun 22, 2011 at 9:51 AM, Tommi Pramigroups.tpr...@gmail.com  wrote:

This could be something like that. Any ideas how to make this work. What
settings to Check.

In Lazarus go to the menu Tools-Options-Paths and check the path to
the compiler


It is there...

C:\fpc\2.4.4\bin\i386-win32\fpc.exe

.Tee.



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


Re: [Lazarus] Can't compile WinCE app

2011-06-22 Thread Felipe Monteiro de Carvalho
Can you send a zip file with the project? (not 7z and also not rar)

-- 
Felipe Monteiro de Carvalho

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


Re: [Lazarus] Can't compile WinCE app

2011-06-22 Thread Felipe Monteiro de Carvalho
If you do it like this:

1 Remove any installed snapshots
2 Install Lazarus 0.9.30 + addon for wince
3 Rebuild your lazarus svn against the fpc 2.4.2 shipped with 0.9.30

does it work?

-- 
Felipe Monteiro de Carvalho

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


Re: [Lazarus] Compile and Build menu entries, Run- or Project-menu?

2011-06-22 Thread zeljko
On Tuesday 21 of June 2011 16:57:44 Bart wrote:
 Please leave Compile as the first entry in the Run menu.
 I use it far more often than Run and I'm used ti it's location.
 
 (Ctrl-F9 is reserved by my windowmanager (?) in Linux, so I can't use
 it instead).

That change makes me crazy (Run as first entry) #!#!###%#$# ;)

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


Re: [Lazarus] Can't compile WinCE app

2011-06-22 Thread Tommi Prami

On 22.6.2011 14:13, Felipe Monteiro de Carvalho wrote:

If you do it like this:

1  Remove any installed snapshots


did before

2  Install Lazarus 0.9.30 + addon for wince


This because the settings?


3  Rebuild your lazarus svn against the fpc 2.4.2 shipped with 0.9.30




Why 2.4.2 fpc? O mainly why would the 2.4.4 not work (Thwere are SQLite 
fixes etc I am interested in)


-TP-




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


Re: [Lazarus] Can't compile WinCE app

2011-06-22 Thread Felipe Monteiro de Carvalho
On Wed, Jun 22, 2011 at 2:42 PM, Tommi Prami groups.tpr...@gmail.com wrote:
 Why 2.4.2 fpc?

To reduce the difference between your setup and mine, to try to find
out what is the difference that makes it not work for you

-- 
Felipe Monteiro de Carvalho

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


Re: [Lazarus] Compile and Build menu entries, Run- or Project-menu?

2011-06-22 Thread Graeme Geldenhuys
On 06/21/2011 10:16 PM, David Copeland wrote:
 
 Would you happen to know how in KDE4 (suse 11.4) one would do this? I
 can't find it to save my life g.


I don't really use KDE, but I had OpenSUSE 11.3 setup inside a vm
session, so I took a quick look.

Follow these steps:
 1. Click Start button (Chameleon button)
 2. Select Personal Settings, or search for settings in kicker, and
then select Personal Settings from the search results.
 3. Now you should have a control panel like window open.
Select Keyboard  Mouse under the Computer Administration section.
 4. Now there are two sections which contain keyboard shortcuts, look
in both:  Standard Keyboard Shortcuts  Global Keyboard
Shortcuts.


Hope that helps.


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


[Lazarus] TDBGrid vertical scrolling for sequenced datasets

2011-06-22 Thread Max Vlasov
Hi,

I don't know what parts of TDBGrid are still in progress, so I'm not sure
whether I should fill a report

I have a TDataSet descendant that IsSequenced = true, so the scrolling
should obey the position inside the dataset. But there are moments when
scrolling jumps to the zero position although should stay at some current,
non-zero (checked both windows and linux). In my case it shows when I
release the scroller at some new pos (and Resync is called for some reason),
but I also could reproduce this for \examples\address_book\addrbook.lpi
project.

For addrbook.lpi
- run the program
- decrease the width of the program so the horizontal scrolling in the upper
grid appears
- scroll down to some place when the vertical scroller is in the middle of
the scroll area (for example when MTH_NAME=January)
- click anything in the horizontal scrolling (button or area)
Now the vertical one jumps to the top (=0). To force it jump back click at
some nearby line (but not the same)

As I suppose looking at the sources, this is because TDBGrid does many
things itself and don't want some of TCustomGrid functionality working.
Neverthelesss sometimes TCustomGrid.UpdateScrollbarPos is called where
ScrollBarPosition uses calculated zero position regardless of the TDBGrid
own state.

Should I feel a report?

Thanks

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


Re: [Lazarus] Compile and Build menu entries, Run- or Project-menu?

2011-06-22 Thread Bart
On 6/21/11, Sven Barth pascaldra...@googlemail.com wrote:
 On 21.06.2011 20:26, Graeme Geldenhuys wrote:
[about changing keybindings for my WM]
 And if that doesn't help you can change the bindings for Compile in
 Lazarus as well.

Oh, please no!

It took me  1 year to adjust to the changes from TP 6 - Delphi 1

(in TP Compile used to be Alt-F9, Run was Ctrl-F9)

Bart

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


[Lazarus] TDBNavigator glyphs

2011-06-22 Thread Bart
Sorry if this is the wrong mailing list.

I find the button images of TDBNavigator rather confusing, especially
the one for delete (the minus sign) and undo (the cross). The latter I
keep associating with delete.

I would like to have less ambiguous glyphs on them, like a trashcan
for delete, and a commonly used glyph for undo (see attached image).

(Yes, I know how to change them for myself only)

Your opinions?

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


Re: [Lazarus] thread safe

2011-06-22 Thread Hans-Peter Diettrich

Malcom Haak schrieb:
Correct me if I'm wrong, But can't you technically make any code 
'thread-safe'  by using Critical Sections before doing work. 
In some code I have seen before a critical section was entered before 
calling TList.Add


IMO this won't help, because any other thread that does *not* use the 
critical section still can trash the list.


It might help when TList.Add would use a critical section internally, 
but then *all* lists are blocked at once, unless a critical section is 
connected to *every* single TList instance - what may run into 
out-of-resources. Otherwise a global TList.Add lock may lock up an 
entire application, when an OnAdd handler tries to use another 
(temporary...) TList.


IMO. I may be wrong here, because I used threads only on realtime 
systems, never in Delphi or Lazarus...



BTW, I just got my copy of RAD Studio XE, where e.g. thread.suspend is 
deprecated, and other means for thread synchronization are added. But 
these have to be implemented in FPC first, before SpinLock or other 
procedures or methods can be used.


DoDi


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