[Lazarus] Fatal error while compile r47244
datetimepicker.pas file has error, and lazarus can not make. /opt/lazarus/components/datetimectrls/datetimepicker.pas(534,38) Hint: (5024) Parameter Sender not used /opt/lazarus/components/datetimectrls/datetimepicker.pas(2076,23) Error: (5038) identifier idents no member dtpYear /opt/lazarus/components/datetimectrls/datetimepicker.pas(2076,30) Error: (4052) Constant Expression expected /opt/lazarus/components/datetimectrls/datetimepicker.pas(2076,30) Error: (3037) duplicate case label datetimepicker.pas(3749) Fatal: (10026) There were 3 errors compiling module, stopping Fatal: (1018) Compilation aborted make[2]: *** [datetimectrls.ppu] Hata 1 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] trunk 47241 doesn't compile
On Wed, 24 Dec 2014 18:14:22 +0100 Giuliano Colla giuliano.co...@fastwebnet.it wrote: Compilation stops in error in DateTimePicker.pas, line 2076. You forgot to say with fpc 2.7.1. Changing dtp.dtpYear into dtpYear fixes the problem. Thanks. Fixed. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] TCustomControl and Z-order problem
Hi, I create a TCustomControl descendant and @runtime I position it at the exact position of anoher control (TEdit) then set it's parent to the other controls parent (the same form in this case). On Windows, the new control is drawn over the TEdit (as I want, probably just by luck), but on GTK2 it is drawn behind the TEdit. BringToFront does not help. Obviously I'm doing something wrong here, but what. The code looks something like this: procedure TTextHintOverlay.ShowOverlay; var BRect: TRect; begin if not CanShow then Exit; //before you ask, CanShow is True, I checked BRect := FEdit.BoundsRect; if FEdit.BorderStyle = bsSingle then InflateRect(BRect, -2, -2); BoundsRect := BRect; Parent := FEdit.Parent; //Form1 in this case Visible := True; BringToFront; end; I thought it might have to do with the order in which events are handled, but even when I later find the component on the form and do BringToFront it does not work. I also tried to do SendToBack on the TEdit, but to no avail. Any thoughts? Bart -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Missing components in component palette
I just updated my lazarus today (r47247) and I found that the component palette misses a lot of components. The appearing components are random, though. Some tab has 3, the other maybe 2, some other may be complete or even there are some that are totally has no components (but the tab is there). Is this another palette reordering issue? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Missing-components-in-component-palette-tp4039903.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Missing components in component palette
There's a cute section in my environmenoptions.xml that might be responsible for this: component-palette-options.png http://free-pascal-lazarus.989080.n3.nabble.com/file/n4039904/component-palette-options.png Removing the whole section fixes it. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Missing-components-in-component-palette-tp4039903p4039904.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus