Print Page | Close Window

Resource Files HoTo?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=5463
Printed Date: 26 April 2024 at 6:14pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Resource Files HoTo?
Posted By: cschmuck
Subject: Resource Files HoTo?
Date Posted: 08 November 2006 at 10:57am
Hello,
I'm currently testing the property grid ActiveX control with Visual Foxpro.
I could not find a way how to load a resource file to translate the control to german. The documentation gives an example in VB
Private Sub Form_Initialize()
    PropertyGridGlobalSettings.ResourceFile = App.Path & "XTPResourceDe.dll"
End Sub

But where do i get the PropertyGridGlobalSettings object from?

Would be great if someone could give me a hint.

Clemens



Replies:
Posted By: Oleg
Date Posted: 08 November 2006 at 11:31am

Hi,

 
Try to create GlobalSettings object using its progId:
Codejock.PropertyGridGlobalSettings.10.3.1


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: cschmuck
Date Posted: 08 November 2006 at 11:48pm
That was it. Thanks!

So for anyone using the property grid with VFP here's the code for initializing the PropertyGridGlobalSettings object:

LOCAL loGlobal AS Codejock.PropertyGridGlobalSettings.10.3.1
loGlobal = NEWOBJECT("Codejock.PropertyGridGlobalSettings.10.3.1")
loGlobal.ResourceFile = App.DirLocalSettings + "SuitePro.ResourceDe.dll"

Clemens


Posted By: vicos
Date Posted: 01 February 2013 at 4:16pm

Another example in VFP

http://expertsoftwarecompany.wordpress.com/2012/06/05/codejock-samples/

http://expertsoftwarecompany.wordpress.com/2012/06/07/codejock-sample-update-taskpanel-example/




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