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

Object Browser
Goto page 1, 2  Next
 
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion
View previous topic :: View next topic  
Author Message
peaps
KiXforms Follower
KiXforms Follower


Joined: 17 Jul 2006
Posts: 26
Location: Storrington, West Sussex, UK

PostPosted: Mon Jul 17, 2006 8:15 pm    Post subject: Object Browser Reply with quote

Hi everyone. I have been using Kix and Kixforms for a while now but only just signed up as a proper member. Previously just been searching existing posts.

What COM object browser are people using to view the properties and functions of the kixforms.dll at the moment?
Back to top
View user's profile Send private message Visit poster's website
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Mon Jul 17, 2006 8:26 pm    Post subject: Reply with quote

either the kixforms.chm Wink or iTripoli's free Type Library Viewer :

http://www.itripoli.com/itlv.asp

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
peaps
KiXforms Follower
KiXforms Follower


Joined: 17 Jul 2006
Posts: 26
Location: Storrington, West Sussex, UK

PostPosted: Tue Jul 18, 2006 11:06 am    Post subject: Reply with quote

Hi thanks for your reply.

What I am looking for is the methods available to the ContextMenu object but the chm that I am looking at says page not displayed, and the object browser that you suggested doesn't list them either. I am using the development version build 46 of kixforms.dll and specifically I want to see if the ContextMenu object supports checks on it or not.

Thanks.
Back to top
View user's profile Send private message Visit poster's website
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Tue Jul 18, 2006 2:02 pm    Post subject: Reply with quote

Quote:

I want to see if the ContextMenu object supports checks on it or not.


not directly, but the MenuItem Object, which is what you looking for anyway :

from the very chm:

Quote:

Description
Represents an individual item that is displayed within a MainMenu.

Remarks
In order for a MenuItem to be displayed, you must add it to a MainMenu. To create submenus, you can add MenuItem objects to the MenuItems property of the parent MenuItem.

The MenuItem class provides properties that enable you to configure the appearance and functionality of a menu item. To display a check mark next to a menu item, use the Checked property. You can use this feature to identify a menu item that is selected in a list of mutually exclusive menu items. For example, if you have a set of menu items for setting the color of text in a TextBox control, you can use the Checked property to identify which color is currently selected. The Shortcut property can be used to define a keyboard combination that can be pressed to select the menu item.

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
pearly
KiXforms Aficionado
KiXforms Aficionado


Joined: 27 Jan 2004
Posts: 332

PostPosted: Tue Jul 18, 2006 4:59 pm    Post subject: Reply with quote

Here's sample code. I think this is what you're looking for :

Code:

Break On

$sys = CreateObject("Kixtart.System")
If @ERROR <> 0
   Exit 1
EndIf

$frmMain = $sys.Form()
$frmMain.BackColor = 235,233,237
$frmMain.Center()
$frmMain.Font = $sys.Font("Verdana",8.25)
$frmMain.FormBorderStyle = 4
$frmMain.Height = 600
$frmMain.MinimumSize = 800,600
$frmMain.Width = 800
$frmMain.StartPosition = 1

$gvwMain = $frmMain.Controls.Add("GridView")
$gvwMain.Left = 15
$gvwMain.OnRightMouseUp = "OnRightMouseUp()"
$gvwMain.Size = 400,300
$gvwMain.Top = 15

$gvwEditMnu = $sys.ContextMenu()
$gvwEditMnu.ImageList = $sys.BuiltinImageList
$gvwEditMnu.Style = 1

$gvwEditMnu.Sub1 = $gvwEditMnu.MenuItems.Add("1")
$gvwEditMnu.Sub1.OnClick = "OnSubClick(1)"
$gvwEditMnu.Sub2 = $gvwEditMnu.MenuItems.Add("2")
$gvwEditMnu.Sub2.OnClick = "OnSubClick(2)"
$gvwEditMnu.Sub3 = $gvwEditMnu.MenuItems.Add("3")
$gvwEditMnu.Sub3.OnClick = "OnSubClick(3)"
$gvwEditMnu.Sep1 = $gvwEditMnu.MenuItems.Add("-")
$gvwEditMnu.Select = $gvwEditMnu.MenuItems.Add("Select")
$gvwEditMnu.Select.ImageIndex = 72
;$gvwEditMnu.Select.OnClick = "OnSelectClick()"
$gvwEditMnu.DeSelect = $gvwEditMnu.MenuItems.Add("Deselect")
;$gvwEditMnu.DeSelect.OnClick = "OnDeselectClick()"
$gvwEditMnu.ClrCon = $gvwEditMnu.MenuItems.Add("Clear Contents")
;$gvwEditMnu.ClrCon.OnClick = "OnClrConClick()"
$gvwEditMnu.Sep2 = $gvwEditMnu.MenuItems.Add("-")
$gvwEditMnu.Insert = $gvwEditMnu.MenuItems.Add("Insert")
$gvwEditMnu.Insert.ImageIndex = 12
;$gvwEditMnu.Insert.OnClick = "OnInsertClick()"
$gvwEditMnu.Delete = $gvwEditMnu.MenuItems.Add("Delete")
$gvwEditMnu.Delete.ImageIndex = 9
;$gvwEditMnu.Delete.OnClick = "OnDeleteClick()"

$frmMain.Show

While $frmMain.Visible
   $ = Execute($frmMain.DoEvents())
Loop

Quit

Function OnRightMouseUp()
   $ = $gvwEditMnu.Show($gvwMain, $gvwMain.MouseX, $gvwMain.MouseY)
EndFunction

Function OnSubClick($sel)
   Select
      Case Val($sel) = 1         
         $gvwEditMnu.Sub1.Checked = "True"
         $gvwEditMnu.Sub2.Checked = "False"
         $gvwEditMnu.Sub3.Checked = "False"
      Case Val($sel) = 2
         $gvwEditMnu.Sub1.Checked = "False"
         $gvwEditMnu.Sub2.Checked = "True"
         $gvwEditMnu.Sub3.Checked = "False"
      Case Val($sel) = 3
         $gvwEditMnu.Sub1.Checked = "False"
         $gvwEditMnu.Sub2.Checked = "False"
         $gvwEditMnu.Sub3.Checked = "True"
   EndSelect
EndFunction
Back to top
View user's profile Send private message
peaps
KiXforms Follower
KiXforms Follower


Joined: 17 Jul 2006
Posts: 26
Location: Storrington, West Sussex, UK

PostPosted: Tue Jul 18, 2006 6:40 pm    Post subject: Reply with quote

Thanks! That is exactly what I am looking for. Think there might be some corruption in my chm file.
Back to top
View user's profile Send private message Visit poster's website
benny69
KiXforms Advocate
KiXforms Advocate


Joined: 30 Oct 2003
Posts: 567
Location: Lincoln, Ne

PostPosted: Wed Jul 19, 2006 12:00 am    Post subject: Reply with quote

nicely done pearly
_________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)
Back to top
View user's profile Send private message Send e-mail
peaps
KiXforms Follower
KiXforms Follower


Joined: 17 Jul 2006
Posts: 26
Location: Storrington, West Sussex, UK

PostPosted: Wed Jul 19, 2006 6:39 pm    Post subject: Reply with quote

Just out of interest, is there a chm file for the development builds of kixforms.dll ?
Back to top
View user's profile Send private message Visit poster's website
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Wed Jul 19, 2006 6:57 pm    Post subject: Reply with quote

um, yeah.

The chm is in every kf download.
Well, this doesn't mean necessarily that it is updated, but it is there.

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
peaps
KiXforms Follower
KiXforms Follower


Joined: 17 Jul 2006
Posts: 26
Location: Storrington, West Sussex, UK

PostPosted: Wed Jul 19, 2006 7:04 pm    Post subject: Reply with quote

ok.. I dont know if I am being really thick here, but I'm can't find anything on the gridview object. I tried running the code shown above, but am getting an error on the line:

Code:
$gvwMain.Size = 400,300
Back to top
View user's profile Send private message Visit poster's website
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Wed Jul 19, 2006 7:13 pm    Post subject: Reply with quote

No, you're not thick ... that's only because Shawn is about to rework the entire GV thing and therefore has taken out the docu about it.

Error on .Size ? Hmmm ... what does the version Information of the about box of the form say ?

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.


Last edited by Jochen on Wed Jul 19, 2006 8:23 pm; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
peaps
KiXforms Follower
KiXforms Follower


Joined: 17 Jul 2006
Posts: 26
Location: Storrington, West Sussex, UK

PostPosted: Wed Jul 19, 2006 7:16 pm    Post subject: Reply with quote

It says 2.46.36.0
Back to top
View user's profile Send private message Visit poster's website
pearly
KiXforms Aficionado
KiXforms Aficionado


Joined: 27 Jan 2004
Posts: 332

PostPosted: Wed Jul 19, 2006 7:28 pm    Post subject: Reply with quote

download the latest greatest here

Version 2.46.55
Back to top
View user's profile Send private message
pearly
KiXforms Aficionado
KiXforms Aficionado


Joined: 27 Jan 2004
Posts: 332

PostPosted: Wed Jul 19, 2006 7:29 pm    Post subject: Reply with quote

Jochen wrote:
No, you're not thik ... that's only because Shawn is about to rework the entire GV thing and therefore has taken out the docu about it.

Error on .Size ? Hmmm ... what does the version Information of the about box of the form say ?


Any idea what's he's reworking?
Back to top
View user's profile Send private message
peaps
KiXforms Follower
KiXforms Follower


Joined: 17 Jul 2006
Posts: 26
Location: Storrington, West Sussex, UK

PostPosted: Wed Jul 19, 2006 8:23 pm    Post subject: Reply with quote

Thanks it is now working fine with the .55 build.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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