170 Commits

Author SHA1 Message Date
2a0bcf1de0 * code clean & refactoring
+ add ComponentPlatformsAttribute for MCK components (fix disabled components for platform Win64)

git-svn-id: https://svn.code.sf.net/p/kolmck/code@170 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2021-03-09 05:49:57 +00:00
aea6c4eb33 * code clean & refactoring
* some defines moved from KOL.pas to KOLDEF.inc
* dpk packages updated
+ add ComponentPlatformsAttribute for MCK components (fix disabled components for platform Win64)
+ add define for Delphi 10.4 Sydney (Hubert Bannwarth)

git-svn-id: https://svn.code.sf.net/p/kolmck/code@169 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2021-03-09 05:47:49 +00:00
1735bbe620 * fix Num2Bytes (A bug in fucntion Num2Bytes. Due to the fact that when the fractional part of the size has a front significant zero, it is not shown. Test it on size 2204450816. Should show 2.05G, whereas KOL shows 2.5G) by Oleg N. Cher
git-svn-id: https://svn.code.sf.net/p/kolmck/code@168 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2021-03-05 08:14:25 +00:00
f74d2dee76 * update
git-svn-id: https://svn.code.sf.net/p/kolmck/code@167 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2021-03-05 07:43:36 +00:00
ba615be61d * MCK: ux visual style mode updated
- MCK: remove pcode / collapse 
- MCK: remove FormCompact
- MCK: source formatting: mckObjs.pas, mckCtrls.pas (by cnpack) 
- KOL: remove codegeneration for MCK FormCompact
* KOL: move some defines from KOL.pas to KOLDEF.inc
* KOL: some refactoring\cleaning
* KOL: remove unused defines (SAFE_CODE, USE_CMOV, COMMANDACTIONS_OBJ, USE_AUTOFREE4CONTROLS, USE_AUTOFREE4CHILDREN, NEW_ALIGN, PROVIDE_EXITCODE - always on; OLD_REFCOUNT, SMALLEST_CODE*, SPEED_FASTER, USE_PROP, UMERIC_APPICON, CUSTOM_APPICON, TEST_INDEXOFCHARS_COMPAT, _FPC, REDEFINE_ABS, OLD_*, NOT_FIX_MODAL, NOT_UNLOAD_RICHEDITLIB, ANCHORS_WM_SIZE, COMMANDACTIONS_RECORD - always off; OLD_FREE and etc..)
* KOL: fix WStrRScan - affected: ExtractFileNeme, ExtractFileExt, ExtractFilePath and "Create new  mck project" in XE 10.2 and maybe other high versions (by Hubert Bannwarth)
* KOL: fix "Create new mck project" in XE 10.2/3 and maybe other versions
* KOL: remove some old\commented\broken\asm code and defines like "*ASM_NO_VERSION*"
* KOLadd: remove some old\commented\broken\asm code and defines like "*ASM_NO_VERSION*"
* and some else..

Tested on:
	Delphi 2006 x32(ansi\unicode)
	Delphi XE 10.3 x32(unicode), x64(unicode)

git-svn-id: https://svn.code.sf.net/p/kolmck/code@166 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2021-03-05 07:34:47 +00:00
501363196b * clean
git-svn-id: https://svn.code.sf.net/p/kolmck/code@165 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2017-09-20 09:43:19 +00:00
7c9fe13a5a * Refactoring
git-svn-id: https://svn.code.sf.net/p/kolmck/code@164 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2017-09-20 09:42:57 +00:00
7020f027c5 * Globally Refactoring
git-svn-id: https://svn.code.sf.net/p/kolmck/code@163 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2017-09-20 09:41:32 +00:00
8eb8ee907d Global clean:
* Refactoring
* Code formating
- Removed many old defines...

git-svn-id: https://svn.code.sf.net/p/kolmck/code@162 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2017-08-15 04:00:14 +00:00
9b54772921 * fix
git-svn-id: https://svn.code.sf.net/p/kolmck/code@161 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2017-05-13 15:07:19 +00:00
6ab50db1d5 * fix
git-svn-id: https://svn.code.sf.net/p/kolmck/code@160 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2017-05-13 15:06:59 +00:00
248acddd62 Global clean:
* Refactoring
* Code formating
* Reduce lines count in KOL.pas
- Removed unworked linux support
- Removed Delphi support < 5
- Removed many defines (_D2, _D3, _D4, _D2orD3, _D2orD3orD4, _D3orHigher, _D3orD4, and etc shit...)

git-svn-id: https://svn.code.sf.net/p/kolmck/code@159 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2017-05-13 15:03:01 +00:00
2d5e3f5680 KOL.pas:
* fix WndProcCMExec (for get result from Thread.Synchronize{Ex})

git-svn-id: https://svn.code.sf.net/p/kolmck/code@158 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2017-03-17 06:40:45 +00:00
d7bddcdede KOLEcmListEdit.pas:
* code formatting
* some fixes

KOL.pas:

* code formatting
* fix crash in StrScan (by Netspirit)
* fix crash in StrCat (see StrScan)
* TThread.FOnSuspend: TThreadMethod -> TThread.TObjectMethod
* TThreadMethod procedure -> function (for get result from TThread.Synchronize and TThread.SynchronizeEx)

git-svn-id: https://svn.code.sf.net/p/kolmck/code@157 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2017-03-17 05:02:39 +00:00
8acb6d67e6 * Fpc fixes
git-svn-id: https://svn.code.sf.net/p/kolmck/code@156 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2017-01-20 03:43:56 +00:00
6b45e73d46 * fix compatibility with FPC 3.0 (Thaddy)
git-svn-id: https://svn.code.sf.net/p/kolmck/code@155 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2017-01-18 07:58:04 +00:00
4bf5d66775 * KOLEcmListEdit - some fixes
git-svn-id: https://svn.code.sf.net/p/kolmck/code@154 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2017-01-12 12:59:05 +00:00
0c52a18306 * TKOLMainMenu - some fixes
* TKOLListView.SetupLast - crash fix
* TBitmap.RLESaveToFile\RLESaveToStream\WriteBitmap - memory leak fix, thx to Dimaxx
+ TList.ReleaseItems - new method
+ TStrList.Remove - new method
+ TStrList.RemoveNoCase - new method
+ TStrList.GetRandomItem - new method
+ TIniFile.GetSectionNamesStr - new method

git-svn-id: https://svn.code.sf.net/p/kolmck/code@153 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2017-01-12 12:57:40 +00:00
6124dca457 KOL.pas:
+ WinVer - detect windows 8-10
* WndProc_LVSubitemDraw - some bad-fix
mirror.pas:
* TKOLMainMenu>1 hangup BDS in design time

git-svn-id: https://svn.code.sf.net/p/kolmck/code@152 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2015-08-25 15:36:36 +00:00
94665a4c38 * updates\fixes UXVisualStyle for designer mode
* KOL.pas: fix WStrRScan function
* KOL.pas: fix ClipboardHasText function
* KOL.pas: fix TBitmap.CopyToClipboard method
+ KOL.pas: +TBitmap.CopyToClipboardAsDIB

git-svn-id: https://svn.code.sf.net/p/kolmck/code@151 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2015-04-30 14:42:15 +00:00
d0d9975aab + missed dpks (D2010, DXE's)
+ KOL: TVSortChildrenCB for TreeView
* mckCtrlDraw: fix types for XE7

git-svn-id: https://svn.code.sf.net/p/kolmck/code@150 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2014-12-21 16:31:42 +00:00
09a575c01b * updates for ux designer mode, supported controls: button, groupbox, checkbox, radiobox, edit, memo, richedit, listbox, combobox, progressbar, listview, treeview
git-svn-id: https://svn.code.sf.net/p/kolmck/code@149 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2014-12-16 08:50:47 +00:00
6ee2903e91 * fix res warning
git-svn-id: https://svn.code.sf.net/p/kolmck/code@148 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2014-12-10 05:57:10 +00:00
fe48e64341 * updates UXVisualStyle for designer mode
* fix some warnings for D2009+
* fix crash when using toolbar buttons with 1 char length

git-svn-id: https://svn.code.sf.net/p/kolmck/code@147 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2014-12-04 10:53:59 +00:00
7befee4430 + fresh packages for addons
git-svn-id: https://svn.code.sf.net/p/kolmck/code@146 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2014-12-04 10:47:47 +00:00
0e80f52e2f - del old modules
* fix some warnings in D2009+ versions

git-svn-id: https://svn.code.sf.net/p/kolmck/code@145 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2014-12-04 10:46:29 +00:00
7e8e9d66ff tinyPNG.pas, mckEcmListEdit.pas, mckCCtrls.pas:
* fixs for UNICODE_CTRLS define

KOLZLibBzip.pas:

* fix missed file (thanks to Awkward)

git-svn-id: https://svn.code.sf.net/p/kolmck/code@144 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2014-12-03 16:20:28 +00:00
3fe3e37c4b * package reload
git-svn-id: https://svn.code.sf.net/p/kolmck/code@143 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2014-12-03 11:02:08 +00:00
6f8da34b33 * some fixes
git-svn-id: https://svn.code.sf.net/p/kolmck/code@142 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2014-12-03 10:59:01 +00:00
e37802a4d5 * some fixes
git-svn-id: https://svn.code.sf.net/p/kolmck/code@141 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2014-12-03 10:58:03 +00:00
70dda1a9a1 * some fixes
git-svn-id: https://svn.code.sf.net/p/kolmck/code@140 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2014-12-03 10:56:45 +00:00
a94d2b45c7 * some fixes
git-svn-id: https://svn.code.sf.net/p/kolmck/code@139 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2014-12-03 10:55:36 +00:00
fe96fa0950 Merge with unofficial 3.22 version compatible with fpc 2.6.4 and 2.7.1 i386 and x64 compilers by "Dmitri K dmiko@mail333.com (dmiko)" principal work
and "Thaddy de Koning thaddy@thaddy.com" (merge 3.22)

KOL:
* a LOT of declarations\fixes for x64\FPC support (by dmiko and Thaddy)
+ TList.SortEx - for custom sorting Items
+ TStrList.IndexOfName_NoCaseFast, TStrList.IndexOfName_Fast, TStrList.Values_NocaseFast[], TStrList.Values_Fast[] - faster than TStrList.IndexOfName\Values\etc..
+ TStrList.Remove\RemoveByName - Removes first entry of a Value\LineName in the list
+ TStrList.IsEmpty - check list empty 
+ TStrList.Add2\Insert2\Delete2\Items2[Idx, Col]\Swap2\IndexOf2\Count2\ColsCount - work with TStrList like with table[Idx, Col]
+ TStrListEx.SortEx - for custom sorting Items with Objects
* SVN_BUG#1: TStrListEx.SortEx - breaks objects association fixed (thanks to tacituseu)
* SVN_BUG#2: TControl.FreeCharFormatRec - fixed STATIC_RICHEDIT_DATA define (by tacituseu)
* TControl.LVColInsert - return inserted col index
+ TControl.LVGetHeader - Gets the handle to the header control used by the list-view control
+ TControl.LVSubItemAtPos - Return index of subitem at the given position
+ TControl.LVIndexOfEx - Returns first list view item index with subitem ACol matching S
+ TControl.TVItemInsert - extended version of TVInsert: can set images and set ItemData
* NewReadWriteFileStream - smaller code by use winapi flag ofOpenAlways instead FileExists function
* TMenu.Destroy\RemoveSubMenu - fixed memory leak on destroy (by dotnet20)
* CallDefFrameProc - fixed crash when use MDI
- ASM: TStrList.AddStrings\LoadFromStream\MergeFromFile\SaveToFile - switched off because maybe can get crash (need tests)
* PAS: TStrList.LoadFromStream\SaveToFile - fixed
* TStrList.IndexOfName - small speedup
* TStrList.IndexOfName_NoCase - this code "while (p^ <> #0) and (p^ <= ' ') do inc( p );" is deleted, because sometimes get deadlock (wtf code doing!?)
* ASM: WndProcTreeView - fixed TV_DRAG_RBUTTON define
+ TFastStrListEx.NameDelimiter - like in TStrList
+ TFastStrListEx.SetValue - like in TStrList

MCK:
* updated to MCK v3.23 (with some fixes)
* MCKAppExpert200x wizard - fixed unit name 
* TKOLListView.SetupLast - fixed crash 
+ TKOLListView.OnLVCustomDraw - added event assign
+ TKOLMemo.Paint\WYSIWIGPaintImplemented - add visual style for memo in designer mode
+ !!!ALPHA VERSION!!!: ux visual style mode for some controls in designer mode (PaintType: ptWYSIWIG) (WinXP minimum req.)

err.pas:
* moved from addons to kolmck folder 
* fixed exception.message in IDE
* source code formating

common:
* cleaning...
* updated readmes
* dpk packages replaced and renamed (KOLMCKXXXX.dpk)

maybe forgot something...

KOLAddons package will be updated later..

git-svn-id: https://svn.code.sf.net/p/kolmck/code@138 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2014-12-03 10:48:30 +00:00
75cb04e69f mckCtrls.pas:
* some fixes
* fixed crash in TKOLListView.SetupLast
+ TKOLListView.OnLVCustomDraw
+ TKOLMemo.Paint\WYSIWIGPaintImplemented add visual style for memo in designer mode

mckCtrlDraw.pas:
+ ux visual style mode for some controls in designer mode (PaintType: ptWYSIWIG) alpha version!!! (WinXP minimum req.)

git-svn-id: https://svn.code.sf.net/p/kolmck/code@137 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2014-12-03 09:39:14 +00:00
4530193046 * some declarations for x64 support
+ TFastStrListEx.NameDelimiter like in TStrList
+ TFastStrListEx.SetValue like in TStrList

git-svn-id: https://svn.code.sf.net/p/kolmck/code@136 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2014-12-03 09:30:35 +00:00
dd23fc06aa * fix some declarations for x64 support
git-svn-id: https://svn.code.sf.net/p/kolmck/code@135 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2014-12-03 09:27:30 +00:00
1cd1ce8bcc * fix some declarations for x64 support
git-svn-id: https://svn.code.sf.net/p/kolmck/code@134 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2014-12-03 09:27:02 +00:00
0f41e320b2 3.20 version + some changes
git-svn-id: https://svn.code.sf.net/p/kolmck/code@133 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2014-12-03 09:26:29 +00:00
8a2cf167f6 + added some missing types\const
* fixed some declarations for x64 support

git-svn-id: https://svn.code.sf.net/p/kolmck/code@132 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2014-12-03 09:23:00 +00:00
163c0e1a73 * fix some declarations for x64 support
git-svn-id: https://svn.code.sf.net/p/kolmck/code@131 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2014-12-03 09:22:02 +00:00
cb7f421737 * fix some types
git-svn-id: https://svn.code.sf.net/p/kolmck/code@130 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2014-12-03 09:20:42 +00:00
701041e47b FPC 2.6.4 and 2.7.1 i386 and x64 support from unofficial version by Dmitri K dmiko@mail333.com (dmiko) principal work and Thaddy de Koning thaddy@thaddy.com
git-svn-id: https://svn.code.sf.net/p/kolmck/code@129 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2014-12-03 09:18:38 +00:00
efc54cfbaf git-svn-id: https://svn.code.sf.net/p/kolmck/code@128 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07 2014-12-03 09:14:31 +00:00
a17b2165d1 KOL_err 3.00.G with changes:
* fix show exception.message in IDE
* source code formating

git-svn-id: https://svn.code.sf.net/p/kolmck/code@127 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2014-12-03 09:13:15 +00:00
0378b41404 git-svn-id: https://svn.code.sf.net/p/kolmck/code@126 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07 2014-12-03 09:09:32 +00:00
5add7d51a1 + XE5-XE7 defines
* FPC defines

git-svn-id: https://svn.code.sf.net/p/kolmck/code@125 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2014-12-03 09:07:38 +00:00
e2bebba230 * fixed unit name
git-svn-id: https://svn.code.sf.net/p/kolmck/code@124 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2014-12-03 08:58:09 +00:00
cb0dea0599 git-svn-id: https://svn.code.sf.net/p/kolmck/code@123 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07 2014-12-03 08:56:04 +00:00
ee94b5a811 packages
git-svn-id: https://svn.code.sf.net/p/kolmck/code@122 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2014-12-03 08:55:08 +00:00
4d2704dcbd will be move..
git-svn-id: https://svn.code.sf.net/p/kolmck/code@121 91bb2d04-0c0c-4d2d-88a5-bbb6f4c1fa07
2014-12-03 08:51:51 +00:00