> Ideally "default" for the IDE font would give a sensible monospace font for
> each platform
No, “default” is def variable width font.
But yes, we need new alias for default mono font, eg “def_mono”. And I will use
it, and IDE should use it.
Courier isn’t installed on all OS. Courier New too
Seems I posted too pessimistic analysis. Too many repaints are caused by
atsynedit, and with an empty control (which only has overridden Paint to show
counter) it’s not so bad— counter is 1, only on few WS it’s 2. Sorry
Alexey
--
___
lazarus mailing
It is maybe bug which was fixed in FPC trunk, there was some Unicode issue in
3.0.4.
>
> On my system with FPJson the test is failing it failing on "bank teller
> \u00Ae ", but on when using approximately the same code with JSONTools it
> passes on both "name" and "occupation" always. What do
I suggest to use ATScrollbar from ATFlatControls, but it needs the option for
fast move- I can easily add it soon.
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
I don’t see such buttons, on Firefox.
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
Great, thanks. I hope that old files will be read ok and then saved to new
format.
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
Graeme, if VTV code is good then blurring problem can be solved - by setting
DblBuffered to false, no?
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
Completely new form.
> Do you want to embed a component into the native dialog, or to
> create a complete custom drawn font dialog?
>
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
Juha, I wanted to hook new dialog (ok, separate component) into TFontDialog.
Can I make a patch to allow such a hook? It must be very small diff which don’t
bloat the lcl.
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-
Please no? What do other developers think, also no (lcl option for universal
dialog not wanted)?
AT
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
To use your units in Lazarus, make a new package, then copy all units to a
single subdir (with the Lpk package), then add all pas units to this package.
So user needs to install this package. So all pas files will be auto found by
program if program uses this package.
AT
--
___
I turned new Ide manifest option (subj) on, so I can skip prefix, no?
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
I have an idea. Make an error in some gtk2 widget set unit. Build. Then you ll
see which part of the app requires gtk2 code.
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
I would suggest to install FpcupDeluxe, in it you have button to install cross
compilers. and then you can choose Target - Linux in Lazarus project options.
Alex
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/l
FPC has the fpJson lib, so I cannot see why he made Json module.
Suggestion for Http: name it PaxHTTP and put demos to the same repo, so
OnlinePkgManager guy can get them all.
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.laz
I suggest shorter title - Runner.
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
You can install both fpc 2 and 3, if you use the tool: fpcupdeluxe.
Alex
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
But I don’t see that IDE supports file filters for xml/json/ini, and seems
that these 3 syntaxes not activated for files on editor. Text not colored.
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazar
subj. with default=true. Reason: if F.AutoAdjustLayout called manually
in non scaled app (CudaText), then i have oversized fonts in result
form. Fonts (label, button, listbox) are scaled anyway in my app, and
form size not scaled auto (Scaled=off in proj)
--
Regards,
Alexey T
--
This is on Ubuntu 17.10, default theme, gtk2. Pucture, buttonpanel below.
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
With Laz trunk, on Win10, i cannot run app from IDE (new empty window
with imagelist+ main menu)
"No program file "" found" - when i do Run
"Launching application invalid"-- when i do Run Without Debug
exe file is compiled ok.
--
Regards,
Alexey
--
_
I have 1M lines file. CudaText cannot delete lines fast [selected 800K
lines]. FPSList has only Delete for one item.
Need DeleteRange.
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo
I found the reason, it's my bug with generic lists.
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
My workaround don't help, still AV on pasting. Both cases give AV in
fpc_ansistr_dec_ref. Here is asm window:
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
>You don't see the source code for function UTF8CharacterLength()
I don't see which place gives AV (on pasting text), is it in this^^^
func, or not. I only see last stop at ...:=UTF8CharacterLength(). Then i
removed this call and replaced it with ...:=Length(UTF8Decode(s)). now
this crash gone
User uses Win32, I use Linux gtk2 x64. FPC 3.0.0 (win) and 3.0.2 (linux).
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
User sees crash in CudaText, when he makes paste from clipboard. He
tells how to repeat crash: https://github.com/Alexey-T/CudaText/issues/1146
First i saw error in debugger in lazutf8 (UTF8CharacterLength(..)),
after Lazarus update I don't see source of crash now (only some asm dump).
--
Reg
On 08.12.2017 17:21, Werner Pamler via Lazarus wrote:
I am absolutely against renaming units
When user uses new package lzx, he adds new req in project. Then he also
can change unit names in "uses".
--
Regards,
Alexey
--
___
Lazarus mailing list
L
> FPC package 'chm' contain LZX compression routines in some files
- paslzx.pas, paslzxcomp.pas, paslznonslide.pas, lzxcompressthread.pas
It makes sense to move them to new package, and rename files! to
lzx_*.pas. I like such names with _.
--
Regards,
Alexey
--
__
- FIncrement := AIncrement;
+ if AIncrement > 0 then
+ FIncrement := AIncrement
+ else
+ FIncrement := -AIncrement;
better: FIncrement := Abs(AIncrement);
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists
On 08.12.2017 11:32, Werner Pamler via Lazarus wrote:
don't like this, I want to keep third-party packages away from Lazarus
Then maybe lazarus/components_user/ ? It's on the same level as components/.
--
Regards,
Alexey
--
___
Lazarus mailing list
It will be good, of OPM install all packages into subdir
lazarus/components/_user.
Now it uses very deep subdir which is hard to find in file manager.
_user (with _ char so it will be first in filemanager) is easy to find.
Or you can use _opm or _addons (_ char must have).
--
Regards,
Alexey
4) "package type" label misaligned with "[x]Online[x]Offline" - coz of
big Ubuntu controls.
Alex
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
3) listbox items "aggpas" and with "p" -truncated from below of item by
2pixels, coz of big Ubuntu font.
Alex
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
In this dlg it's needed 1) to paint listbox items with 3-4 pixel indent
from left.
2) "Package name" label - make v-centered near Edit field.
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/l
https://bugs.freepascal.org/view.php?id=32753
1. It is tested on Gtk2 and Win32. Gtk1 is not tested [but code is copy
pasted, 4..5 values for vert scroll - copied block with 6..7 values for
horz scroll, 6..7 is from gtk doc].
2. Maybe change issue section to "Patches"
3. you applied micro pa
https://bugs.freepascal.org/view.php?id=32717
Otherwise, this dialog is not scaled.
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
LCL don't support it.
Pls apply this diff- only constant LM_MouseHWHeel
https://msdn.microsoft.com/en-us/library/windows/desktop/ms645614(v=vs.85).aspx
Index: lcl/lmessages.pp
===
--- lcl/lmessages.pp (revision 56436)
+++ lcl/lmessa
Does LCL support mouse wheel horz scrolling? how? Ie, i have a mouse
which has wheel with horz scroll. On Linux it works in Firefox if i tilt
the wheel left/rt.
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://list
any way to center the text in a multi-line hint?
You can now apply the patch https://bugs.freepascal.org/view.php?id=32716
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
ChsDet is in IDE OnlinePackageManager, "trivial changes" aren't needed.
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
Pls see and apply it, posted long ago:
https://bugs.freepascal.org/view.php?id=27194
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
>What do others do in this situation?
I use
https://github.com/Alexey-T/ATSynEdit/blob/master/atsynedit/atstringproc_utf8detect.pas
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/l
>It's fixed in r.56413
Yes, now it's fixed this way.
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
On 12.11.2017 21:53, Alexey wrote:
Can you apply this fix? it changes only window-type-hints for
"toolwindow" BorderStyle, it's safe i think.
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org
it is very easy to implement using generics as you can see from
TIntegerList.
Good to include lists for [Int64, PtrInt, PtrUInt] to the same unit.
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-i
Thanks for this new list. Diff like
- Result:=integer(PtrUInt(FCols[aCol]))
+ Result:=FCols[aCol]
shows it's useful. It supports Longint or PtrInt or PtrUInt? Or i need
another list for PtrInt?
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazar
Here's screenshot, top border of edit is out of window. Linux gtk2.
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
I see reports about OI is always on top; I see it too. Here's simple
fix, found it becoz I made patch for these lines, window-type-hints.
--
Regards,
Alexey
Index: lcl/interfaces/gtk2/gtk2globals.pp
===
--- lcl/interfaces/gtk2/gtk2
- enable option RowSelect
Why?
Now selection is barely visible with thin frame on 1 cell.
- not sure about opt Editing, maybe disable it.
What do you mean with opt Editing?
grid.Options has goEditing.
Mattias
--
Regards,
Alexey
--
___
L
I wish that in this dialog grid
- disable option RangeSelect (select n lines)
- enable option RowSelect
- not sure about opt Editing, maybe disable it.
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazaru
Patch is ready and tested-
https://bugs.freepascal.org/view.php?id=8536
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
Can you add to FPC some example which uses this engine?
(fpc)\source\packages\fcl-base\src\fpexprpars.pp
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
>missing some features of the fpexprparser.
I couldn't find fpexprparser folders in FPC 3.0.2 and Laz- where is it?
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
https://bugs.freepascal.org/view.php?id=32653
wp wrote: >>Sorry I will not fix this one because it opens another
Pandora to add features well-established in TAChart.
Pls apply the patch. it makes several plots on one panel. What Pandora??
I don't know Pandora, I use Laz and LCL.
--
Regards,
I don't understand why in PlotFunction code we have
TextOut(ACanvas.Handle, 4, CY, PChar(L), Length(L));
Why not simple ACanvas.TextOut.
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listi
On 31.10.2017 12:41, Michael Van Canneyt via Lazarus wrote:
Hm. Somehow the use of the word 'sad' at the end reminds me of the
tweets of
the Orange Emperor...
I saw such tweets from anther man. E.g. "Today we have meeting. They
don't understand this and this. Sad!"
--
Regards,
Alexey
--
__
On 31.10.2017 12:01, Werner Pamler via Lazarus wrote:
the interesting parts are hidden by the "...", no way to expand the
dialog:
It is caused by WinAPI truncating path. i suggested to make workaround
for WinAPI, but guys declined.
--
Regards,
Alexey
--
_
>What do you think?
I think, new langs are for other tasks. Go- for web servers; Rust- maybe
concurrent or not (used for browser). JS based langs- for web. Kotlin-
for Java. 90% of new langs - for other tasks.
--
Regards,
Alexey
--
___
Lazarus mail
LCL Gtk2 app [was ok] now shows in console msg about str-constant:
user@PC:~$ cudatext -v
/usr/share/themes/Radiance/gtk-2.0/apps/mate-panel.rc:30: error: invalid
string constant "murrine-scrollbar", expected valid string constant
CudaText version 1.22.0.0
user@PC:~$
--
Regards,
Alexey
--
_
>A link to a description would be nice.
I made desc topic here:
http://wiki.freepascal.org/Lazarus_IDE_Tools#Outline
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
I see not implemented, CustomDrawn demo don't show it. ...Why you cannot
take ATListbox and make CDListbox on its base?
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
Old issue about "patch for dimmed font color for Grid.Enabled=false"
(patch wasnt applied). Maybe add
TApplicationProperties.DimmedColorOfDisabledControls ? Then we can use
it in LCL.
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.laza
On 06.10.2017 12:10, Michael Van Canneyt via Lazarus wrote:
Works fine if I do it here with an LCL app. Linux mint
It seems was a Win8/Win10 report. (I dont have monitors to test.)
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-
Is looks like LCL bug. who can confirm it?
https://github.com/Alexey-T/CudaText/issues/1108
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
Hi. I thought it would be nice change, coz of features of ATtabs:
+ pseudo tab, v dropdown menu, <> scroll arrows.
PAS icon on pas tabs, LFM icon on form tabs, etc.
But minus of this: not native tabs look. On Win10 look is like native,
on Linux/Mac not. Plus: is same look on Win/Lin/Mac.
--
IMO you need:
- Latex files (with formulas)
- lib which can render latex to HTML
- lib which can show HTML on a form (several exist for fpc)
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
On 30.09.2017 22:44, Michael Van Canneyt via Lazarus wrote:
Remove the clear statement in the setter ?
It clears FTabItems, which you just assigned. That's pointless.
Also, if FTabItems equals AValue, it will clear the AValue
hmm, setter don't clear FTabItems, it clear another FTabList [TList]
On 30.09.2017 20:20, Vojtěch Čihák via Lazarus wrote:
ATTabs should read Items from *.lfm. But it creates new instance of
TStringList instead. New instance is created from existing tabs,
therefore it is empty.
I changed getter. it uses now FTabItems (field) and fills it on each
GetItems. But
Hi. I added to ATTabs prop Items: TStrings. It has getter/setter. It has
registering in IDE.
- in designer, OI can set Items and tabs appear
- if i run app, tabs dont appear- ??
- if I restart IDE, app's LFM looses Items- ??
https://github.com/alexey-t/attabs
--
Regards,
Alexey
--
_
User reported this bug here:
https://github.com/Alexey-T/CudaText/issues/1101
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
On 12.09.2017 21:25, Michael Van Canneyt via Lazarus wrote:
Why would people see filename conflicts ? None of these files exist yet.
because files like
dlginputcombo.pp, fradbfdata.*, frmresizeelements.* may exist in BIG app.
--
Regards,
Alexey
--
___
>Definitely not.
It is good to do (some users will see filename conflicts in big apps).
no big apps ready on FPRep yet.
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
Hi
It is new. Please rename (it's easy for new component) all files:
usually its good with one prefix. E.g. fprep_*.*.
And form resources: 18 LFM files, 29 pas files. Pls rename with prefix
too, to avoid LFM conflicts.
--
Regards,
Alexey
--
___
L
>Why would you want that?
LCL can have global var for FormTitle. this var can be used by all
forms. so all forms will be "themed". if programmer changes this glob
var (like we can do with THintWindow) then all windows have themed
window title.
--
Regards,
Alexey
--
___
Maybe ok idea? make class TFormTitle. it is some small (by Y) form which
is embedded into Form (form which has FormTitle property set). When prop
FormTitle set, OS border hides and obj of FormTitle inserted into TOP of
form (it looks like OS window caption).
When this FormTitle is used, form h
function StrPCopy (Dest: PRegExprChar; const Source: RegExprString):
PRegExprChar;
var
i, Len : PtrInt;
begin
Len := length (Source); //###0.932
for i := 1 to Len do
Dest [i - 1] := Source [i];
Dest [Len] := #0;
Result := Dest;
end; { of function StrPCopy
-
not sure it is a bug. set Tree.SortType to stText. tree is sorted OK.
now clear it, add many new items ==> items not sorted. so AlphaSort not
called after adding items.
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http
with crNoDrop cursor. On Linux gtk2 I see cursor is 2x-3x bigger than I
seen it before, 2-3 months ago.
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
There is such procedure. why not to rewrite it via call to
AutoAdjustLayout. to not have "dup" code.
procedure TControl.ChangeScale(Multiplier, Divider: Integer);
var
R: TRect;
begin
if Multiplier <> Divider then
begin
ScaleConstraints(Multiplier, Divider);
if not ParentFont then
On 16.08.2017 17:36, Martin Frb via Lazarus wrote:
There is ONE character, that comprises more than 200 codepoints.
Only way to store such a char is in a type of dynamic size (aka string)
Interesting inf, thanks; so that my idea is not ok for new FPC type. it
is ok only for some class, which a
On 16.08.2017 15:30, Martin Frb via Lazarus wrote:
A char can be composed of several combining code points (each of them
afaik, in the 32 bit range).
So a char can have 96 or more bits. (And not all of them have a
combined form).
See my prev post: i see that each S[i] good to be like QWord (
On 16.08.2017 12:51, Mattias Gaertner via Lazarus wrote:
When you propose a new string type "dynamicstring" you have to define these
operators.
BTW, it will be good to have "Cstring" (or another name, not
"dynamicstring") :
- [] operator is 0-based like Python/C
- s[i] is DWORD per char (f
Thanks, it didn't compile, this this did:
function SSwapEndian(const S: UnicodeString): UnicodeString;
var
i: integer;
p: PWord;
begin
Result:= S;
if S='' then exit;
UniqueString(Result);
P:= PWord(@Result[1]);
for i:= 1 to Length(Result) do
begin
P^:= SwapEndian(P^);
Inc(
Pls tell can I optimize this func? E.g. calc each char's PWord and
read/write word.
function SSwapEndian(const S: UnicodeString): UnicodeString;
var
i: integer;
begin
Result:= S;
for i:= 1 to Length(Result) do
Result[i]:= WideChar(SwapEndian(Ord(Result[i])));
end;
--
Regards,
Alexey
TCustomControl.Caption setter
(ie TControl.SetText)
misses Invalidate call.
So, my ATButtons (ATButton based on CustomControl) miss
visual update, when user changes app i18n.
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
Problem: CudaText editor opens 400K file at the end, syntax parser is
slow, I hold "d" char. expected: "d" or "d"*n chars appears from time to
time. Eg each 1-2 seconds. Seen:
"d"
chars appears each 5-6 seconds. Not
Old from me, 2008 year, Delphi only
http://atviewer.sourceforge.net/atimagemap.htm
Alex
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
>Therefore it makes no sense to introduce a general
ComparePoints-function.
Yes, it is right, func not needed. And my case [compare source editor x/y
coords] is rare.
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http
First start by defining what ComparePoints is supposed to measure or
compare.
yes, of course: compare source editor x/y positions. Ie, it is
CompareCoords.
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists
On 26.07.2017 18:11, Graeme Geldenhuys via Lazarus wrote:
ComparePoints() returning a Integer is not a very friendly return type
either,
Hm, in my app Int makes sense: i need to compare Points in binary
search, and see: >, <, =.
--
Regards,
Alexey
--
I think LCL has many Compare funcs, but misses func for TPoint. Here
it's comparing x/y screen coordinates
function ComparePoints(P1, P2: TPoint): integer;
begin
if (P1.X=P2.X) and (P1.Y=P2.Y) then exit(0);
if (P1.Y>P2.Y) then exit(1);
if (P1.YP2.X) then exit(1) else exit(-1);
end;
-
How did you manage to create a mem leak there?
If not using try-finally, and exception, Bitmap will not be freed.
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
gtk2proc.inc, procedure DrawImageListIconOnWidget: it allocates Bitmap +
DC. Pls add try-finally for Bitmap; and (not sure) try-finally for DC:
finally
ReleaseDC(HDC({%H-}PtrUInt(DestWidget)),DestDC);
end;
finally
Bitmap.Free;
end;
--
Regards,
Alexey
--
__
On 24.07.2017 04:07, Darius Blaszyk via Lazarus wrote:
This tool extracts text from comments and string literals in source
code files and checks them for spelling. Very useful
It is already doable in CudaText editor:
- install plugin SpellChecker [not ready for Win64]
- open Pas file, call sp
Dmitry, i searched for pmXor and i see it's not implemented on Mac too?
And it's used in Grids, 3 matches.
+Search for "pmXor" in "/home/user/lazarus/lcl" (7 matches in 4 files)
: #7
: #2
<(162)>: pmXor = FPCanvas.pmXor;
<(162)>: pmXor = FPCanvas.pmXor;
For this you have the methods in TPopupMenu/TMainMenu. You should be
able to link your global events there.
Change of each PopupMenu +MainMenu is not nice: theming of all menus at
once in nicer, global option. If app does theme for main menu, why not
to change other popupmenus.
--
Regards,
A
Ondrej, thanks for adding this.
Pls tell: is it possible to make MenuItems themes (application wide in
all menus, or MainMenu)? this needs global OnDrawItem which will be used
by LCL. Can you add it?
--
Regards,
AlexeyT
--
___
Lazarus mailing list
Dmitry, can you see, pls, how to add the same on Cocoa WS. Maybe easy...
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
This must show def-button Retry, as button#1, but shows def-button
Cancel. Is it a bug? Linux gtk2 x64
if MsgBox{simple wrapper}(msgCannotSaveFile+#10+FFileName,
MB_RETRYCANCEL or MB_ICONERROR or MB_DEFBUTTON1) = ..
--
Regards,
Alexey
--
___
L
1 - 100 of 219 matches
Mail list logo