<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-03-26 16:27 GMT-03:00 Anthony Walter <span dir="ltr"><<a href="mailto:sysrpl@gmail.com" target="_blank">sysrpl@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">Leonardo,</div><div class="gmail_extra"><br></div><div class="gmail_extra">You can absolutely use Cross Codebot to make controls, in any shape you want. These types of controls should be graphic controls, and I provide a bass class name TRenderGraphicControl in the Codebot.Controls unit to help in this endeavor.</div><div class="gmail_extra"><br></div><div class="gmail_extra">The key to making a control any shape with TRenderGraphicControl is to override the "protected procedure Render" method, and draw using the "protected property Surface: ISurface". Just doing your drawing in a non rectangular manner, for example:</div><div class="gmail_extra"><br></div><div class="gmail_extra">procedure TYourControl.Renderl<br></div><div class="gmail_extra">begin</div><div class="gmail_extra"> Surface.Ellipse(ClientRect);</div><div class="gmail_extra"> Surface.Fill(NewBrush(clRed));</div><div class="gmail_extra">end;<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">And you control now appears as a nice anti-aliased red ellipse bound within the client area of your control. Obviously this is a trivial drawing example, but if you go to the Codebot Cross forums you can find examples of more complicated drawing. I regularly add new stock drawing functions to the Codebot.Graphics unit, along with control theming, so if you're interested you can reuse my some of stock routines to draw your custom controls, or reuse the theme drawing routines.</div><div class="gmail_extra"><br></div><div class="gmail_extra">I hope this helps.</div><div class="gmail_extra"> </div><div class="gmail_extra"><br></div></div>
</blockquote></div><div class="gmail_extra"><br></div>Awesome!<br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">The best regards,<br><br>Fabio Luis Girardi<br>PascalSCADA Project<br><a href="http://sourceforge.net/projects/pascalscada" target="_blank">http://sourceforge.net/projects/pascalscada</a><br><a href="http://www.pascalscada.com" target="_blank">http://www.pascalscada.com</a></div>
</div></div>