Normal Topic StaticDraw (Read 494 times)
flobo
Member
*
Offline



Posts: 16
Location: Germany
Joined: Feb 20th, 2014
StaticDraw
May 13th, 2014 at 11:31am
Print Post Print Post  
Hello,

could someone please explain to me how these commands work?

I even don't get a simple line in my Application with

Code
Select All
// Draws a vertical line 200 pixels long
StaticDrawLine(DrawHere, 10, 100, 10, 300)
 



Sad



  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: StaticDraw
Reply #1 - May 13th, 2014 at 2:39pm
Print Post Print Post  
Hello Flobo,

The element that is referenced in argument one appears to need to be a Static Text element. It appears as if this was by design and just left out of documentation by error. I'll see if I can get it added to the errata.

The following code can be placed into the On Form Entry event of the sample Customers form.

Code
Select All
StaticDrawLine(LE0, 10, 100, 10, 300) 



Also depending on what event you are putting the code in you may have to call ForceRedraw()

-Ray
« Last Edit: May 13th, 2014 at 6:09pm by Ray the Reaper »  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
flobo
Member
*
Offline



Posts: 16
Location: Germany
Joined: Feb 20th, 2014
Re: StaticDraw
Reply #2 - May 13th, 2014 at 6:01pm
Print Post Print Post  
Hey Ray,

thanks for the info that it has to be an static text Element.

I'll try it out.  Smiley
  
Back to top
 
IP Logged