Recent

Author Topic: ANN: KControls 1.7  (Read 16927 times)

Groffy

  • Full Member
  • ***
  • Posts: 204
Re: ANN: KControls 1.7
« Reply #15 on: August 17, 2015, 08:21:16 am »
Code: [Select]
{$IF NOT DEFINED(FPC) OR DEFINED(LCLWin32) OR DEFINED(LCLWin64)}
  {$DEFINE USE_WINAPI}
{$IFEND}

to

Code: [Select]
{$IF NOT DEFINED(FPC) OR DEFINED(WINDOWS)}
  {$DEFINE USE_WINAPI}
{$IFEND}

Your are right, reverting this is the solution. Its working now under Win7 / QT as expected. Thank you!

I also found an issue with TKSpeedButton, but will open a new thread for this.


Best regards
Linux Mint / Windows 10 / Lazarus 3.0.0 / trunk -qt

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
Re: ANN: KControls 1.7
« Reply #16 on: September 01, 2015, 04:30:36 pm »

Groffy

  • Full Member
  • ***
  • Posts: 204
Re: ANN: KControls 1.7
« Reply #17 on: September 01, 2015, 05:18:29 pm »
@Alextp : Thank you for starting this. I'm often struggling with Wiki articles and wonder which version they refer to. What do you think about a  version passage?

Best regards
Linux Mint / Windows 10 / Lazarus 3.0.0 / trunk -qt

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
Re: ANN: KControls 1.7
« Reply #18 on: September 01, 2015, 05:20:36 pm »
IMO not needed
Wiki is about Code in general

jimmio

  • New member
  • *
  • Posts: 8
Re: ANN: KControls 1.7
« Reply #19 on: September 03, 2015, 07:51:56 am »
how can i use KNumberEdit control (with DecimalSeparator and ThousandSeparator) as an inplaceeditor in Kgrid ???

Groffy

  • Full Member
  • ***
  • Posts: 204
Re: ANN: KControls 1.7
« Reply #20 on: September 03, 2015, 08:51:02 am »
Set the editor class in Grid OnEditorCreate event

Code: [Select]
procedure KGrid.EditorCreate(Sender: TObject; ACol, ARow: Integer;  var AEditor: TWinControl); 
begin
  case ACol of
    1:  begin
           AEditor := TKNumberEdit.Create(nil);
         end;
  end;     
end;

« Last Edit: September 04, 2015, 07:59:28 pm by Groffy »
Linux Mint / Windows 10 / Lazarus 3.0.0 / trunk -qt

jimmio

  • New member
  • *
  • Posts: 8
Re: ANN: KControls 1.7
« Reply #21 on: September 03, 2015, 08:59:31 am »
i have complete
1. KGrid1EditorCreate
2. KGrid1EditorDataFromGrid
3. KGrid1EditorDataToGrid
4. KGrid1EditorSelect
using TFormatSettings (DecimalSeparator and ThousandSeparator) and Kgrid still not show the right
number (e.c.. 85162.58 instead of 85,162.580) ....
« Last Edit: September 03, 2015, 09:10:51 am by jimmio »

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: ANN: KControls 1.7
« Reply #22 on: September 04, 2015, 06:58:37 am »
i have complete
1. KGrid1EditorCreate
2. KGrid1EditorDataFromGrid
3. KGrid1EditorDataToGrid
4. KGrid1EditorSelect
using TFormatSettings (DecimalSeparator and ThousandSeparator) and Kgrid still not show the right
number (e.c.. 85162.58 instead of 85,162.580) ....
1) Please start a new thread when you have problems or questions and do not highjack someone else's thread.
2) The visual results in the grid have nothing to do with the format settings of the columns editor try setting the column's format or something along those lines.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

ps

  • Full Member
  • ***
  • Posts: 136
    • CSS
Re: ANN: KControls 1.7
« Reply #23 on: December 04, 2015, 04:11:19 pm »
Unlike the rich edit components known to Lazarus users (lzRichedit or RichMemo), KMemo is not bound to external rich edit libraries, was written from scratch and uses its native powerful word processor.
Amazing idea, and implementation ... so there is big potential to have one editor for all platforms especially if HTML export import will be available. Can't wait.
Small simple CSS/box model implementation: https://github.com/pst2d/csscontrols/tree/dev

snorkel

  • Hero Member
  • *****
  • Posts: 817
Re: ANN: KControls 1.7
« Reply #24 on: December 04, 2015, 04:37:45 pm »
Nice job, looking forward to see if your tkmemo can be a replacement for Trichview.
I really don't care if it's compatible with the delphi trichmemo, as long as it can save formatted text to a stream for sending over a TCP/IP socket.
And the ability to add images/emoticons and basic table support.  Doesn't need every bell and whistle that trichview has.

I have not installed it yet, but does this release have a onclick event for hyperlinks?
« Last Edit: December 04, 2015, 04:44:48 pm by snorkel »
***Snorkel***
If I forget, I always use the latest stable 32bit version of Lazarus and FPC. At the time of this signature that is Laz 3.0RC2 and FPC 3.2.2
OS: Windows 10 64 bit

snorkel

  • Hero Member
  • *****
  • Posts: 817
Re: ANN: KControls 1.7
« Reply #25 on: December 04, 2015, 04:48:49 pm »
TK,
Is there a thread in a appropriate area that we could ask questions about the Memo control?
Would be kind of nice to have one on the Lazarus Forums so as we learn it we could help each other out?
***Snorkel***
If I forget, I always use the latest stable 32bit version of Lazarus and FPC. At the time of this signature that is Laz 3.0RC2 and FPC 3.2.2
OS: Windows 10 64 bit

kefealo

  • Newbie
  • Posts: 4
Re: ANN: KControls 1.7
« Reply #26 on: March 26, 2018, 10:01:29 am »
Hello,


I'm a totally newcomer, but I'd like to say thank you to keep this great components alive! I'd like to use KDBGrid, but I'm failed on all platforms. Now, dev debug environment on Windows and Linux working properly. I've some problems under macOS under Lazarus 1.8.2. and the cutec-chris git version of KControls.
 

Ok, here is the details of my Q:
I have a TSQLConnector, TSQLTransaction, TSQLQuery, TDatasorce on my form. with a KDBGrid and DBGrid with the same datasource.
I tried to setup KDBGrid field names with the 7 fields that I want to show. If I activate the query, the KDBGrid show the lines and moves the record as I navigate in the list. the DBGrid show all fields with contents but the KDBGrid is empty. I know, it's a stupid question, but I have to ask: how to setup the grid? I filled the field names in the object inspector under columns. (Yes, I cannot choose from the fields, I need to specify all field names). It's empty. I see... not empty, because the indicatior column show me the how much lines in my query. I'm using SQLite DB.

CM630

  • Hero Member
  • *****
  • Posts: 1082
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: ANN: KControls 1.7
« Reply #27 on: September 21, 2018, 09:22:37 am »
There is an announcement that http://tkweb.eu/ will be closed next May.
It is also stated that „...
KControls repository path has changed (see updated link above), has been set completely public (including the issue tracker)...



Anyway, I cannot clone the repository :(

Code: Pascal  [Select][+][-]
  1. $ git clone https://bitbucket.org/tomkrysl/kcontrols d:/сстанев/ОК/tkweb
  2. Cloning into 'd:/.../ОК/tkweb'...
  3. fatal: repository 'https://bitbucket.org/tomkrysl/kcontrols/' not found
« Last Edit: September 21, 2018, 08:50:03 pm by CM630 »
Лазар 3,2 32 bit (sometimes 64 bit); FPC3,2,2; rev: Lazarus_3_0 on Win10 64bit.

 

TinyPortal © 2005-2018