Welcome, Guest
Username: Password: Remember me
General Purpose Components and Libraries, discussions, problems and suggestions

TOPIC:

Re: [LAB] Cindy components 14 years 2 months ago #1636

  • Mauricio
  • Mauricio's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 13
  • Thank you received: 7
The following user(s) said Thank You: Konstantinos Papadoulas

Please Log in or Create an account to join the conversation.

Re: [LAB] Cindy components 14 years 2 months ago #1637

  • Sternas Stefanos
  • Sternas Stefanos's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4620
  • Thank you received: 1132
Thanks Sir
Many fixes... :)
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Re: [LAB] Cindy components 14 years 1 month ago #1749

  • mtbf40
  • mtbf40's Avatar
  • Visitor
  • Visitor
Hello,

i have a Problem with cyPanel:

i coded a App with cyPanel - when i move a other Window over the App., the Panels lost your color
unit mt4tcp_form;

{$mode objfpc}{$H+}

interface

uses
  Classes, Windows, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls, ComCtrls,
  LCLType, Buttons, cyPanel, cyAdvPanel;

type
  { TForm1 }

  TForm1 = class(TForm)
    cyAdvPanel1: TcyAdvPanel;
    CyPanel1: TCyPanel;
    ILControls: TImageList;
    PageControl1: ComCtrls.TPageControl;
    Panel1: TPanel;
    Panel2: TPanel;
    TabSheet1: ComCtrls.TTabSheet;
    TabSheet2: TTabSheet;
    TabSheet3: TTabSheet;
    TabSheet4: TTabSheet;
    procedure TabSheet1Show(Sender: TObject);
  private
    { private declarations }
  public
    { public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.lfm}

{ TForm1 }

procedure TForm1.TabSheet1Show(Sender: TObject);
begin
  Tabsheet1.DoubleBuffered := True;
  TabSheet1.Color := RGB(178, 229, 26);
  TabSheet2.Color := RGB(178, 229, 26);
end;

end.

2. how can i change the color from a TabSheet?

Platform: Win7 64Bit

Please Log in or Create an account to join the conversation.

Last edit: by mtbf40.

Re: [LAB] Cindy components 14 years 1 month ago #1796

  • RockyLuck
  • RockyLuck's Avatar
  • Visitor
  • Visitor

mtbf40 wrote: Hello,

i have a Problem with cyPanel:

i coded a App with cyPanel - when i move a other Window over the App., the Panels lost your color

Platform: Win7 64Bit


I have a problem that has the same origin, I think. Using a TcyAdvButton, I am unable to show a glyph. Tracing this I found (probably only in a Windows environment) that the procedure TcyBaseButton.CNDrawItem is never called, so the button's properties are never painted.
There are many problems with painting and the Cindy components. For instance, try the project C:\codetyphon\CodeOcean\Cindy\samples\cyAdvSpeedButton\cyAdvSpeedButtonDemo.lpi Under my 32 bit Windows Vista environment, it totally fails to deliver! :S
Under Delphi, there are no such problems, so it must be the port to Lazarus, causing it :ohmy:

Keep up the good work ;)

Dick

Please Log in or Create an account to join the conversation.

Last edit: by RockyLuck. Reason: Salutation was omitted

Re: [LAB] Cindy components 13 years 11 months ago #2094

  • mtbf40
  • mtbf40's Avatar
  • Visitor
  • Visitor
Hello,

i found a bug in cyAdvSpeedutton (in example cyAdvSpeedButtonDemo):

the variable aState will not set (with bsHot) when i move the mouse over a Button - no entry exists in the file.
it exist bsUp, bsDown... but not bsHot

is there here a bug report??

Please Log in or Create an account to join the conversation.

Last edit: by mtbf40.

Re: [LAB] Cindy components 13 years 11 months ago #2118

  • mtbf40
  • mtbf40's Avatar
  • Visitor
  • Visitor
It's bugging me, if one gets here no answer!! :angry:

Please Log in or Create an account to join the conversation.

Re: [LAB] Cindy components 13 years 11 months ago #2119

  • Chris
  • Chris's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 54
  • Thank you received: 4
Hi mtbf40,

mauriciopt continues to update his components - have you looked to see if the latest changes he's made fix these bugs? He may not be monitoring this forum so it might be better to email him direct, the latest version of these components is 4.45 (the version in CT2.70 is 4.42 but will probably be updated to the latest at the next CodeTyphon release) although it maybe this version still hasn't got these particular fixes, you can download the latest here;

sourceforge.net/projects/tcycomponents/

you can probably take the newer *.pas files from the relebvant folders in the archive and (maybe) just drop them over the existing ones in the relevant folder which should be;

c:\codetyphon\lazarus\components\pl_Cindy\source

(assuming Win32) and then recompile.

The difficult with trying to get Lazarus (and therefore any associated components) to work just like Delphi (for which these components were originally written) is that things like the messaging functionality need to work across all platforms (Windows, Linux & OSX) and that isn't easy, especially when the operating systems are fundamentially different and Linux has so many GUI front-ends - GTK, GTK2, QT, etc (unlike Win32 [and in some regards OSX] which really has just one regardless of which you run XP, Vista, Win7 etc) - it's a testament to the FPC/Lazarus developers that this can work at all.

TheBlackSheep
The following user(s) said Thank You: mtbf40

Please Log in or Create an account to join the conversation.

Re: [LAB] Cindy components 13 years 11 months ago #2120

  • Mauricio
  • Mauricio's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 13
  • Thank you received: 7
"He may not be monitoring this forum"

Maybe yes :)

I have just added MouseOver property to public on cySpeedButton.pas and cyAdvSpeedButton.pas and it will avaible on next Cindy release (v4.50)!

Because i' m not working on Cindy port to CodeTyphoon, i'm not sure that this are the correct file and if they have already added this property on cyBaseSpeedButton.pas.

Mauricio
The following user(s) said Thank You: mtbf40

Please Log in or Create an account to join the conversation.

Re: [LAB] Cindy components 13 years 11 months ago #2121

  • Sternas Stefanos
  • Sternas Stefanos's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4620
  • Thank you received: 1132
We waiting your release Sir

Is a good idea to make pl_Cindy sub-forum?
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Re: [LAB] Cindy components 13 years 11 months ago #2122

  • Mauricio
  • Mauricio's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 13
  • Thank you received: 7
What is pl_Cindy sub-forum ?

Mauricio

Please Log in or Create an account to join the conversation.

Re: [LAB] Cindy components 13 years 11 months ago #2123

  • Sternas Stefanos
  • Sternas Stefanos's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4620
  • Thank you received: 1132
General Purpose/pl_Cindy category
at this forum
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Re: [LAB] Cindy components 13 years 11 months ago #2124

  • Mauricio
  • Mauricio's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 13
  • Thank you received: 7
Single forum is good for me: more simple to monitor.

Mauricio

Please Log in or Create an account to join the conversation.

Re: [LAB] Cindy components 13 years 10 months ago #2127

  • mtbf40
  • mtbf40's Avatar
  • Visitor
  • Visitor
Thx for your answers :)

Please Log in or Create an account to join the conversation.

[LAB] Cindy components 13 years 10 months ago #2183

  • Mauricio
  • Mauricio's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 13
  • Thank you received: 7
Cindy v5.0 released (for Delphi) !

Cindy website

Added DBExpress components and the major news is ... TcyDocER (may be easy to port ;) )

TcyDocER extract document information (mail, phone, amounts etc ...) using OCR results from any source like Tesseract (open source) or Transym (comercial but cheap, fast, easy and powerful). There' s no demo of TcyDocER for now but i will working on it!

Regards,
Mauricio

Please Log in or Create an account to join the conversation.

[LAB] Cindy components 13 years 10 months ago #2184

  • Sternas Stefanos
  • Sternas Stefanos's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4620
  • Thank you received: 1132
Thanks Sir
we will work on this version
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

[LAB] Cindy components 13 years 10 months ago #2185

  • RockyLuck
  • RockyLuck's Avatar
  • Visitor
  • Visitor
@mauriciopt:
I enjoy the enthusiasm you exhibit in releasing new Cindy features.

However, the CodeTyphon port does not work very well.

I would very much appreciate it if you could have a look at the pervasive problem of glyphs on buttons.
Will you have a look at this topic: Topic 1796
The problem, ie why it does not work, is explained there.

Thanks!



Please Log in or Create an account to join the conversation.

Last edit: by RockyLuck. Reason: Wrong topic number

[LAB] Cindy components 13 years 10 months ago #2186

  • Sternas Stefanos
  • Sternas Stefanos's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4620
  • Thank you received: 1132
Sir
always you can help us and
with your Cindy source modifications...
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

[LAB] Cindy components 13 years 10 months ago #2187

  • RockyLuck
  • RockyLuck's Avatar
  • Visitor
  • Visitor

sternas wrote: Sir
always you can help us and
with your Cindy source modifications...

The problem is not with the Cindy components. The problem is with the inadequate port of Lazarus of the Windows message structure. In this case, the CN_DRAWITEM message is not sent (needed by TcyBaseButton to draw the glyph), because the WM_DRAWITEM Windows message is not handled by Lazarus. :angry:

This may be cured, but only if one has intimate knowledge of the Cindy software. Someone (and I presumed mauriciopt is the right person for that) has to look into this and come up with an alternative for the dead CN_DRAWITEM handler.

Please Log in or Create an account to join the conversation.

[LAB] Cindy components 13 years 10 months ago #2188

  • Mauricio
  • Mauricio's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 13
  • Thank you received: 7
@RockyLuck: i anderstand what' s the problem but:
- i don' t have any experience with Lazarus.
- I' don' t participate on "Cindy for Lazarus"
Maybe, this will change one day ...

I' m pretty sure that the persons who are porting Cindy will find a solution.

Mauricio

PS: TcyDocER (very great component, no demo for now) have been developped with in mind its port for Lazarus.
I think that its port will be very easy.

Please Log in or Create an account to join the conversation.

[LAB] Cindy components 13 years 10 months ago #2189

  • RockyLuck
  • RockyLuck's Avatar
  • Visitor
  • Visitor

mauriciopt wrote: @RockyLuck: i understand what' s the problem but:
- i don' t have any experience with Lazarus.
- I' don' t participate on "Cindy for Lazarus"

If you cannot solve this, at least can you give us some pointers in which direction to look when the WM_DRAWITEM message is not present.

Which alternative method would you pursue?

Thanks a million.

Please Log in or Create an account to join the conversation.