Re: [Lazarus] In trunk, cannot run app from IDE

2017-12-20 Thread AlexeyT via Lazarus
>Are you sure you use the latest trunk? Updated now, still same bug, picture: -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] IDE menu editor - icons in dropdown are grayed

2017-12-19 Thread AlexeyT via Lazarus
Not sure it is bug. i added icon to mainmenu top items, and to dropdown items (e.g. File and File/Open). Menu editor: icon for File is yellow, ok. icon for File/Open is grayed, not ok. must be same icon. gtk2, Laz trunk. -- Regards, Alexey -- ___

Re: [Lazarus] In trunk, cannot run app from IDE

2017-12-20 Thread AlexeyT via Lazarus
 Ops, it's fixed. Alex -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] IDE menu editor - icons in dropdown are grayed

2017-12-20 Thread AlexeyT via Lazarus
>Do you mean 17.04? Yes. i use non default desktop: Cinnamon. Controls theme: adwaita. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Wish about Lazarus readme

2017-12-10 Thread AlexeyT via Lazarus
, because ...? because then users can find authors of Palette icons, menu icons, dialogs icons, and tell them feedback. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] Trunk diff about compiling with fpc 2.6

2017-12-10 Thread AlexeyT via Lazarus
+ {$IF FPC_FULLVERSION>=3} if TCharacter.IsSurrogate(WideChar(OrgCharCode)) then + {$ELSE} + if False then + {$ENDIF} WinProcess := True --this can be shorted, with one {$if..} {$endif}. -- Regards, Alexey -- ___ Lazarus mailing list

[Lazarus] Wish about Lazarus readme

2017-12-09 Thread AlexeyT via Lazarus
On 10.12.2017 01:50, Vojtěch Čihák via Lazarus wrote: I didn't know about Ally. Wish for contributions.txt of Lazarus: separate section for picture painters: separate it with caption "Graphic artists" and write like this: Ally (IDE pallette icons) FTurtle (IDE command icons) --

[Lazarus] FormStyle=fsStayOnTop: broken?

2018-04-28 Thread AlexeyT via Lazarus
Win32 and gtk2 app cannot show form on top. Pls confirm somebody? -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] IDE form visibility bug on Linux

2018-05-13 Thread AlexeyT via Lazarus
Ubuntu latest, gnome desktop - open IDE (two windows opened: main and messages, some test proj loaded) - click "minimize" icon on main wnd - restore wnd again: click Ubuntu sidebar lazarus icon - previews appear in small rects - choose main wnd - main wnd restored - click "Open" toolbar button

Re: [Lazarus] badge/pill/chip component ?

2018-05-05 Thread AlexeyT via Lazarus
Hi I can (want) to write ATBadge component. Planned props: AutoSize Color ColorInner (for inner colored text) Font FontInner Radius (1..50 in %) Caption CaptionInner Alex -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

[Lazarus] IDE compiling- disable recents

2018-05-17 Thread AlexeyT via Lazarus
During compiling state ('compiling...' in caption) IDE must disable choosing of Recent files/projs in the mainmenu + toolbar. recent choosing don't work. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

[Lazarus] IDE multi-carets issue

2018-05-20 Thread AlexeyT via Lazarus
I have 4 carets on lines     c.SetValue('/dialog/fl_btm/posx', FFormFloatBottom.Left);     c.SetValue('/dialog/fl_btm/posy',  FFormFloatBottom.Top);     c.SetValue('/dialog/fl_btm/sizex', FFormFloatBottom.Width);     c.SetValue('/dialog/fl_btm/sizey', FFormFloatBottom.Height);

[Lazarus] IDE multi-caret options wishes

2018-05-21 Thread AlexeyT via Lazarus
In General tab of options we have 3 opts for multicarets. 1a) fix one of them- "multi caret" - "multi-caret" like others 1b) place all 3 under separator line () below, name group like "Multi-caret". it is good to see all opts related to multi-crt. 1c) better name for "Multi caret

Re: [Lazarus] IDE multi-caret options wishes

2018-05-22 Thread AlexeyT via Lazarus
Okay,  so better use "text cursor" and "mouse pointer". >I thought it was the keyboard cursor and mouse pointer ? -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] Gtk2 CheckListbox: items checked on simple click

2018-05-22 Thread AlexeyT via Lazarus
If i click items on text area (much rigther than checkbox), checkbox toggles. It's not good for UI, Win32 works not so. I see it as valid issue, pls fix? -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

[Lazarus] Strange code in fpc syscodepages.inc

2018-05-23 Thread AlexeyT via Lazarus
//break after exit function CodePageToCodePageName(cp: TSystemCodePage): AnsiString; .. begin ...    if FoundCp = cp then     begin   Exit(CodePageNames[I].name);   Break;     end; -- Regards, Alexey -- ___ Lazarus mailing list

Re: [Lazarus] IDE multi-caret options wishes

2018-05-22 Thread AlexeyT via Lazarus
You're right, but: IDE is for major audience, so need to use major terms, of current time: cursor is mouse cursor. Thanks for your work on github Lazarus mirror.. PS. Russian people (age<35) don't know what are mainframes, Unix workstations: so cursor is always mouse cursor :) On

[Lazarus] JCF fails on modile NN.mmm

2018-06-09 Thread AlexeyT via Lazarus
JCF gives error window on such a module, AG.Logs.pas (unit AG.Logs). Its known issue? -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] SynEdit lexer dont hilite & char

2018-06-11 Thread AlexeyT via Lazarus
MartinFb, are you sure & char must not be hilited as .,:= etc? it's black here. procedure TRTBSource.SaveToFile(:string); var   Data:TStrings; begin Data:=TStringList.Create; Data.Text:=Text; Data.SaveToFile(); FreeAndNil(Data); end; -- Regards, Alexey --

[Lazarus] TApplication.DoubleBuffered

2018-06-03 Thread AlexeyT via Lazarus
  TApplicationType = (     atDefault, // The widgetset will attempt to auto-detect the device type     atDesktop, // For common desktops and notebooks   TApplicationExceptionDlg = (     aedOkCancelDialog,  // Exception handler window will be a dialog with Ok/Cancel buttons    

[Lazarus] IDE option to disable horz mouse wheel scroll

2018-06-25 Thread AlexeyT via Lazarus
With new Horz wheel scroll events, I get not nice usage of IDE: my touchpad gives unneeded horz scroll events and I got some unneeded horz scrolls in source editor. (reason is finger moving on touchpad.) Need option to disable horz wheel scroll. -- Regards, Alexey --

[Lazarus] Clipboard method needed to clear cache

2018-05-02 Thread AlexeyT via Lazarus
LCL uses clipboard cache to support all clp formats on all OS, even if OS don't support some. In *CudaLister plugin for Total Commander* [based on CudaText parts], I need method to clear this cache. Clipboard.Clear is not ok [i need contents of OS clp]. Method needed to solve this issue:

[Lazarus] LCL TImageList method wish

2018-04-26 Thread AlexeyT via Lazarus
Ondrej, this patch https://github.com/graemeg/lazarus/commit/0ff493e8cf2b6e4f1c971561db87d2579396eacd makes the same for 4 WS'es: it gets bitmap from imagelist for some resolution. Wish: make TImageList.GetBitmapForResulution and make this patch simpler. -- Regards, Alexey --

[Lazarus] Note about LCL GetDefaultGlyph

2018-05-01 Thread AlexeyT via Lazarus
+ +function GetDefaultGlyph(ResourceName: string; ScalePercent: Integer = 100): TCustomBitmap; +begin +  Result := TPortableNetworkGraphic.Create; +  if ScalePercent<>100 then +    ResourceName := ResourceName+'_'+IntToStr(ScalePercent); +  Result.LoadFromResourceName(hInstance, ResourceName);

[Lazarus] LConvEncoding- why inline func?

2018-05-03 Thread AlexeyT via Lazarus
procedure InternalUTF8ToCP(const s: string; TargetCodePage: TSystemCodePage;   SetTargetCodePage: boolean;   const UTF8CharConvFunc: TUnicodeToCharID;   out TheResult: RawByteString); inline; begin   if not Assigned(UTF8CharConvFunc) then   begin     TheResult:=s;     SetCodePage(TheResult,

Re: [Lazarus] new patch- Cocoa- SetScrollInfo funcs

2017-12-30 Thread AlexeyT via Lazarus
On 30.12.2017 20:51, Dmitry Boyarintsev via Lazarus wrote: What line gives the warning? fpc usually gives it (for my code, when i use "var" params). -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

Re: [Lazarus] new patch- Cocoa- SetScrollInfo funcs

2017-12-30 Thread AlexeyT via Lazarus
+procedure NSScrollerGetScrollInfo(docSz, pageSz: CGFloat; rl: NSSCroller; Var ScrollInfo: TScrollInfo); 2) maybe better name parameters like ADocSize, APageSize, ARoller, AScrollInfo like in LCL -- Regards, Alexey -- ___ Lazarus mailing list

[Lazarus] new patch- Cocoa- SetScrollInfo funcs

2017-12-30 Thread AlexeyT via Lazarus
+procedure NSScrollerGetScrollInfo(docSz, pageSz: CGFloat; rl: NSSCroller; Var ScrollInfo: TScrollInfo); Pls use "out" instead of "var", because with "var" fpc gives warnings about not inited parameter -- Regards, Alexey -- ___ Lazarus mailing

[Lazarus] Package filenames with _package

2018-01-05 Thread AlexeyT via Lazarus
1. packager/globallinks/lclextensions_package-0.6.1.lpl 2. +1 −0

[Lazarus] Carbon WS strange crash

2018-01-06 Thread AlexeyT via Lazarus
I test CudaText carbon build. i do this: - call Plugins/ AddonManager/ Install - choose plugin "Config Toolbar", install it, close app then - call Plugins/ AddonManager/ Update (list of plugins) - check here item of Config Toolbar, OK, plugin updates but app shows er with SIGBUS in

Re: [Lazarus] Package filenames with _package

2018-01-07 Thread AlexeyT via Lazarus
I am glad to read this, I also think the _package is completely redundant. many Laz packages have suffix anyway: Dsgn, Pkg, pkg, maybe others. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

Re: [Lazarus] Package filenames with _package

2018-01-07 Thread AlexeyT via Lazarus
I don't agree, that's what file extension is for. Filtering and sorting should easily be done to distinguish package files from others. There is one moment: ATSynedit has - atsynedit.pas (main unit) - atsynedit_package.pas (with suffix) You see suffix is useful here. -- Regards, Alexey

Re: [Lazarus] Package filenames with _package

2018-01-07 Thread AlexeyT via Lazarus
conflicts with a unit in the package. IMO it would be better to prefix it automatically. I agree: better to auto add prefix or suffix (i like suffix _package). good wish. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

[Lazarus] LazUtils/LazUtf16 - why "widestring"

2018-01-08 Thread AlexeyT via Lazarus
function UTF16CharacterLength(p: PWideChar): integer; function UTF16Length(const s: widestring): PtrInt; overload; function UTF16Length(p: PWideChar; WordCount: PtrInt): PtrInt; overload; function UTF16Copy(const s: UnicodeString; StartCharIndex, CharCount: PtrInt): Unicodestring; function

Re: [Lazarus] Extended filter for Code Completion

2018-01-08 Thread AlexeyT via Lazarus
patch makes red hilite of current ID in the listbox. Can you tell how to make listbox 2x-3x wider? it's narrow. Please test everybody. Does it have negative side-effects of some kind? -- Regards, Alexey -- ___ Lazarus mailing list

[Lazarus] IDE needs lexers JSON, XML

2018-01-10 Thread AlexeyT via Lazarus
IMO it's good to install JSON/XML syntaxes in IDE. many apps have res in such formats. Useful to edit files in IDE. PS. I found that SynEdit is bad optimized for 4M length lines in XML files. editor shows freezes. ATSynEdit is better optimized for 4M len lines - now -- Regards, Alexey --

[Lazarus] Linux gtk2: TEdit.Color not changed

2018-01-24 Thread AlexeyT via Lazarus
Hi, back color of TEdit cannot change, to dark [runtime and designtime]. Font.Color changes ok. Ubuntu 17.4, Cinnamon DE, controls theme "Adwaita". -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

[Lazarus] IDE Completion window border

2018-01-18 Thread AlexeyT via Lazarus
Window has 1pixel black border. Wish: make border MedGray or LiteGray color, not sure option is needed here, so just change this color to liter. (reason: black border is too contrast with white backgnd). -- Regards, Alexey -- ___ Lazarus mailing

Re: [Lazarus] IDE needs lexers JSON, XML

2018-01-11 Thread AlexeyT via Lazarus
 Thank you, now i understand. Yes, xml/ini syntaxes work, only Im confused because ini default hiliting is all black (not nice colors for elements in def config). When I open an XML or INI file, the correct highlighters are picked up. Not for JSON, though. -- Regards, Alexey --

[Lazarus] IDE, XML syntax hiliting of

2018-01-11 Thread AlexeyT via Lazarus
It is not ok: brackets hilite with one color, inside text in another. In almost all text editors, this hilites as single token. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

Re: [Lazarus] Hi-dpi cursors in app?

2018-02-03 Thread AlexeyT via Lazarus
>But I assume you have to create several .cur files (one file for every resolution you want to support) I don't know how to make .cur file for bigger DPI. It is bitmap with big size? it will paint same way too. -- Regards, Alexey -- ___ Lazarus

[Lazarus] Now some my icons paint from ImageList incorrect

2018-02-03 Thread AlexeyT via Lazarus
In Laz trunk, 16x16 icons paint incorrect, stretched by x. Picture. Some icons paint ok, but 2nd toolbar icons - incorrect. Alex -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

[Lazarus] Hi-dpi cursors in app?

2018-02-02 Thread AlexeyT via Lazarus
Ondrej, I have cursors https://github.com/Alexey-T/ATSynEdit/tree/master/atsynedit/res they look very bad in win10 scale 150%. What to do here? -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

[Lazarus] fpGUI WS update

2018-02-03 Thread AlexeyT via Lazarus
https://bugs.freepascal.org/view.php?id=32647 is also fixed? cannot test yet. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] IDE loose func default param on class completion

2018-02-13 Thread AlexeyT via Lazarus
On class completion (ctrl+shift+c?) I'm on method declaration in "implementation". method decl in "interface" has "default" values of params. and this hotkey changes line in "interface" to same as in "impl" and default values - are lost... :-\ eg   TATMarkers = class   public    

[Lazarus] Windres compiler not found by IDE

2018-02-09 Thread AlexeyT via Lazarus
atsynedit.pas(5691,1) Error: resource compiler "windres" not found, switching to external mode I tried to change {$r nnn.res} to {$r nnn.rc} and got this. How to fix it? Laz 1.9 trunk, FPC 3.0.2, Linux x64 -- Regards, Alexey -- ___ Lazarus mailing

[Lazarus] Multi-resolution cursors don't work on Win

2018-02-10 Thread AlexeyT via Lazarus
Hi CudaText app now has .cur files with multi resolition. each cursor has 3 sizes (32x, 48x, 64x, ResourceHacker shows it in cudatext.exe) But still Win10 hi-dpi mode (150%) don't use these new cursor sizes, ie middle mouse click - shows old 32x32 cursor resized (all 5 of them on mouse

Re: [Lazarus] Multi-resolution cursors don't work on Win

2018-02-10 Thread AlexeyT via Lazarus
 Sorry, it was duplicated cursors [one hi-dpi set and other set not hi-dpi, same INT values]. Solved. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] Show crash info to user (MadExcept)

2018-02-08 Thread AlexeyT via Lazarus
Hi In Delphi i used lib MadExcept. I need similar lib in Laz too. To show to user reason of crash- src filename, line number, stack How to do it? -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

Re: [Lazarus] TImage drag of big image

2018-02-25 Thread AlexeyT via Lazarus
I now see it's not needed in TImage, it must be component TScrollbox+TImage. sorry. Alex -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] Unix Printer Props dlg: empty Margins tab

2018-07-25 Thread AlexeyT via Lazarus
this tab is a mistake, it is not filled in this dialog. Tiny patch removes it. AFAIK- Unix CUPS don't support margins at all. -- Regards, Alexey Index: components/printers/unix/udlgpropertiesprinter.lfm === ---

[Lazarus] Unix Select Printer dlg: tab-order fix

2018-07-26 Thread AlexeyT via Lazarus
this fixes weird tab-order. -- Regards, Alexey Index: components/printers/unix/udlgselectprinter.lfm === --- components/printers/unix/udlgselectprinter.lfm (revision 58637) +++ components/printers/unix/udlgselectprinter.lfm

[Lazarus] Unix Select Printer dlg: fix i18n

2018-07-26 Thread AlexeyT via Lazarus
some more work needed for i18n, seems, for captions of controls. maybe Maxim can help? this is for string consts in form. -- Regards, Alexey Index: components/printers/printer4lazstrconst.pas === ---

[Lazarus] Fix for LCLProc

2018-08-14 Thread AlexeyT via Lazarus
function KeyAndShiftStateToKeyString(Key: word; ShiftState: TShiftState): String;   if ssCtrl in ShiftState then AddPart(ifsCtrl);   if ssAlt in ShiftState then AddPart(ifsAlt);   if ssShift in ShiftState then AddPart(ifsVK_SHIFT);   if ssMeta in ShiftState then     {$IFDEF LCLcarbon}    

[Lazarus] LCLProc.KeyAndShiftStateToKeyString needs param

2018-08-14 Thread AlexeyT via Lazarus
function KeyAndShiftStateToKeyString(Key: word; ShiftState: TShiftState): String; Maxim, can you add here param Localized too? it can be 3rd param with default "true". -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

Re: [Lazarus] Carbon: same problem with Enabled=false as GTK had

2018-08-26 Thread AlexeyT via Lazarus
Luiz, this patch fixes it. Pls apply ASAP. Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] ATSynEdit gives OnKeyDown twice per each key

2018-08-28 Thread AlexeyT via Lazarus
Strange issue on Linux gtk2. (OK on Win32). In simple demo of ATSynEdit, I get 2 calls of OnKeyDown per each typed letter, e.g. "d". Why is it so? ATSynEdit just uses TWinControl's OnKeyDown, -- Regards, Alexey -- ___ Lazarus mailing list

Re: [Lazarus] IDE makes not nice wrap of long line

2018-08-28 Thread AlexeyT via Lazarus
On 28.08.2018 21:26, Mattias Gaertner via Lazarus wrote: Tools / Options / Codetools / Line splitting Thanks. but then Preview- here- works incorrect - it shows always ); at then end of line, even if I have "[ ] Brackets". Picture. -- Regards, Alexey --

[Lazarus] IDE makes not nice wrap of long line

2018-08-28 Thread AlexeyT via Lazarus
From my options I get sometimes such wrapped line (of auto inserted method implementation when I press "complete class" hotkey) procedure TfmMain.EditKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState   ); begin My wish: don't wrap ');' to next line, always keep at at prev line. --

[Lazarus] Assembler window - Edit is clipped, gtk2

2018-08-29 Thread AlexeyT via Lazarus
screenshot: -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] Carbon: same problem with Enabled=false as GTK had

2018-08-26 Thread AlexeyT via Lazarus
hi GTK2 is fixed, now Enabled=false gives OK look. But problem still present on Carbon: controls always enabled. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Convert record to JSON?

2018-07-20 Thread AlexeyT via Lazarus
On 20.07.2018 20:33, Bo Berglund via Lazarus wrote: So I have two issues here: 1) It seems like there is no RecordToJSONString method only ObjectToJSONString. No function; I was suggesting to make it (func) to your record type (each rec type has its new function). So record type will convert

[Lazarus] FileUtils.DeleteDirectory help

2018-07-21 Thread AlexeyT via Lazarus
Pls add a comment to FileUtil.DeleteDirectoty() about 2nd parameter OnlyChildren. my guesses were: - delete only subitems of dir, of one level, but don't delete dir - delete only subitems, of ALL levels, but leave source dir - delete ALSO subitems of ALL levels I still cannot guess it. --

[Lazarus] IDE icon "defaults", old icon "browse"

2018-09-01 Thread AlexeyT via Lazarus
new icon "defaults", pls use it also in: - Obj Inspector - 2 "use default" buttons - Messages window - "lazarus default" button For the icon "browse" we can use it in many Options items: I filtered by "..." and found many buttons. E.g. "FPDoc" page has such icon on a button. --

Re: [Lazarus] IDE icon "defaults", old icon "browse"

2018-09-01 Thread AlexeyT via Lazarus
Now fpc 3.0.4 shows ide compile err. "Operator + is not overloaded for const string".   lisTheFileIsNotALazarusProjectCreateANewProjectForThi =     +'The file "%s" is not a Lazarus project.'     +'%sCreate a new project for this "%s"?'; -- ___ Lazarus

[Lazarus] IDE options - Colors need new layout

2018-09-01 Thread AlexeyT via Lazarus
Editor- Display- Colors. with Synedit area. why bad? bottom part with 4 checkbuttons is nasty. how to redo? a) split "Priorities" controls (4 big listboxes with SpinEdits) to new sub-tab, under Colors. b) split "Colors" part too? not sure. I don't see logic in this page. c) replace 1st two

[Lazarus] IDE options - unneeded button

2018-09-01 Thread AlexeyT via Lazarus
Editor- Display- Options- button "use syntax highlight" on the left top corner. IMO not needed at all, just use hilite always. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

[Lazarus] Cosmetically fix HeaderSrc const

2018-07-13 Thread AlexeyT via Lazarus
IMO such const will be nicer to read in package files. so I fixed it. before it was like { ddd    ddd } Now it's like // dd // dd -- Regards, Alexey Index: packager/packagesystem.pas

Re: [Lazarus] Windows 10 execution problem for my application...

2018-01-19 Thread AlexeyT via Lazarus
Is this a case of extreme vetting UAC? I am running as a normal user. What you must do is rightclick the exe file, and in Explorer dlg, call button "unlock app" or smth. Default is locked state, so OS makes limits. -- Regards, Alexey -- ___

[Lazarus] Windows touch input

2018-01-21 Thread AlexeyT via Lazarus
How does Laz support touch input [e.g. on Surface from MS]. Where to read about it in wiki? -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Special Request: Theme entire IDE support

2018-03-09 Thread AlexeyT via Lazarus
 >theme the entire Lazarus IDE? Big problem with scrollbars: Treeviews, Listboxes, Listviews, Synedits. I made big work to theme scrollbars in CudaText. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

[Lazarus] Call context menu in my component

2018-03-10 Thread AlexeyT via Lazarus
Hi. I try to call context menu inside ATSynEdit: - DoContextMenu(...)- does nothing - Perform(LM_CONTEXTMENU, 0, 0)- does nothing - WMContextMenu() must work but I need TMessage param for it, how to get it? -- Regards, Alexey -- ___ Lazarus mailing

[Lazarus] Suggest LCL refactor for ShowContextMenu

2018-03-10 Thread AlexeyT via Lazarus
Maybe it's good to have LCL method to show context menu, w/o using Perform(LM_contextmenu,...). Name it ShowContextMenu(X, Y) - method must be main part of TControl.WMContextMenu procedure TControl.WMContextMenu(var Message: TLMContextMenu); var   TempPopupMenu: TPopupMenu;   P: TPoint;  

Re: [Lazarus] Special Request: Theme entire IDE support

2018-03-10 Thread AlexeyT via Lazarus
On 10.03.2018 18:53, zeljko via Lazarus wrote: But again I've found scrollbars problematic since they look ugly when they're completely drawn by stylesheet :) I thinked about how to replace LCL scrollbas with ATScrollbar. Ie some LCL change which hooks SetScrollInfo too. Maybe it's possible

[Lazarus] LazUtf16.IsUTF16CharValid ok?

2018-04-09 Thread AlexeyT via Lazarus
function IsUTF16CharValid(AChar, ANextChar: WideChar): Boolean; begin   if AChar = #0 then Exit(False);   Result := ((AChar >= #$D800) and (AChar <= #$DBFF)) and not ((ANextChar >= #$DC00) and (ANextChar <= #$DFFF));   //Result := (Word(AChar) in [$D800..$DBFF]) and not (Word(ANextChar) in

[Lazarus] Suggestion for Pascal SynEdit syntax from SublimeText

2018-04-05 Thread AlexeyT via Lazarus
Sublime hilites names after procedure/function (also need: constructor/destructor) with special color. Good to have in Lazarus. It's nice. Screenshot: https://postimg.org/image/iho2n957b/ -- Regards, Alexey -- ___ Lazarus mailing list

[Lazarus] TIdleTimer doc

2018-04-05 Thread AlexeyT via Lazarus
>AutoEnabled - if True, Timer is automatically enabled >Interval - The Interval (in milliseconds) for which the timer is to run (Interval : TTimer, TIdleTimer) I suggest to change: AutoEnabled - allows to use properties AutoStartEvent, AutoEndEvent, i.e. automatically start/stop timer, when

[Lazarus] Text for TIdleText in OI

2018-04-04 Thread AlexeyT via Lazarus
- AutoEndEvent - the event that causes the automatic end of the timer what is "end of timer"? Pls write "interrupt of timer tick" or "disabling of timer". -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

[Lazarus] TmacOSFormProp name

2018-04-17 Thread AlexeyT via Lazarus
@Dmitry I know that OS name is "macOS". but I suggest component name with caps M, TMacOSFormProp. or better TMacFormProp. reason: new component name "macOSFormProp1" with lowercase m is not nice. TMacFormProp reads nicer that TMacOSFormProp, "OS" no need, all get idea that it's macOS. --

[Lazarus] Autocompletion - ":" char spaces

2018-04-21 Thread AlexeyT via Lazarus
In the pic you see that some vars shown with " : ", and some with ":", different number of spaces near ":". Pls make one style. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

[Lazarus] IDE dialogs bugs

2018-04-24 Thread AlexeyT via Lazarus
@Graeme The "Source -> Enclose in IFDEF" dialog comes to mind. The Package windows too. Some of these I have tweaked locally to suite my needs better Pls, list issues [easy] with all IDE dialogs- i will try to fix em. -- Regards, Alexey -- ___

[Lazarus] Unix PageSetupDialog border fix

2018-04-24 Thread AlexeyT via Lazarus
fix for BorderStyle, dialog was resizable and preview rect is not resizable (dont fit to big size)- looks bad. -- Regards, Alexey Index: components/printers/unix/udlgpagesetup.lfm === --- components/printers/unix/udlgpagesetup.lfm

[Lazarus] Printers PageSetupDialog margin default

2018-03-17 Thread AlexeyT via Lazarus
I don't know how to set "default" for new props of PageSetupDialog- MarginNNN and MinMarginNNN and PageWidth, PageHeight. Currently set to some int, but Delphi wiki tells they dont have default (missed "default"). So need to del default? -- Regards, Alexey --

[Lazarus] IDE Scout issue

2018-10-14 Thread AlexeyT via Lazarus
https://bugs.freepascal.org/view.php?id=34383 just a reminder. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] Forms.pp function error?

2018-10-16 Thread AlexeyT via Lazarus
function ShiftStateToKeys(ShiftState: TShiftState): PtrUInt; begin   Result := 0;   if ssShift  in ShiftState then Result := Result or MK_SHIFT;   if ssCtrl   in ShiftState then Result := Result or MK_CONTROL;   if ssLeft   in ShiftState then Result := Result or MK_LBUTTON;   if ssRight  in

Re: [Lazarus] Forms.pp function error?

2018-10-16 Thread AlexeyT via Lazarus
On 16.10.2018 09:56, Michael Van Canneyt via Lazarus wrote: There does not need to be if there is no corresponding MK_nnn value ? What would be the MK_nnn value for ssAlt ? We can  add in, LCLType.pp: const   // Mouse message key states   MK_LBUTTON  = 1;   MK_RBUTTON = 2;   MK_SHIFT = 4;  

Re: [Lazarus] Forms.pp function error?

2018-10-16 Thread AlexeyT via Lazarus
Value $400 makes sense. And also this must be changed then: function KeysToShiftState(Keys: PtrUInt): TShiftState; it uses same constants. Alex -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] IDE Restriction Browser layout patch

2018-10-18 Thread AlexeyT via Lazarus
Patch adds BorderSpacing (6) for 3 main controls on the form. -- Regards, Alexey Index: ide/restrictionbrowser.lfm === --- ide/restrictionbrowser.lfm (revision 59319) +++ ide/restrictionbrowser.lfm (working copy) @@ -7,25 +7,29 @@

[Lazarus] App UI scaling idea

2018-11-01 Thread AlexeyT via Lazarus
I saw in some apps an option: scale UI - 100%..300%. Eg in Telegram. Can it be idea for LCL? Can u add global variable, GlobalScalingPercents, which is affected by OS PixelPerInch, but also can be affected by app? App can give option like in Telegram. -- Regards, Alexey --

[Lazarus] Micro optimization for LazUtils

2018-10-26 Thread AlexeyT via Lazarus
added 2 inline's  + fixed for loop. -- Regards, Alexey Index: components/lazutils/fpcadds.pas === --- components/lazutils/fpcadds.pas (revision 59355) +++ components/lazutils/fpcadds.pas (working copy) @@ -25,24 +25,21 @@

[Lazarus] Patch for MK_ALT

2018-10-26 Thread AlexeyT via Lazarus
revised patch (ignore prev message about "Forms.pp function error"). Needs some testing on Carbon/Cocoa, because MK_ALT const is defined in Mac WS'es. -- Regards, Alexey Index: lcl/interfaces/carbon/carbonproc.pp === ---

[Lazarus] More inline's for LazUtils

2018-10-27 Thread AlexeyT via Lazarus
patch adds inline to NN tiny functions. -- Regards, Alexey Index: components/lazutils/lazutf8.pas === --- components/lazutils/lazutf8.pas (revision 59373) +++ components/lazutils/lazutf8.pas (working copy) @@ -67,10 +67,10 @@

[Lazarus] Forms.pp function error?

2018-10-26 Thread AlexeyT via Lazarus
As pointed by Dmitry B, and checked by myself in LCL, MK_ALT must be defined in LCLType.pp as $2000. For ex, this is sample from qtwidgets.pas:   if (ModifierState and MK_SHIFT) <> 0 then     Msg.State := [ssShift];   if (ModifierState and MK_CONTROL) <> 0 then     Msg.State := [ssCtrl] +

[Lazarus] IDE About: layout fix

2018-11-03 Thread AlexeyT via Lazarus
patch adds BorderSpacing.Around=6 for Memo of IDE About dialog. -- Regards, Alexey Index: ide/aboutfrm.lfm === --- ide/aboutfrm.lfm (revision 59418) +++ ide/aboutfrm.lfm (working copy) @@ -191,6 +191,7 @@

Re: [Lazarus] Long paths manifest

2018-11-13 Thread AlexeyT via lazarus
--File I/O functions in the Windows API convert "/" to "\" as part of converting the name to an NT-style name, except when using the "\\?\" prefix as detailed in the following sections. So apps may have new bugs from this prefix. when app uses / shashes (fn := dir + '/' + name) by mistake.

[Lazarus] Bugtracker IDE version list

2018-10-04 Thread AlexeyT via Lazarus
a) Pls, delete outdated beta versions from list: 1.8 RCx, 1.6 RCx, 1.4 RCx, 1.2 RCx b) Pls add 2.1 (trunk) -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] IDE packages dialog: captions

2018-10-07 Thread AlexeyT via Lazarus
2 titles of groupboxes: Install  / Avail for installation. they mean almost the same thing. So: rename 1st title to "Installed". -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

Re: [Lazarus] Package IDE Spotter renamed to IDE Scout

2018-10-07 Thread AlexeyT via Lazarus
I see truncated label "Default width" in Scout opts: screenshot. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Lazarus Release Candidate 1 of 2.0

2018-09-19 Thread AlexeyT via Lazarus
OnMouseWheelHorz is already included, thanks. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] IDE Spotter- issues

2018-09-24 Thread AlexeyT via Lazarus
3- input (edit) is not autosized, so height is small on Ubuntu. 4- if window is narrow: hotkey overlaps caption. better do: caption overlaps hotkey. Alex -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

  1   2   >