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

Values for enumerations

 
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion
View previous topic :: View next topic  
Author Message
Gargoyle
KiXforms Aficionado
KiXforms Aficionado


Joined: 30 Dec 2003
Posts: 366
Location: Arizona

PostPosted: Sat Jan 07, 2006 4:26 pm    Post subject: Values for enumerations Reply with quote

In particular I am working with FormStartPosition = x

In the documentiation there is this
Code:

Kixforms.Net Class Library 

FormStartPosition Enumeration

public enum FormStartPosition
Members
Member Name Description
CenterParent   
CenterScreen   
Manual   
WindowsDefaultBounds   
WindowsDefaultLocation   

Requirements
Namespace: Kixforms_System

Assembly: Kixforms.System (in Kixforms.System.dll)

See Also
Kixforms_System Namespace


There are several others that are documented the same way, how does one know what the corresponding values for the members should be?

I do know (but only because of the kfdesigner) that 0 in this case is manual positioning.

In this case I am looking to to do "CenterScreen" but what value is that?

Is there a hard and fast rule that when I run into this in the documentation that I can follow to know the values of the members listed?

_________________
Parents were invented to make children happy by giving them something to ignore.
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Sat Jan 07, 2006 4:40 pm    Post subject: Reply with quote

The documentation generator that I use does not display the actual hard-coded values for the enumerations. There are two ways to discover them ...

1) Just display them out, like this:

?"Value=" $System.FormStartPosition_CenterScreen

2) Use a "TypeLibViewer" like iTripoli's viewer or you can even use the MS Office Object Browser in VBA Editor.
Back to top
View user's profile Send private message
Gargoyle
KiXforms Aficionado
KiXforms Aficionado


Joined: 30 Dec 2003
Posts: 366
Location: Arizona

PostPosted: Sat Jan 07, 2006 4:52 pm    Post subject: Reply with quote

As always, Thanks
_________________
Parents were invented to make children happy by giving them something to ignore.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion 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