Forum > Lazarus Extra Components

TStateMachine

(1/6) > >>

avra:
I have converted a Delphi TStateMachine to Lazarus from this link: http://melander.dk/delphi/statemachine, both visual components and demo. Although it works well in runtime (tested only in Windows), in design mode I have a connector lines updating problem. When I move or do something with any of the controls I see connector lines painted for a short eye blink moment, but they are erased immediately after that. Single click on a component helps temporary but just until clicked somewhere else. Please, please someone more experienced take a look and help with this design mode repainting problem (this is my first conversion of someone else's Delphi component). I am looking at it for quite some time and I am getting lost here. I have tried to change various things in mouse and paint methods, but without success so I am stuck here.

For more info about the component just take a look at the attached automated pizza ordering machine demo and try to make an order via simulated phone. Benefit is that all states are visual in both design mode and runtime, and you can visually set or change their relations and transitions. Once you write code for a state/event it is completed, and if you enter new things or change transitions you just change visual presentation or properties and the old code can stay. If you code all this by hand you can quickly make a maintenance mess and loose compass as complexity raises. With these components you can also visualize transitions for yourself very nicely (single image is a thousand words, and you know current state with a single quick look), or you can single step through states for debugging purposes. Visual flow chart presentation is also clear even to most non-programmers, so can be nicely used sometimes if needed for state presentation to your users.

Btw. I know it's a bad idea to have both component and demo in the same dir but that was a quick tmp fix for IDE not having unit in the path, and I don't think it's the cause of the problem.

WinXP, CT 2.70, Laz 1.1 svn 20120719, FPC 2.7.1 svn 37429

Chronos:
This is nice example of design-time capabilities of IDE.

But in design-time if I move some node all links are visible and doesn't disappear. So I am not see problem to fix.
 
Lazarus trunk 37960 from 2012-07-17 FPC 2.6.0 on winxp.

BigChimp:
Very nice components!!

I have no graphical problems either, on Lazarus 1.1. (SVN r38091), FPC x86 2.6.1, Windows Vista x64.

I wonder whether the original author would consent to add these to the Lazarus LCL?? (Had a look at the license and am guessing it may not be compatible to (modified) LGPL)
If not, this would be a wonderful addition to Lazarus CCR!

picstart:
Quality software actually worked on WIN7 pro 32 laz 9.30.4  FPC 2.6.0 without modification
Great solution
Thanks

jack616:
I have paint issues running on win-7 64 - compiled as 64bit win optimised level 1 - no debug info etc
Runtime horizontal sliding  of sizer bars causes "ghost" painting - but only when moving left to right
Its as if the screen isnt being updated fast enough. Left side is aligned left... right side is aligned full.
I do have fixed panels above and below. no graphics in windows but they do contain treeViews so that may be
slowing things down. It shouldnt on my hardware though.
Dont know if its related to the above issue though.

Navigation

[0] Message Index

[#] Next page

Go to full version