Re: [Lazarus] Can't see (or set) border on TComboBox
On 07/06/2014 12:27 AM, Donald Ziesig wrote: Hi All! I just downloaded the latest Lazarus and FPC and now I can't get a combo box with a border :-( . IIRC there used to be a way to select multiple border styles for TComboBox, but all I see now is: BorderSpacing - (TControlBorderSpacing) and the resulting combo box has no visible border. Am I missing something? What widgetset ? zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] GTK2 GroupBox auto size
On Sat, Jul 05, 2014 at 01:03:19PM +0100, Henry Vermaak wrote: On Sat, Jul 05, 2014 at 02:05:10PM +0300, Juha Manninen wrote: I applied the patch from Henry. I hope we get LCL-Win fixed, too. Thanks. I'll look into lcl-win, it'll need a GetPreferredSize with MeasureText and some more magic to take the borders into account. I've uploaded a patch to the bug report. The hard coded numbers don't feel very good, but I haven't found a better way of doing it. The other GetPreferredSize implementations in the file also seem to do that. Henry -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can't see (or set) border on TComboBox
On 07/06/2014 12:27 AM, Donald Ziesig wrote: Hi All! I just downloaded the latest Lazarus and FPC and now I can't get a combo box with a border . IIRC there used to be a way to select multiple border styles for TComboBox, but all I see now is: BorderSpacing - (TControlBorderSpacing) and the resulting combo box has no visible border. Am I missing something? Don Ziesig What widgetset ? zeljko According to the IDE build profile: gtk 2 Don -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Epiktimer elapsed = negative value
Occasionally I get a negative Elapsed value using EpikTimer. Here is my code: RunWhile:=True; DelayInSeconds := 1.00; //Store every x seconds while RunWhile do begin ET.Clear; ET.Start; while (ET.Elapsed DelayInSeconds) and RunWhile do begin ET.SystemSleep(10); writeln('ET.Elapsed=',ET.Elapsed); if (ET.Elapsed 0 ) then RunWhile:=False; end; LogOneReading(); //Store successive readings (my code) end; This is the output after about 5 to 20 minutes where you can see the last line showing the negative value: ... ET.Elapsed= 4.45265000E-0001 ET.Elapsed= 4.55359000E-0001 ET.Elapsed= 4.65441000E-0001 ET.Elapsed=-4.294491728000E+0003 I did install EpikTimer from the latest github. I am using Linux, and had to add linux to the uses clause to prevent the clock_gettime() error. Thanks for looking, Anthony -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can't see (or set) border on TComboBox
On 07/06/2014 03:16 PM, Donald Ziesig wrote: On 07/06/2014 12:27 AM, Donald Ziesig wrote: Hi All! I just downloaded the latest Lazarus and FPC and now I can't get a combo box with a border . IIRC there used to be a way to select multiple border styles for TComboBox, but all I see now is: BorderSpacing - (TControlBorderSpacing) and the resulting combo box has no visible border. Am I missing something? Don Ziesig What widgetset ? zeljko According to the IDE build profile: gtk 2 Ok, maybe gtk2 theme does not support border around combobox.What about other non lcl gtk2 applications ? Do they have combobox border ? zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus