KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

Graph

 
Post new topic   Reply to topic    KiXforms Forum Index -> Script Archive
View previous topic :: View next topic  
Author Message
bruno
KiXforms Regular
KiXforms Regular


Joined: 19 May 2003
Posts: 44
Location: France (Europe)

PostPosted: Tue May 29, 2012 3:01 pm    Post subject: Graph Reply with quote

Hello,

Here's how I make a graph. There is probably an easier way , then leave me your comments.



graph4.kix
 Description:

Download
 Filename:  graph4.kix
 Filesize:  6.97 KB
 Downloaded:  970 Time(s)


_________________
There is no stupid question. Whoever seeks is never stupid because he will know ...
Bruno.
Back to top
View user's profile Send private message
enahsyemotp
KiXforms Regular
KiXforms Regular


Joined: 22 Sep 2010
Posts: 40
Location: Tulsa, OK

PostPosted: Tue May 29, 2012 7:53 pm    Post subject: Reply with quote

Looks pretty good Bruno. One thing I noticed, is that you are using a WMI query to get the screen resolution.

If you wait until after the form is defined, the resolution can easily be obtained with the following lines...

$frmProcess.Screen.Bounds.Width
$frmProcess.Screen.Bounds.Height

Might save a little bit on processing time.
Back to top
View user's profile Send private message
bruno
KiXforms Regular
KiXforms Regular


Joined: 19 May 2003
Posts: 44
Location: France (Europe)

PostPosted: Wed May 30, 2012 7:04 am    Post subject: Reply with quote

Thank you for comments,
I need the screen resolution before the form because the form is resised following the resolution. If the sum of Y axes fact that the form is greater than the resolution, the Y are scaled so as not to overflow the screen.
OK I change by:
Code:

$ar_screenres=100,1000
;$ar_screenmax=Split(GetScreenRes(),",")
;If $ar_screenres[0]>$ar_screenmax[0]
;  $ar_screenres[0]=$ar_screenmax[0]
;EndIf
;If $ar_screenres[1]>$ar_screenmax[1]
;  $ar_screenres[1]=$ar_screenmax[1]
;EndIf


$frmProcess = CreateObject("Kixtart.Form")
?? $frmProcess.Screen.Bounds.Width
??
If $ar_screenres[0]>$frmProcess.Screen.Bounds.Width
  $ar_screenres[0]=$frmProcess.Screen.Bounds.Width
EndIf
If $ar_screenres[1]>$frmProcess.Screen.Bounds.Height
  $ar_screenres[1]=$frmProcess.Screen.Bounds.Height
EndIf


Thank you

_________________
There is no stupid question. Whoever seeks is never stupid because he will know ...
Bruno.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Script Archive All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group