Re: [lazarus] Default value for Always build (even if nothing has changed)

2006-01-04 Thread Mattias Gaertner
On Mon, 02 Jan 2006 11:32:25 +0100
darekM [EMAIL PROTECTED] wrote:

 Jesus Reyes napisa?(a):
 
 - Original Message - 
 From: Vincent Snijders [EMAIL PROTECTED]
 To: lazarus@miraclec.com
 Sent: Sunday, January 01, 2006 2:09 PM
 Subject: [lazarus] Default value for Always build (even if nothing has
 changed)
 
 
   
 
 Hi,
 
 In Project - Project Options - Miscellaneous you can find the Always 
 build (even if nothing has changed). If set to false, lazarus will try 
 to determine, if a recompilation is needed (i.e. if some sources have 
 changed), if the users says run or compiler.
 
 ATM the default is false. IMHO, this should be true, the user can enable
 
 the check, if he wishes. But there are still changes possible in source,
 
 that lazarus cannot detect, for example because not all units were added
 
 to the project.
 
 I propose to change the default for new projects to true. What do you
 think? 
 Vincent
 
 
 
 
 I would vote: true and if it is possible to be a global check instead of
 per project, better.
 
   
 
 In case FALSE Lazarus should check if any of open file in editor were 
 changed. (I don't add files to project)

I implemented the check for open editor files and changed the default for
always build to true.

Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Look and feel of Lazarus

2006-01-04 Thread Mattias Gaertner
On Fri, 30 Dec 2005 14:12:35 +0100 (CET)
[EMAIL PROTECTED] (Marco van de Voort) wrote:

  I have prepared some screenshots of a concept look and feel for Lazarus.
  Please check it out at:
  
  http://wiki.lazarus.freepascal.org/index.php/GUI_design#Look_and_Feel
  
  Feel free to comment, but please accept that this is just a concept. So
  It has no use to discuss the details of the displayd forms themselves
  unless it would impact the general look and feel. Ultimately each form
  in itself will be subject to discussion to fit the purpose.
 
 The guidelines are ok I think, but
 
 Help should be optional tho. Lots of grayed out boxes everywhere are IMHO
 evil. Disable them. 
 
 I don't like several aspects of the screenshots
 - First, the positive button should always be right, IOW cancel should
 be
 left from the positive one. Note that there is inconsistency in
 the
   screenshots. The todolist info screen is ok in this respect,
   the lower ones not.


 - I don't like the way multiple functionality is listed into one and 
   the same dialogue. It looks baroque. Most notably:
   - The nested clear buttons in some of them. What is this anyway,
  an edit or display-only form?

There is only one place in the IDE, where you can see the include file. So,
where else should the clear button be placed?


   - I don't like buttons like Show CodeTools Values . The whole idea
   of fixed
  buttons in std dialect is safer and automatic use. All kinds of
  non std buttons there that are not related to basic choices are
  IMHO not ok.

Where should it be placed?



 - Of course the botton button placement (alignment) in the two
 information
about dialogues is bad. It seems that a random height of
   the buttonrow and random distances from the borders of the window
   are chosen. It looks messy, specially if you see such dialogues at
   once or quickly after eachother.

 - Editable path lists (information about unitinitdialog) should always use
   the fancy directory picker.

The paths in the unitinfo dialog are readonly. Why use a picker?


 - In the same dialog, the room before the edit boxes is too small. Keep
   internationalization in mind! Nearly all language are longer than
   english.

We need some autosizing for label/control sets.


 - Only the XP look buttons (help and ok in the info about todo
 dialogue)
   show button keybindings.


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TSynUniSyn

2006-01-04 Thread Mattias Gaertner
On Tue, 27 Dec 2005 14:26:30 -0700
L505 [EMAIL PROTECTED] wrote:

 Does TSynUniSyn work correctly with case insensitive languages, like the
 Pascal highlighter?

My guess: no
See synunihighlighter.pas  TSymbolList.FindSymbol

 
 It seems to make the Synedit text all CAPS LOCK when I try it
 
 On case sensitive languages such as Turbo C++ it appears to work.


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] newprojectdlg

2006-01-04 Thread Mattias Gaertner
On Mon, 26 Dec 2005 23:59:00 +0100
Darius Blaszijk [EMAIL PROTECTED] wrote:

 I've got again a question on ''new project' and new project from file,
 boh located under the project menu. As to the first, I believe it is a
 copy of  the new menu entry located under the file menu. 

Historically it's the other way round.
And it's not the same code.


 So IMHO this
 could be deleted from the project menu, anybody object? The next menu
 entry, I believe should also be moved to newdialog. So in effect delete
 both from the project menu.

Does it hurt there? I would miss it.


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Speedbutton glyph loading crashes Lazarus

2006-01-04 Thread Mattias Gaertner
On Fri, 23 Dec 2005 13:48:11 +0100
barko [EMAIL PROTECTED] wrote:

 Dne Friday of December 23 2005 13:30 je Markku Niskanen napisal(a):
  System:
  ===
  Windows XP, latest CVS
 
  Symptom:
  ===
  When placing a speebutton onto a form and loading a glyph
  (bmp,xpm tested) using Glyph-[...] -Load picture - (choose
  bitmap)-return -- OK
 
  An access violation occurs, crashing Lazarus every time.
 
  Ist it just my system or is anybody else suffering from the
  same behaviour?
 
  Markku
 
 Same thing on linux (latest lazarus from svn, fpc 2.0.1), here is output
 from  console:

Has this issue been fixed, or is it still there?

Mattias



 
 TApplication.IconChanged - TODO: convert this message...no implementation
 in  gtk
  or win32
 NOTE: codetools config file not found - using defaults
 NOTE: help options config file not found - using defaults
 TPkgManager.LoadInstalledPackage PackageName=cdsparserlaz
 TPkgManager.LoadInstalledPackage PackageName=fiblaz
 TPkgManager.LoadInstalledPackage PackageName=Printer4Lazarus
 TPkgManager.LoadInstalledPackage PackageName=DBFLaz
 TPkgManager.LoadInstalledPackage PackageName=chmpkg
 TPkgManager.LoadInstalledPackage PackageName=UIBLaz
 TPkgManager.LoadInstalledPackage PackageName=lazreport
 TPkgManager.LoadInstalledPackage PackageName=ChmHelpPkg
 TPkgManager.LoadInstalledPackage PackageName=zcomponent
 TMainIDE.DoNewProject A
 TMainIDE.DoNewEditorFile A NewFilename=
 TPascalParserTool.BuildTree B OnlyIntf=False  project1.lpr
 [TCustomFormEditor.CreateComponent] Class='TForm'
 TPascalParserTool.BuildTree B OnlyIntf=False  project1.lpr
 TMainIDE.DoNewEditorFile end unit1.pas
 [TCustomFormEditor.CreateComponent] Class='TSpeedButton'
 Parent is 'Form1:TForm1'
 TMainIDE.OnPropHookPersistentAdded A SpeedButton1:TSpeedButton
 TPascalParserTool.BuildTree B OnlyIntf=True  unit1.pas
 TPascalParserTool.BuildTree B OnlyIntf=False  unit1.pas
 [TEventsCodeTool.CompleteComponent] A Component=Form1:TForm1
 [TEventsCodeTool.CompleteComponent] 
 CurComponent=SpeedButton1:TSpeedButton [TEventsCodeTool.CompleteComponent]
 ADDING variable SpeedButton1:TSpeedButton
 [TEventsCodeTool.CompleteComponent] invoke class completion
 [TEventsCodeTool.CompleteComponent] END 
 TOICustomPropertyGrid.DoCallEdit for  TButtonGlyphPropEditor
 TApplication.HandleException Access violation
   Stack trace:
   $
   $08160082  TBITMAPCANVAS__CREATEHANDLE,  line 49 
 of ./include/bitmapcanvas.inc
   $08166984  TCANVAS__REQUIREDSTATE,  line 1403 of ./include/canvas.inc
   $0816680A  TCANVAS__GETHANDLE,  line 1315 of ./include/canvas.inc
   $0818C6CC  TBUTTONGLYPH__DRAW,  line 127 of ./include/buttonglyph.inc
   $0818D6B3  TCUSTOMSPEEDBUTTON__PAINT,  line 496 of
   ./include/speedbutton.inc $0813C04E  TGRAPHICCONTROL__WMPAINT,  line 64 
 of ./include/graphiccontrol.inc
   $0805E237
   $082943C6  TDESIGNER__PAINTCONTROL,  line 1028 
 of /home/barko/freepascal/lazar   
 
 us/designer/designer.pp
   $08295EF2  TDESIGNER__ISDESIGNMSG,  line 1796 
 of /home/barko/freepascal/lazaru  
  
 s/designer/designer.pp
   $08137029  TCONTROL__WNDPROC,  line 1445 of ./include/control.inc
   $08136204  TCONTROL__PERFORM,  line 1006 of ./include/control.inc
   $0812E084  TWINCONTROL__PAINTCONTROLS,  line 2679 
 of ./include/wincontrol.inc
   $0812DE53  TWINCONTROL__PAINTHANDLER,  line 2618 of
   ./include/wincontrol.inc $08130F1B  TWINCONTROL__WMPAINT,  line 4317 of
   ./include/wincontrol.inc $0806DB8E  TSCROLLINGWINCONTROL__WMPAINT,  line
   55 
 of ./include/scrollingwinco   
 
 ntrol.inc
   $0806F613  TCUSTOMFORM__WMPAINT,  line 515 of ./include/customform.inc
 TApplication.HandleException: there was another exception during showing
 the  fir  
  
 st exception
 Note: GetTextBuf is overridden for: __P__)ä^__öU__ô__PU
 TApplication.HandleException: there was another exception during showing
 the  fir  
  
 st exception
 lazarus.pp - unhandled exception
 [FORMS.PP] ExceptionOccurred
 [FORMS.PP] ExceptionOccurred
 
 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Speedbutton glyph loading crashes Lazarus

2006-01-04 Thread Micha Nelissen

Mattias Gaertner wrote:

Symptom:
===
When placing a speebutton onto a form and loading a glyph
(bmp,xpm tested) using Glyph-[...] -Load picture - (choose
bitmap)-return -- OK


Has this issue been fixed, or is it still there?


Yes I think it's the same issue as email on 31-12 19:15, and it was 
fixed by me around then.


Micha

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Speedbutton glyph loading crashes Lazarus

2006-01-04 Thread Markku Niskanen
On Wed, 4 Jan 2006 12:06:54 +0100, Mattias Gaertner
[EMAIL PROTECTED] wrote:
Has this issue been fixed, or is it still there?

Works just fine right now.


-- 
[EMAIL PROTECTED]

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Speedbutton glyph loading crashes Lazarus

2006-01-04 Thread barko
In linux is fixed (tested today rev. 8431).

 Has this issue been fixed, or is it still there?

 Mattias

-- 
bye,
-=[...s]-[it happens...]=-

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] unitinfodlg

2006-01-04 Thread Mattias Gaertner
On Tue, 27 Dec 2005 21:56:18 +0100
Darius Blaszijk [EMAIL PROTECTED] wrote:

 I have prepared a patch for unitinfodlg that follows the directions given
 by the HIG document. Please check it out and comment on it. There are some
 more minor adjustments to be made (like the resizing that does not seem to
 work, is it a bug? it shure seems to be), please resize the dialog first
 manually.

I removed the warning and the 'Resize' method.
Where is the bug?

Mattias



 
 Darius Blaszijk
 
 - Original Message - 
 From: Darius Blaszijk [EMAIL PROTECTED]
 To: lazarus@miraclec.com
 Sent: Tuesday, December 27, 2005 1:23 PM
 Subject: Re: [lazarus] unitinfodlg
 
 
   IMO a listview is more for dynamic content. This dialog aways shows
   the same info. To make it more uniform, I think the labels including
   pathlabels can be in one line, the displayed values can be the same as
   the path lines as readonly text (with a btnface background, so you
   don't have to tell it is readonly) also in one line.
  I think you're right, listview is not appropriate. But instead of
 converting
  all to label / edit combinations like you propose, I found yesterday a
  document called HIG (http://developer.gnome.org/projects/gup/hig/) and
  actually found a good description of such a window (attached a sample).
  Would it be an idea to follow this document (where it makes sense
 ofcourse)
  for future design of the GUI? In that case we have a uniform and
  thorough description on GUI layout. Much better than my feeble attempts
  on the CCR.
 
  Darius
 
  - Original Message - 
  From: Marc Weustink [EMAIL PROTECTED]
  To: lazarus@miraclec.com
  Sent: Tuesday, December 27, 2005 10:50 AM
  Subject: Re: [lazarus] unitinfodlg
 
 
   Darius Blaszijk wrote:
Got a remark on the layout of unitinfodlg. I'm converting it to LFM,
 and
while I was creating all the labels located at the top I thought of
instead using a listview.  I think it will show more tidy. What is
the general opinion on this?
  
   IMO a listview is more for dynamic content. This dialog aways shows
   the same info. To make it more uniform, I think the labels including
   pathlabels can be in one line, the displayed values can be the same as
   the path lines as readonly text (with a btnface background, so you
   don't have to tell it is readonly) also in one line.
  
   Marc
  
   _
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives
 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] two small patch

2006-01-04 Thread Mattias Gaertner
On Wed, 21 Dec 2005 17:00:52 +0100
darekm [EMAIL PROTECTED] wrote:

 Hi
  in first patch :  InvalidatePreferredSize is invoked two times (second 
 in sethandle) in destroyWND

Applied. Thanks.

 
 second: This is not needed to initialize FIcon in tForm,

I just tested: without it, there are no icons anymore. Not applied.



Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Licence of components/gtk/gtkglarea/nvgl.pp?

2006-01-04 Thread Mattias Gaertner
On Thu, 3 Jun 2004 11:49:53 +0200
Marc Weustink [EMAIL PROTECTED] wrote:

 From: Pierre Gillmann [mailto:[EMAIL PROTECTED]
 Sent: woensdag 2 juni 2004 14:42
 
 Hi,
 
 I took a look on the licences but I do not found the COPYING file for
 nvgl.pp. Could anyone send it to me? It is DFSG free? As I see, it
 depends on the non-free NVIDIA Driver, so that can cause that lazarus is
 contrib and not main.
 
 It is a gtk example component, showing the direct use of the gtk
 interface.
 However since it is not a part of lazarus itself, it will be moved to
 lazarus-ccr

I removed the gtk specific package 'gtkopengl' from the lazarus svn.
There is a new package components/opengl/lazopenglcontext.lpk that will
support all lazarus platforms.


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] ListView bug

2006-01-04 Thread Luis R. Hilario B.
Hello,

if TListView.Items.Delete(Last.Selected.Index) then Lazarus crash;

Only GTK.

TApplication.HandleException List index (7) out of bounds
  Stack trace:
  $080BA63E
TApplication.HandleException Access violation
  Stack trace:
  $081CA9EF  TLISTITEM__SETSTATE,  line 524 of ./include/listitem.inc
  $081CC4D2  TCUSTOMLISTVIEW__DOSELECTITEM,  line 225 of
./include/customlistview.inc
  $081CC200  TCUSTOMLISTVIEW__CNNOTIFY,  line 148 of
./include/customlistview.inc
  $0805D14B
  $08135602  TCONTROL__WNDPROC,  line 1520 of ./include/control.inc
  $0812CFAD  TWINCONTROL__WNDPROC,  line 3046 of ./include/wincontrol.inc
  $081493F9  DELIVERMESSAGE,  line 3447 of gtkproc.inc
  $081E2646  GTKWSCUSTOMLISTVIEW_SELECTROW,  line 118 of gtkwscustomlistview.inc
  $B7E06EAF  CODEEXPLOPTS_finalize,  line 104 of debugoptionsfrm.pas
  $D015
Note: GetTextBuf is overridden for: [EMAIL PROTECTED] (c)_

--
http://luisdigital.com

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Pascal and CGI-bin

2006-01-04 Thread lazarus . mramirez
 I didn't write that webpage, otherwise it wouldn't have used tables. I
 did write http://tdbf.sf.net though.

 Micha

Hi, are you involve in the tdbf component development ?

In case you are, I downloaded a copy of that component sometime ago
and made a descendant with some improvements...

lazarus.mramirez |at| star |minus| dev |dot| com

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Lazarus Examlpes.

2006-01-04 Thread Lv

Does anyone have a relatively complex Lazarus example available I can study?
The example needs to contain plotting of data, graphs etc.
it will help me shorten my development.

Thanks

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Lazarus Examlpes.

2006-01-04 Thread Vincent Snijders

Lv wrote:
Does anyone have a relatively complex Lazarus example available I can 
study?

The example needs to contain plotting of data, graphs etc.
it will help me shorten my development.



What about TAChart and its example application: 
http://wiki.lazarus.freepascal.org/index.php/TAChart


HTH,
Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] unitinfodlg

2006-01-04 Thread Mattias Gaertner
On 04 Jan 2006 18:19:56 +0100
Darius Blaszijk [EMAIL PROTECTED] wrote:

 On Wed, 2006-01-04 at 13:17, Mattias Gaertner wrote:
  I removed the warning and the 'Resize' method.
  Where is the bug?
 The bug is that although the labels are set to autosize, it does not
 happen until AFTER create. I now understand that is not necessarily a
 bug.

Indeed. It's normal. The autosizing is only invoked when all needed factors
are there, which is often not the case during creation.
In general: You should not read the TLabel Size once and setup the layout,
but everytime it changes. So use the OnResize event. Or even better: Use the
LCL autosize properties to reduce overhead.


 I have a patch here that will resize the form as it relies on the
 resizing of the UName label. I have also deleted the help button. As
 it's not being used anyway.


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Lazarus RB Edition w/Plugger

2006-01-04 Thread Mattias Gaertner
On Wed, 03 Aug 2005 12:18:04 -0700
L505 [EMAIL PROTECTED] wrote:

 Lazarus RB Editon implements Plugger, a special and easy way to write
 truly dynamic plug-ins for Lazarus and in the future, other IDE's. It is
 in Alpha testing, but so far I have found it to be stable, with the minor
 testing I've done.
 
 Links:
   Download and Info
 http://z505.com/cgi-bin/qkcont/qkcont.cgi?p=Lazarus-RB-Edition
   Direct Download
 http://z505.com/download/lazrb/LazRB_0.9.7Alpha.zip

Is this the newest version?
Where is the lazarus stuff?


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Small problem

2006-01-04 Thread Mattias Gaertner
On Sun, 20 Nov 2005 11:50:46 +0200
Andrew Higgs [EMAIL PROTECTED] wrote:

 Hi all,
 
 I have noticed that if the Property Inspector or the Main Window with 
 the component palette on has focus when F9 is pressed the project is 
 built and run twice.
 
 I am running with FPC2.0.0 and Lazarus 0.9.11 (8189) on Linux.

The problem is, that the gtk accelerators trigger the menu item and the key
is passed to the LCL, which triggers it again. I redirected it to a dummy
callback, which seems to fix the problem.



Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] newprojectdlg

2006-01-04 Thread Graeme Geldenhuys

Mattias Gaertner wrote:


So IMHO this
could be deleted from the project menu, anybody object? The next menu
entry, I believe should also be moved to newdialog. So in effect delete
both from the project menu.



Does it hurt there? I would miss it.


So would I.


Graeme.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Re: Patch for msgview.pp (enhancement)

2006-01-04 Thread Mattias Gaertner
On Tue, 27 Dec 2005 23:23:39 +0800
Funky Beast [EMAIL PROTECTED] wrote:

 Marc Weustink wrote:
  Graeme Geldenhuys wrote:
  
  Hi,
 
  Attached is a patch to enable color support in the Messages Window. It 
  now makes it much easier to find your $Hint and $Note messages in a
  lengthy compile.
 
  Still outstanding is the option to enable users to custom select the
  colors used. At the moment it is hard-coded to Green and Blue.
  
  
  Thanks, it is a nice start.
  I've changed the customdraw a bit. There is no need to check if it is a 
  hint if you already know that it is a note. I've also reduced the number
  
  of locations where the text is drawn.
  
  For the future, I think that even more types can be colored, like $info,
  
  $message, $warning, $error, $fatal etc.
  Maybe in there can be a user defined list of messages with user defined 
  colors.
  
  
  
  r8374
  
  Marc
  
 
 May i suggest a treeview, that is,
 each type in its own branch which would be much easier to
 search in categories which can be expanded and collapsed.
 Like:
 -Build
  |-
  |-
  |-
 -Messages
  |-
  |-
  |-
 -Hints
  |-
  |-
  |-
 -Warnings
  |-
  |-
  |-
 -Notes
  |-
  |-
  |-
 -Errors
  |-
  |-
  |-
 -Fatal
  |-
  |-
  |-
 
 and we can have options on what msg types we want to capture.
 just my 2 cents.

If someone wants to improve the messages view to support sorting or treeview
or filtering, don't hesitate to ask how. Just keep in mind, that it should
be configurable, so the user can have a normal list, if preferred.


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] findreplacedialog

2006-01-04 Thread Graeme Geldenhuys

Mattias Gaertner wrote:
That's also because the bold labels are not there. How come? 


What labels are missing?
They are not bold, because the font does not support it.


I think he meant they are not showing as bold.  That dialog looks quite 
different under Windows.  The joys of coding for multi-platform!  :-)



Regards,
  - Graeme -

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Editor option crashes IDE (0.9.11)

2006-01-04 Thread Graeme Geldenhuys

Mattias Gaertner wrote:

On Wed, 14 Dec 2005 10:51:17 +0100
Vincent Snijders [EMAIL PROTECTED] wrote:



Graeme Geldenhuys wrote:


Hi,

In 0.9.11 (nightly download from 2005-12-08) as well as Rev.8306 I am 
able to crash the IDE.  I run Lazarus under Windows 2000.


To reproduce:

Bug #1:
1) Environment - Editor Options - Color
2) Select Java in the Language combo box
3) Click on a few line in the sample editor window, so that the Element 
listbox highlights a few different items.

4) Now select Object Pascal in the Language combo box.
5) The IDE gives a Access Violation and freezes.


Is this the same?
http://www.lazarus.freepascal.org/mantis/view.php?id=1371




Bug #2:
This happens in Rev.8306, but not in the nightly download from
2005-12-08 1) Environment - Editor Options - Color
2) Select Java in the Language combo box. I think other languages did 
the same.
3) Click on a few line in the sample editor window, so that the Element 
listbox highlights a few different items.

4) The buttons for selecting colors disappears.


Bug #3:
This happens in all 0.9.11 versions
1) Environment - Editor Options - Color
2) Select any Language.
3) Clicking on any of the buttons to change the color doesn't do 
anything. In 0.9.10 it displayed a color selection dialog.





http://www.lazarus.freepascal.org/mantis/view.php?id=1479



Are these issues fixed?



Bug 1:  Yes, fixed.

Bug 2:  Wasn't a bug, but my misunderstanding.

Bug 3:  Almost there. The foreground color button works, but the 
background color button doesn't.



Regards,
  - Graeme -



_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Editor option crashes IDE (0.9.11)

2006-01-04 Thread Graeme Geldenhuys

Graeme Geldenhuys wrote:

Are these issues fixed?



Bug 1:  Yes, fixed.

Bug 2:  Wasn't a bug, but my misunderstanding.

Bug 3:  Almost there. The foreground color button works, but the 
background color button doesn't.



Very weird!  I just got the latest SVN version of Lazarus (to double 
check), and Bug 3 is now reversed.  The foreground button doesn't work, 
but the background button does. :(


G.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] findreplacedialog

2006-01-04 Thread Mattias Gaertner
On Wed, 04 Jan 2006 21:03:12 +0200
Graeme Geldenhuys [EMAIL PROTECTED] wrote:

 Mattias Gaertner wrote:
 That's also because the bold labels are not there. How come? 
  
  What labels are missing?
  They are not bold, because the font does not support it.
 
 I think he meant they are not showing as bold.  That dialog looks quite 
 different under Windows.  The joys of coding for multi-platform!  :-)

Playing with fonts is per se not platform independent.


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Centering dialog text

2006-01-04 Thread Mattias Gaertner
On Mon, 05 Dec 2005 14:22:33 +0200
Ere Maijala [EMAIL PROTECTED] wrote:

 Hi,
 
 it seems to me that the code in promptdialog.inc didn't center the 
 dialog text as it should. How about the attached patch? Looks quite a 
 bit better for me, though I've only tested on Windows. As soon as we get 
 rid of the glyphs in the buttons, the dialogs will be quite ok..

You forgot to alter the comments, so I can only guess, what you intended.

Maybe you want a space on the right side of the size of the icon on the
left?


Mattias


_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Scaling images ?

2006-01-04 Thread Mattias Gaertner
On Wed, 07 Dec 2005 08:10:37 +0200
Alan Chamberlain [EMAIL PROTECTED] wrote:

 Your easiest way to display a bitmap is to use a TImage component with
 autosize := false
 stretch := true
 and use TImage.Canvas.StretchDraw, but I have had problems with gtk and
 gtk2 in that if you zoom in to the bitmap you do not get a pixilated
 image but something blurred and fuzzy. Win 32 works correctly. I am
 still trying to track down the problem.

You are the first, who wants a pixelated StretchDraw.

I guess, we need both.
How do you do that under Delphi?

 
Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Pascal and CGI-bin

2006-01-04 Thread Micha Nelissen
On Wed, 4 Jan 2006 09:22:01 -0600 (CST)
[EMAIL PROTECTED] wrote:

 Hi, are you involve in the tdbf component development ?

Yes, I'm the developer of it.
 
 In case you are, I downloaded a copy of that component sometime ago
 and made a descendant with some improvements...

Ok, what kind of improvements ?

Micha

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] My icon editor eats GDI handles

2006-01-04 Thread Mattias Gaertner
On Tue, 27 Dec 2005 17:30:32 +0200
Markku Niskanen [EMAIL PROTECTED] wrote:

 I am still fighting my way through the graphics jungle. So far the only
 problem has been the consumption of GDI handles which happens in 
 this code fragment which is part of mouseMove rectangle/ellipse 
 drawing routine where during a mouse move I first
 
 1) Save the original image  (editImage bitmap)
 2) draw the ellipse to editImage
 3) Project the image to magnified area (grid)
 4) Restore the saved image to editImage
 
 Only after keyup I finally update the editImage bitmap 
 
 I have narrowed down the leak to these two functions; if I exit
 from them immediately the memory leak disappears... Other than
 this problem the icon editor is already usable, it reads xpm and
 ico files and writes them as well. And it is beautiful :)
 ...
 editImage   : TLazIntfImage;
 ...
 var  originalImage : TlazIntFImage; // this is where I save it
   originalBitmap: TBitmap;
   BmpHnd,MaskHnd: HBitmap;
 
   procedure saveBitmap();
   begin
 // create the original image and load a bitmap to it
 originalImage := originalBitmap.CreateIntfImage;
 originalImage.LoadFromBitmap(BmpHnd,MaskHnd);
   end;
 
   procedure restoreBitmap();
var BmpHnd,MaskHnd: HBitmap;
   begin
// load editImage from the original bitmap
 originalImage.CreateBitmap(BmpHnd,MaskHnd,false);
 editImage.LoadFromBitmap(BmpHnd,MaskHnd);
 originalImage.Free; // should'nt this free the resources?
// or should I also free something else?

The TLazIntfImage creates new bitmap handle objects everytime you call
CreateBitmap.

To copy from one TLazIntfImage to another you can do that directly
editImage.Assign(originalImage);

If you need speed, you can copy the content of PixelData, MaskData directly.


   end;
 
 ...
   case Tool of
   Ellipse:
 begin
  saveBitmap; // save the original
  // irrelevant from here just drawing the stuff to tmpBitmap
  tmpBitMap.Canvas.Brush.Style := bsSolid;
  tmpBitMap.Canvas.Pen.Color   := FPColorToTcolor(currentFG);
  tmpBitMap.Canvas.Brush.Color := FPColorToTcolor(currentBG);
 
 tmpBitmap.Canvas.Ellipse(rectStartX,rectStarty,RectEndX,rectEndY);
  editImage.loadFromBitmap(BmpHnd,MaskHnd);
  drawGrid; // draw the editor grid + image
  // ...up to this point
  restoreBitmap; //restore the original 
 end;


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Re: Trying to use LCLIntf.StretchBlt on gtk and possible patch for gtk interface

2006-01-04 Thread Mattias Gaertner
On Wed, 14 Dec 2005 09:07:42 -0200
Felipe Monteiro de Carvalho [EMAIL PROTECTED] wrote:

 Now with backtrace (sorry, never used gdb on the command line before ^^ 
 good to learn):

Can you send an example, where the StretchDraw does not work?

Mattias


 
  (gdb) break fpc_raiseexception
  Breakpoint 1 at 0x805d8ee
  (gdb) run --g-fatal-warnings
  Starting program: /home/felipe/Programação/Lente/magnifier
  --g-fatal-warnings Reading symbols from shared object read from target
  memory...done. Loaded system supplied DSO at 0xe000
  Detaching after fork from child process 4656.
  
  Breakpoint 1, 0x0805d8ee in fpc_raiseexception ()
  (gdb) bt
  #0  0x0805d8ee in fpc_raiseexception ()
  #1  0x080d0c95 in GLOGFUNC (ALOGDOMAIN=0x0, ALOGLEVEL=10,
  AMESSAGE=0xbfe8712c, ADATA=0xb7ab2014) at gtkobject.inc:110 #2 
  0xb7f4faaa in g_logv () from /usr/lib/libglib-1.2.so.0 #3  0xbfe879c0 in
  ?? () #4  0xbfe879d0 in ?? ()
  #5  0xb7f60ea4 in ?? () from /usr/lib/libglib-1.2.so.0
  #6  0xbfe87128 in ?? ()
  #7  0xb7f60ca0 in g_thread_use_default_impl () from
  /usr/lib/libglib-1.2.so.0 #8  0xb7f60ea4 in ?? () from
  /usr/lib/libglib-1.2.so.0 #9  0xbfe8712c in ?? ()
  #10 0xb7f60ca0 in g_thread_use_default_impl () from
  /usr/lib/libglib-1.2.so.0 #11 0x0001 in ?? ()
  #12 0x0003 in ?? ()
  #13 0x0008 in ?? ()
  #14 0xb7ab2014 in ?? ()
  #15 0x656c6966 in ?? ()
  #16 0x6b646720 in ?? ()
  #17 0x7869702d in ?? ()
  #18 0x2d667562 in ?? ()
  #19 0x77617264 in ?? ()
  #20 0x656c6261 in ?? ()
  #21 0x203a632e in ?? ()
  #22 0x656e696c in ?? ()
  #23 0x30313120 in ?? ()
  #24 0x67282039 in ?? ()
  #25 0x705f6b64 in ?? ()
  #26 0x75627869 in ?? ()
  #27 0x65675f66 in ?? ()
  #28 0x72665f74 in ?? ()
  #29 0x645f6d6f in ?? ()
  #30 0x61776172 in ?? ()
  #31 0x29656c62 in ?? ()
  #32 0x7361203a in ?? ()
  #33 0x74726573 in ?? ()
  #34 0x206e6f69 in ?? ()
  ---Type return to continue, or q return to quit---
  #35 0x73656460 in ?? ()
  #36 0x20785f74 in ?? ()
  #37 0x30203d3d in ?? ()
  #38 0x20262620 in ?? ()
  #39 0x74736564 in ?? ()
  #40 0x3d20795f in ?? ()
  #41 0x2730203d in ?? ()
  #42 0x69616620 in ?? ()
  #43 0x2e64656c in ?? ()
  #44 0x082a7400 in ?? ()
  #45 0xbfe871d4 in ?? ()
  #46 0xbfe87aa4 in ?? ()
  #47 0x541b in ?? ()
  #48 0xb7c2ab69 in ioctl () from /lib/tls/libc.so.6
  #49 0xb7e880e0 in XUnlockDisplay () from /usr/X11R6/lib/libX11.so.6
  Previous frame inner to this frame (corrupt stack?)
  (gdb) cont
  Continuing.
  TApplication.HandleException [FATAL] file gdk-pixbuf-drawable.c: line
  1109 (gdk_pixbuf_get_from_drawable): assertion `dest_x == 0  dest_y ==
  0' failed.
Stack trace:
$080D0C87  GLOGFUNC,  line 110 of gtkobject.inc
$B7F4FAAA  WSSPIN_init,  line 75 of gtkglobals.pp
  
  Breakpoint 1, 0x0805d8ee in fpc_raiseexception ()
  (gdb) bt
  #0  0x0805d8ee in fpc_raiseexception ()
  #1  0x080d0c95 in GLOGFUNC (ALOGDOMAIN=0x0, ALOGLEVEL=11,
  AMESSAGE=0xbfe86d70, ADATA=0xb7ab2014) at gtkobject.inc:110 #2 
  0xb7f4faaa in g_logv () from /usr/lib/libglib-1.2.so.0 #3  0xb7cf4344 in
  ?? () from /usr/lib/libgtk-1.2.so.0 #4  0x in ?? ()
  (gdb) cont
  Continuing.
  TApplication.HandleException: there was another exception during showing
  the first exception [TGtkWidgetSet.Destroy] WARNING: There are 3
  unreleased DCs, a detailed dump follows: [TGtkWidgetSet.Destroy]  DCs:  
  B796F5C4 B796F354 B796F014 [TGtkWidgetSet.Destroy] WARNING: There are 12
  unreleased GDIObjects, a detailed dump follows: [TGtkWidgetSet.Destroy] 
   GDIOs: B7AAB194 B7AAB0F4 B7AAB0A4 B7AAB054 B7AAB004 B7AAABF4 B7AAAC44
  [TGtkWidgetSet.Destroy]   gdiBitmap: 3
  [TGtkWidgetSet.Destroy]   gdiBrush: 3
  [TGtkWidgetSet.Destroy]   gdiFont: 3
  [TGtkWidgetSet.Destroy]   gdiPen: 3
  
  Program exited normally.
  (gdb) bt
  No stack.
  (gdb)
 
 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] ListView bug

2006-01-04 Thread Luis R. Hilario B.
lazarus/ideintf/imagelisteditor.pp
Line 187:fLv.Items.Delete(Il.Index);

But is a general failure in GTK, for example Code Templates also fails.

2006/1/4, Mattias Gaertner [EMAIL PROTECTED]:
 On Wed, 4 Jan 2006 10:16:26 -0400
 Luis R. Hilario B. [EMAIL PROTECTED] wrote:

  Hello,
 
  if TListView.Items.Delete(Last.Selected.Index) then Lazarus crash;

 Can you send an example?

 Mattias


 
  Only GTK.
 
  TApplication.HandleException List index (7) out of bounds
Stack trace:
$080BA63E
  TApplication.HandleException Access violation
Stack trace:
$081CA9EF  TLISTITEM__SETSTATE,  line 524 of ./include/listitem.inc
$081CC4D2  TCUSTOMLISTVIEW__DOSELECTITEM,  line 225 of
  ./include/customlistview.inc
$081CC200  TCUSTOMLISTVIEW__CNNOTIFY,  line 148 of
  ./include/customlistview.inc
$0805D14B
$08135602  TCONTROL__WNDPROC,  line 1520 of ./include/control.inc
$0812CFAD  TWINCONTROL__WNDPROC,  line 3046 of ./include/wincontrol.inc
$081493F9  DELIVERMESSAGE,  line 3447 of gtkproc.inc
$081E2646  GTKWSCUSTOMLISTVIEW_SELECTROW,  line 118 of
gtkwscustomlistview.inc $B7E06EAF  CODEEXPLOPTS_finalize,  line 104 of
debugoptionsfrm.pas $D015
  Note: GetTextBuf is overridden for: [EMAIL PROTECTED] (c)_
 
  --
  http://luisdigital.com
 
  _
   To unsubscribe: mail [EMAIL PROTECTED] with
  unsubscribe as the Subject
 archives at http://www.lazarus.freepascal.org/mailarchives

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives



--
http://luisdigital.com

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] ListView bug

2006-01-04 Thread Luis R. Hilario B.
Add icons in Image list editor (for example) and select the last
one, clic Delete and BOOM.

2006/1/4, Mattias Gaertner [EMAIL PROTECTED]:
 On Wed, 4 Jan 2006 17:40:01 -0400
 Luis R. Hilario B. [EMAIL PROTECTED] wrote:

  lazarus/ideintf/imagelisteditor.pp
  Line 187:fLv.Items.Delete(Il.Index);

 How?


  But is a general failure in GTK, for example Code Templates also fails.

 How?

 Mattias


 
  2006/1/4, Mattias Gaertner [EMAIL PROTECTED]:
   On Wed, 4 Jan 2006 10:16:26 -0400
   Luis R. Hilario B. [EMAIL PROTECTED] wrote:
  
Hello,
   
if TListView.Items.Delete(Last.Selected.Index) then Lazarus crash;
  
   Can you send an example?
  
   Mattias
  
  
   
Only GTK.
   
TApplication.HandleException List index (7) out of bounds
  Stack trace:
  $080BA63E
TApplication.HandleException Access violation
  Stack trace:
  $081CA9EF  TLISTITEM__SETSTATE,  line 524 of ./include/listitem.inc
  $081CC4D2  TCUSTOMLISTVIEW__DOSELECTITEM,  line 225 of
./include/customlistview.inc
  $081CC200  TCUSTOMLISTVIEW__CNNOTIFY,  line 148 of
./include/customlistview.inc
  $0805D14B
  $08135602  TCONTROL__WNDPROC,  line 1520 of ./include/control.inc
  $0812CFAD  TWINCONTROL__WNDPROC,  line 3046 of
  ./include/wincontrol.inc $081493F9  DELIVERMESSAGE,  line 3447 of
  gtkproc.inc $081E2646  GTKWSCUSTOMLISTVIEW_SELECTROW,  line 118 of
  gtkwscustomlistview.inc $B7E06EAF  CODEEXPLOPTS_finalize,  line 104
  of debugoptionsfrm.pas $D015
Note: GetTextBuf is overridden for: [EMAIL PROTECTED] (c)_
   
--
http://luisdigital.com
   
_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives
  
   _
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives
  
 
 
  --
  http://luisdigital.com
 
  _
   To unsubscribe: mail [EMAIL PROTECTED] with
  unsubscribe as the Subject
 archives at http://www.lazarus.freepascal.org/mailarchives

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives



--
http://luisdigital.com

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Label alignment and autosize are not working correctly

2006-01-04 Thread jean-marc levecque
This has been resolved short time after: svn 8327 (bug n° 1526)
Developpers are sometimes so fast !!

Le mercredi 4 Janvier 2006 22:15, Mattias Gaertner a écrit :
 On Sun, 11 Dec 2005 17:33:47 +0100

 jean-marc levecque [EMAIL PROTECTED] wrote:
  Well, I had not yet reported to bugtracker when I noticed that it has
  been
 
  improved in last svn
  Now Label is always left aligned if AutoSize=True, and correctly aligned
  and  full text displayed if AutoSize=False, which looks ok to me :)
 
  But (there is often a 'but'), after closing and re-opening the project,
  Width  (and Height too) are the ones of the Caption, while at run time
  they keep  correct.
  There is a discrepancy between what is in the .lfm and what is displayed
  by  the Object Inspector :(

 There are a few cases, where the .lfm and the OI differ.
 Can you give an example?

 Mattias

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] ListView bug

2006-01-04 Thread Mattias Gaertner
On Wed, 4 Jan 2006 17:53:26 -0400
Luis R. Hilario B. [EMAIL PROTECTED] wrote:

 Add icons in Image list editor (for example) and select the last
 one, clic Delete and BOOM.

That was exactly what I did, but I didn't heard the BOOM. 
What lazarus/fpc version are you using?
Can you write a small example?


Mattias


 
 2006/1/4, Mattias Gaertner [EMAIL PROTECTED]:
  On Wed, 4 Jan 2006 17:40:01 -0400
  Luis R. Hilario B. [EMAIL PROTECTED] wrote:
 
   lazarus/ideintf/imagelisteditor.pp
   Line 187:fLv.Items.Delete(Il.Index);
 
  How?
 
 
   But is a general failure in GTK, for example Code Templates also
   fails.
 
  How?
 
  Mattias
 
 
  
   2006/1/4, Mattias Gaertner [EMAIL PROTECTED]:
On Wed, 4 Jan 2006 10:16:26 -0400
Luis R. Hilario B. [EMAIL PROTECTED] wrote:
   
 Hello,

 if TListView.Items.Delete(Last.Selected.Index) then Lazarus crash;
   
Can you send an example?
   
Mattias
   
   

 Only GTK.

 TApplication.HandleException List index (7) out of bounds
   Stack trace:
   $080BA63E
 TApplication.HandleException Access violation
   Stack trace:
   $081CA9EF  TLISTITEM__SETSTATE,  line 524 of
   ./include/listitem.inc $081CC4D2  TCUSTOMLISTVIEW__DOSELECTITEM,
line 225 of
 ./include/customlistview.inc
   $081CC200  TCUSTOMLISTVIEW__CNNOTIFY,  line 148 of
 ./include/customlistview.inc
   $0805D14B
   $08135602  TCONTROL__WNDPROC,  line 1520 of
   ./include/control.inc $0812CFAD  TWINCONTROL__WNDPROC,  line
   3046 of ./include/wincontrol.inc $081493F9  DELIVERMESSAGE, 
   line 3447 of gtkproc.inc $081E2646 
   GTKWSCUSTOMLISTVIEW_SELECTROW,  line 118 of
   gtkwscustomlistview.inc $B7E06EAF  CODEEXPLOPTS_finalize,  line
   104 of debugoptionsfrm.pas $D015
 Note: GetTextBuf is overridden for: [EMAIL PROTECTED] (c)_

 --
 http://luisdigital.com

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
   
_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives
   
  
  
   --
   http://luisdigital.com
  
   _
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives
 
  _
   To unsubscribe: mail [EMAIL PROTECTED] with
  unsubscribe as the Subject
 archives at http://www.lazarus.freepascal.org/mailarchives
 
 
 
 --
 http://luisdigital.com
 
 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] ListView bug

2006-01-04 Thread Graeme Geldenhuys

Luis R. Hilario B. wrote:

Add icons in Image list editor (for example) and select the last
one, clic Delete and BOOM.



Just thought I would mention, this doesn't happen under Windows 2000 
with latest SVN version.


I don't have icons next to the listview text though (as seen in you 
flash demo).  I think this was reported already...


Regards,
  - Graeme -


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Error compiling svn 8447

2006-01-04 Thread jean-marc levecque
Hi,
Compiling Lazarus from svn 8447, I get the error:
/usr/lib/lazarus/ideintf/propedits.pp(2829,17)Error: Identifier not found 
StrToQWord
which is fatal and stops compilation, of course.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Error compiling svn 8447

2006-01-04 Thread Mattias Gaertner
On Wed, 4 Jan 2006 23:42:08 +0100
jean-marc levecque [EMAIL PROTECTED] wrote:

 Hi,
 Compiling Lazarus from svn 8447, I get the error:
 /usr/lib/lazarus/ideintf/propedits.pp(2829,17)Error: Identifier not found 
 StrToQWord
 which is fatal and stops compilation, of course.

Fixed.

Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Error compiling svn 8447

2006-01-04 Thread Vincent Snijders

Mattias Gaertner wrote:

On Wed, 4 Jan 2006 23:42:08 +0100
jean-marc levecque [EMAIL PROTECTED] wrote:



Hi,
Compiling Lazarus from svn 8447, I get the error:
/usr/lib/lazarus/ideintf/propedits.pp(2829,17)Error: Identifier not found 
StrToQWord

which is fatal and stops compilation, of course.



Fixed.



Oops. Sorry. I tested with 2.1.1, 2.0.0 and 2.0.3 only.

Thanks for fixing, Mattias.



Vincent.

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Error compiling svn 8447

2006-01-04 Thread Vincent Snijders

Darius Blaszijk wrote:

On Wed, 2006-01-04 at 23:46, Vincent Snijders wrote:


jean-marc levecque wrote:


Hi,
Compiling Lazarus from svn 8447, I get the error:
/usr/lib/lazarus/ideintf/propedits.pp(2829,17)Error: Identifier not found 
StrToQWord

which is fatal and stops compilation, of course.


You can do several things:
1. Update fpc 2.1.1 and 2.0.3 to svn head.
2. Use fpc 2.0.0, 2.0.1 or 2.0.2
3 compile with -dFPC_HAS_NO_STRTOQWORD (not tested)


I believe you need the following patch to make it work

Darius


No, because FPCAdds (in the LCL also contains a StrToQWord).

Vincent.

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] F5 breakpoint bug

2006-01-04 Thread Marc Weustink

Mattias Gaertner wrote:

On Wed, 04 Jan 2006 20:35:11 +0100
Marc Weustink [EMAIL PROTECTED] wrote:



Graeme Geldenhuys wrote:


Mattias Gaertner wrote:



Pressing F5 in the code editor sets a breakpoint.  Pressing F5 for a
second time sets another breakpoint, and draws a second red dot. Keep
pressing F5 and it keeps setting those breakpoints.

You can remove the breakpoints with the mouse, but it never removes
the last red dot.

Using 0.9.11 Rev.8306  on Windows 2000.





Marc, what should we do with that?
Add a dialog with 2 buttons to ask the user: 'add another bp' or


'remove  bp'?


I think toggle it, so remove if one is there.



And how to add another breakpoint?



When I used it, I thought F5 would toggle the breakpoint on/off (like 
Delphi).  What would the point be of having 2 bp's on the same place?


Different groups, expressions, passes, etc. Those should be added 
through the edit bp dialog (futureware)



It's not yet there. So wait with the toggle?


No, since you cannot config a second either, so both bps are the same.

Marc

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Where can I find information about creating a new widget set?

2006-01-04 Thread Babcsany Peter




Hi,

Excuse me if my english will be poor. I'm hungarian and english is not
my mother language.

I would like to create a new widgetset for web development. I know that
it will be a huge non trivial work but it is possible. It will be
implemented entirely in fpc/Lazarus with native LCL interface. But I
need some information where should I start. How can I create a skeleton
of a widgetset? Should I copy the lcl/widgetset directory and rename
the files and classes? What else should I do? How can I build the LCL
with the new widgetset for testing? How can I add it to the IDE for
easy selection in order to build test applications?

If you are interested in the details of the project or you would like
to help me in the implementation of this then please don't hesitate to
reply.

Peter



_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Lazarus RB Edition w/Plugger

2006-01-04 Thread L505
  Links:
Download and Info
  http://z505.com/cgi-bin/qkcont/qkcont.cgi?p=Lazarus-RB-Edition
Direct Download
  http://z505.com/download/lazrb/LazRB_0.9.7Alpha.zip

 Is this the newest version?
 Where is the lazarus stuff?


 Mattias


The latest version is on SVN.. I'm actually way behind in implementing more 
stuff
into LazarusRB because I'm working on Plugger for the Syn Text editor too. The
plug-ins that I have now, work for Syn text editor and Lazarus. Why? because I 
use
Syn to create and edit html pages on MS Windows.. And Lazarus isn't exactly an 
HTML
editor.. so there are some uses right there for the DLL cross-application 
plug-in
system.

I will not be continuing the LazarusRB as a separate branch forever - there are 
so
many bug fixes that are implemented into the main Lazarus branch, that it would 
be
silly and makes no sense for someone to make a separate long term LazarusRB 
branch.

What will happen is either I will run patches on the latest lazarus realease (to
implement plugger into the latest version of lazarus), or our two branches 
(main and
RB) will merge together and there will be no lazarusRB branch at all. I just 
wanted
to prove the idea of a DLL plug in system works, in addition to component 
plug-ins
like BPL's. I feel both BPL plug-in systems and plugger systems are worth it in
Lazarus, myself.

Check these links for hot stuff:

Latest SVN
 https://opensvn.csie.org/pspcgi/LazarusRB/

Showing lazarusrb in action:
 http://prdownloads.sourceforge.net/pascal-webdev/Winkpsp_vid1.zip?download

Showing a lazarus plug-in working in a Syn editor too:
 http://z505.com/syn/winkSyn_2.htm

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Where can I find information about creating a new widget set?

2006-01-04 Thread Mattias Gaertner
On Thu, 05 Jan 2006 01:41:41 +0100
Babcsany Peter [EMAIL PROTECTED] wrote:

 Hi,
 
 Excuse me if my english will be poor. I'm hungarian and english is not my
 mother language.
 
 I would like to create a new widgetset for web development. I know that it
 will be a huge non trivial work but it is possible. It will be implemented
 entirely in fpc/Lazarus with native LCL interface. But I need some
 information where should I start. How can I create a skeleton of a
 widgetset? Should I copy the lcl/widgetset directory and rename the files
 and classes? What else should I do? How can I build the LCL with the new
 widgetset for testing? How can I add it to the IDE for easy selection in
 order to build test applications?

Copy the lcl/interfaces/carbon directory and rename all 'carbon' with
'yourchoice'.
The carbon interface is in a very early stage, so this is the easiest to
start with it.
For the IDE: Search for 'carbon' in the 'ide' and 'components/codetools'.
Then you will find all places, where the new widgetset must be added.

 
 If you are interested in the details of the project or you would like to
 help me in the implementation of this then please don't hesitate to reply.


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Where can I find information about creating a new widget set?

2006-01-04 Thread Marc Weustink

Babcsany Peter wrote:

Hi,

Excuse me if my english will be poor. I'm hungarian and english is not 
my mother language.


I would like to create a new widgetset for web development. I know that 
it will be a huge non trivial work but it is possible. It will be 
implemented entirely in fpc/Lazarus with native LCL interface. But I 
need some information where should I start. How can I create a skeleton 
of a widgetset? 


When starting the carbon interface I created sone template first. Don't 
know how complete it is.


http://lazarus.dommelstein.nl/lcl/interfaces/template.tgz


Should I copy the lcl/widgetset directory and rename the 
files and classes? 


In the README is a line on how to rename things

What else should I do? How can I build the LCL with 
the new widgetset for testing? 


make sure you have a working lcl (for instance gtk)
then in your widgetset dir, type make.

then for a test app, make LCL_PLATFORM=your_widgetset

or from the commandline,
ppc386 -Fu/path_to/lcl/units/i386-linux/your_widgetset your_testapp.pp


How can I add it to the IDE for easy 
selection in order to build test applications?


for carbon testing, I create an app in the ide, but use commanline to test.



If you are interested in the details of the project or you would like to 
help me in the implementation of this then please don't hesitate to reply.


hth, Marc


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives