Print Page | Close Window

EditItem Method sample?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=17506
Printed Date: 15 November 2024 at 4:59pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: EditItem Method sample?
Posted By: wakerunner
Subject: EditItem Method sample?
Date Posted: 02 November 2010 at 2:08am
Can anybody give me an example how to use edititem with recordrow and recordcolumn?


-------------
Product: Xtreme SuitePro (ActiveX) version 13.3.1
Platform: Windows 7 64 bit
Language: Visual Basic 6.0





Replies:
Posted By: Aaron
Date Posted: 02 November 2010 at 2:22am
Hi,
 
You mean edit item by code?
 
Me.wndReportControl.Navigator.MoveToRow 1
Me.wndReportControl.Navigator.MoveFirstColumn
Me.wndReportControl.Navigator.BeginEdit

 
Will move position to second row and FIRST "cell" and start edit
 
if not you have to explain your question a little better Wink
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: wakerunner
Date Posted: 02 November 2010 at 9:27am
 
No, sorry I wasn't more specific, I wanted to get some sample code for the "edititem method"
 
EditItem Method

Description

Places an item into edit mode via code.

Syntax

Public Sub EditItem( _
   ByVal  mk:@MSITStore:C:%5CProgram%20Files%20%28x86%29%5CCodejock%20Software%5CActiveX%5CXtreme%20SuitePro%20ActiveX%20v13.3.1%5CHelp%5CSymbolReference.chm::/XtremePropertyGrid~PropertyGrid~EditItem.html# -  - PropertyGridItem , _
   ByVal  mk:@MSITStore:C:%5CProgram%20Files%20%28x86%29%5CCodejock%20Software%5CActiveX%5CXtreme%20SuitePro%20ActiveX%20v13.3.1%5CHelp%5CSymbolReference.chm::/XtremePropertyGrid~PropertyGrid~EditItem.html# - 

Parameters

Item
Item to place into edit mode.
SelectText
True to start edit mode with all the text selected\highlighted, False to start edit mode with the cursor at the beginning of the text with nothing highlighted.

Remarks

EditItem allows you to programmatically simulate a mouse click\double click to put an item into edit mode.

See Also

mk:@MSITStore:C:%5CProgram%20Files%20%28x86%29%5CCodejock%20Software%5CActiveX%5CXtreme%20SuitePro%20ActiveX%20v13.3.1%5CHelp%5CSymbolReference.chm::/XtremePropertyGrid~PropertyGrid.html - PropertyGrid Control



-------------
Product: Xtreme SuitePro (ActiveX) version 13.3.1
Platform: Windows 7 64 bit
Language: Visual Basic 6.0




Posted By: Aaron
Date Posted: 02 November 2010 at 12:16pm
Hi,
 
Do you need PropertyGrid or ReportControl EditItem method?
 
ReportControl: Use above code
 
PropertyGrid: wndPropertyGrid.EditItem wndPropertyGrid.FindItem(ID_OF_ITEM), True '(or False)
 
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: wakerunner
Date Posted: 02 November 2010 at 12:37pm
I was looking for some actual sample code, which is very sparse in the Codejock help files but never mind I decided to use another control for what I was doing. Codejock controls are nice if you can get them to work but due to very poor help files with very little sample code it usually takes you a lot of extra time to do anything with codejock.

-------------
Product: Xtreme SuitePro (ActiveX) version 13.3.1
Platform: Windows 7 64 bit
Language: Visual Basic 6.0




Posted By: Albert1
Date Posted: 17 November 2010 at 5:33pm
Originally posted by wakerunner wakerunner wrote:

Codejock controls are nice if you can get them to work but due to very poor help files with very little sample code it usually takes you a lot of extra time to do anything with codejock.
IMHO CJ's help is one of the best around (try to find something in the MS Excel help Wink ... its worse than the CJ one). The sample code is enough to do the job.
 
The *art* of computer programming is not copy-paste based.
 
I agree RC is not a simple control to use. This is due (imho) to the continue patching and because it's designed to do data entry and report in the same control (utopia!).
Maybe other controls (commandbar, panel and some controls) are more refined but even RC is good.


-------------
Product: Xtreme SuitePro (ActiveX) version 13.4.1 / 16.3.0

Platform: Windows Vista (32bit) - SP 2

Language: Visual Basic 6.0 (SP6)



Posted By: wakerunner
Date Posted: 17 November 2010 at 5:56pm
I agree its not a simple control to use and it is very advanced, but the reason its not simple is there is virtually no documentation. Help topics that don't give examples of how to use a function, with links to other topics without examples. The help file has the same topics repeated over and over for every control that shares the functions with absolutely no difference in the content except for the "See also".
The *art* of computer programming is not copy and paste based. lol, nothing in the help to even reference, much less copy and paste. I guess you think the *art* of programming is trial and error for hours when a simple example would have explained it in 2 seconds.
 
Open their help file and you will see how much effort went into it, how hard is it to compile a help file and set it to remember its last windows size? Instead theirs opens up in the tiny preset size they think we should all be crammed into.
 
I know writing help takes almost as much time as the code but come on, hire somebody part time to improve your help why don't you or have somebody spend an hour a week on it, how expensive could it be?
 
This all being said CJ does make some fine control, but like I said it will take you much longer than it should to do anything due to poor documentation.
 


-------------
Product: Xtreme SuitePro (ActiveX) version 13.3.1
Platform: Windows 7 64 bit
Language: Visual Basic 6.0





Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net