Mattias Gaertner | 1 May 05:04
Picon
Favicon

Re: SpinEdit question

On Mon, 30 Apr 2007 18:01:48 +0200 (CEST)
Michael Van Canneyt <michael <at> freepascal.org> wrote:

> 
> Hi,
> 
> Is there any reason why TSpinEdit (and TFloatSpinEdit) do not descend
> from TCustomEdit ? That's what I would expect, but for some reason
> this is not so.
> 
> Does anyone know the reason ? If so, what is it ?

History.

Do you want to rewrite it?

Mattias

Mattias Gaertner | 1 May 05:09
Picon
Favicon

Re: Lazarus Object Inspector locks up

On Mon, 30 Apr 2007 11:55:09 +0100
pineal <pi.neal <at> virgin.net> wrote:

> On Monday 30 April 2007 08:10, Mattias Gaertner wrote:
> > Can you create a backtrace?
> > Start lazarus with gdb:
> >
> > []$ gdb ./lazarus
> > break FPC_RAISEEXCEPTION
> > run
> > backtrace
> >
> >
> > Mattias
> 
> do you mean like this below? 

Yes. Thanks.
I already found such a bug. I will commit a fix together with a few
other fixes for the gtk2 in a few days.

 
>[...]
> WARNING: Macro not defined: "Target_OS".

This means, that either your project or one of the used packages use
the wrong macro name (TargetOS is the correct name). Probably in the
compiler options. It is not a package coming with lazarus.

Mattias
(Continue reading)

Mattias Gaertner | 1 May 05:21
Picon
Favicon

Re: [patch] - Editor Toolbar (add-on) package

On Mon, 30 Apr 2007 12:25:59 +0200
Giuliano Colla <giuliano.colla <at> fastwebnet.it> wrote:

> Graeme Geldenhuys ha scritto:
> > On 4/29/07, Vincent Snijders <vsnijders <at> quicknet.nl> wrote:
> >>
> >> Applied in r11031
> >>
> > 
> > Thanks Vincent.
> > 
> >> Another (or the same) issue. If I configure the toolbar, the newly
> >> configured toolbar appended to the current toolbar. So if I
> >> reconfigure 3 times in a lazarus sessions, I got 4 configure
> >> buttons. After restart the toolbar is correct.
> > 
> > Ah, I take if you are running Windows then...  This is a bug I found
> > while testing under Windows.  No such issues under GTK1.  I'll
> > double check if I reported this issue in Mantis.
> > Under Win32, you cannot hide a Toolbar Button for some reason. It
> > always stays visible.  If you can figure out a work-around or a fix,
> > please don't hesitate to submit a patch. :-)
> > 
> > My first attempt to get around that bug was to free the existing
> > buttons when the users clicks OK in the Toolbar Config screen, and
> > then rebuild it from scratch. That didn't go down well either and
> > caused Lazarus to crash.  Still can't figure out how to free off
> > existing buttons without a crash.
> 
> I had a similar problem in an app, and I found (the hard
(Continue reading)

Mattias Gaertner | 1 May 05:37
Picon
Favicon

Re: Error while linking - Sqlite problem?

On Sun, 29 Apr 2007 20:10:48 -0400
Lee Jenkins <lee <at> datatrakpos.com> wrote:

> Mattias Gaertner wrote:
> > On Sun, 29 Apr 2007 12:27:44 -0400
> > Lee Jenkins <lee <at> datatrakpos.com> wrote:
> > 
> >> Lee Jenkins wrote:
> >>> Lee Jenkins wrote:
> >>>> Hi all,
> >>>>
> >>>> I had a project successfully building on both Windows and Linux.
> >>>> I added SQLite support and while everything compiles fine on
> >>>> Windows, now on the linux box, Lazarus simply says:
> >>>>
> >>>> Error: Error while linking
> >>>>
> >>>> No descriptions, just that.
> > 
> > There are probably more error messages, but maybe they were skipped
> > and not shown in the message window. Can you reproduce the issue and
> > send all messages please? You can get all messages with right click
> > on messages and use "Save all messages to file". Then I can extend
> > the filter to show these messages.
> > 
> 
> /usr/bin/ld: cannot find -lsqlite3
> Error: Error while linking

Strange. Here the filter shows this message in the window.
(Continue reading)

Picon
Favicon

Re: SpinEdit question


On Tue, 1 May 2007, Mattias Gaertner wrote:

> On Mon, 30 Apr 2007 18:01:48 +0200 (CEST)
> Michael Van Canneyt <michael <at> freepascal.org> wrote:
> 
> > 
> > Hi,
> > 
> > Is there any reason why TSpinEdit (and TFloatSpinEdit) do not descend
> > from TCustomEdit ? That's what I would expect, but for some reason
> > this is not so.
> > 
> > Does anyone know the reason ? If so, what is it ?
> 
> History.
> 
> Do you want to rewrite it?

Not really; 
I was doing some investigation for an article I'm writing,
and I simply stumbled on this strange fact :)

From a design/architectural/principal point of view, though, I 
think that it's better to have it as a TCustomEdit descendent 
as well, though. Although I have no idea how much work that would be.
So if you have nothing better to do on a rainy day... ;-)

Michael.

(Continue reading)

Favicon

Selected property of TChecklistbox


The Selected[] array property of TCheckListBox does not work.
(do not confuse with Checked[] array property, which does work)

Reported as bug 8796.

Michael.

Graeme Geldenhuys | 1 May 10:10
Picon
Gravatar

Re: Lazarus Object Inspector locks up

Hi pineal,

> >[...]
> > WARNING: Macro not defined: "Target_OS".
>
> This means, that either your project or one of the used packages use
> the wrong macro name (TargetOS is the correct name). Probably in the
> compiler options. It is not a package coming with lazarus.

Do you have FBLib installed? If so, that is probably the problem. As
Mattias suggested, have a look in the FBLib compiler options and fix
it there.

I already notified the FBLib author about this issue.

--

-- 
Graeme Geldenhuys

There's no place like S34° 03.168'  E018° 49.342'

Graeme Geldenhuys | 1 May 10:17
Picon
Gravatar

Re: [patch] - Editor Toolbar (add-on) package

On 5/1/07, Mattias Gaertner <nc-gaertnma <at> netcologne.de> wrote:
>
> It is pretty normal, that you can not free a component, while in an
> event for this control. That's why there is ReleaseComponent, which
> frees the component after the events have been processed.
> Otherwise you found a bug. Can you create an example?
>

Ah, I never spotted that mistake.  Because I clicked on a Toolbar
button to launch the editor toolbar config screen, I cannot rebuild
the Toolbar from the OnDestroy of the config screen. As technically, I
am still in the ToolbarButton.OnClick event.

I should be able to free off the other Toolbar Buttons though. Correct?

--

-- 
Graeme Geldenhuys

There's no place like S34° 03.168'  E018° 49.342'

Favicon

Re: [patch] - Editor Toolbar (add-on) package


On Tue, 1 May 2007, Graeme Geldenhuys wrote:

> On 5/1/07, Mattias Gaertner <nc-gaertnma <at> netcologne.de> wrote:
> >
> > It is pretty normal, that you can not free a component, while in an
> > event for this control. That's why there is ReleaseComponent, which
> > frees the component after the events have been processed.
> > Otherwise you found a bug. Can you create an example?
> >
> 
> Ah, I never spotted that mistake.  Because I clicked on a Toolbar
> button to launch the editor toolbar config screen, I cannot rebuild
> the Toolbar from the OnDestroy of the config screen. As technically, I
> am still in the ToolbarButton.OnClick event.
> 
> I should be able to free off the other Toolbar Buttons though. Correct?

Correct.

Michael.

Favicon

Patch for TFilelistbox


Hi,

Attached is a small patch which publishes the \var{Directory} property of 
\var{TFileListBox}. While it makes little sense to set this property in 
the IDE, it does make sense to have it published:
- It can be controlled with an RTTI control.
- The FormSettings mechanism can save/restore it.

Michael.
Index: filectrl.pp
===================================================================
--- filectrl.pp	(revision 11019)
+++ filectrl.pp	(working copy)
@@ -93,6 +93,7 @@
     property Constraints;
     property DragCursor;
     property DragMode;
+    Property Directory;
     property ExtendedSelect;
     property FileType;
     property Font;

Gmane