PATCHWISE.COM
The Creative Development Company
  Log in to check your private messagesLog in to check your private messages   Log inLog in 
  PatchWise Software Community ...................................................................................................................
FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile 

How to get helpfile?

 
Post new topic   Reply to topic    PatchWise Software Community Forum Index -> LocWise Multilingual SDK Support
View previous topic :: View next topic  
Author Message
pham



Joined: 12 Jan 2005
Posts: 2

PostPosted: Jan 12, 2005 12:10 pm    Post subject: How to get helpfile? Reply with quote

I found that there is a line begining with "HelpFile" in the laguage file (.lng). How can I get this line from my program? Many thanks.
Pham
Back to top
View user's profile Send private message
Support
Site Admin


Joined: 03 Nov 2002
Posts: 118

PostPosted: Jan 12, 2005 5:45 pm    Post subject: Reply with quote

You can use the LcwGetCurrentHelpFile function to get the HelpFile value from the language file.
_________________
At Your Service
The PatchWise Software Support Team
Back to top
View user's profile Send private message Visit poster's website
Guest






PostPosted: Jan 13, 2005 2:25 am    Post subject: Reply with quote

Thanks. That is very useful!!!

I cannot find this information from LocWise help (LocWise functions). Could you send me the latest help? Thanks again.
Back to top
Support
Site Admin


Joined: 03 Nov 2002
Posts: 118

PostPosted: Jan 13, 2005 7:35 am    Post subject: Reply with quote

This function does not show in the help file. It's an extension of the LcwGetLangFileString function.

The other similar functions like LcwGetCurrentHelpFile are LcwGetCurrentAuthorContact and LcwGetCurrentAuthorName.
_________________
At Your Service
The PatchWise Software Support Team
Back to top
View user's profile Send private message Visit poster's website
pham



Joined: 12 Jan 2005
Posts: 2

PostPosted: Jan 14, 2005 10:52 am    Post subject: Reply with quote

Thank a lot!

Another question:
I have tried to translate a PropertyPage by flowing code:

BOOL CPropertyPage1::OnInitDialog()
{
CPropertyPage::OnInitDialog();
LcwTranslateDialog(this->m_hWnd, IDD);

The content of this property page is translated well. However, the name of the tab (caption of dialog of property page) is still in English. So why and how to corrrect? Thanks in advance.
Back to top
View user's profile Send private message
Support
Site Admin


Joined: 03 Nov 2002
Posts: 118

PostPosted: Jan 16, 2005 11:42 pm    Post subject: Reply with quote

You should use CPropertyPage class instead of CDialog and set m_psp.pszTitle parameter to localized string during constructing.

code looks like this:

Code:
CCSPropertyPage::CCSPropertyPage(UINT nIDTemplate, UINT nIDCaption)
   : CPropertyPage(nIDTemplate, nIDCaption)
{
    //--- LocWise ---
    if (nIDCaption != 0)
    {
        VERIFY(LcwLoadString(nIDCaption, m_strCaption));
        m_psp.pszTitle = m_strCaption;
    }
    //=== LocWise ===
}


Please check the chicdial.cpp in wordpad sample which was shipped with locwise for more detail about property sheet and property page. The "Options" Dialog in wordpad sample is a property sheet.
_________________
At Your Service
The PatchWise Software Support Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    PatchWise Software Community Forum Index -> LocWise Multilingual SDK Support All times are GMT - 8 Hours
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
Powered by phpBB © 2001, 2002 phpBB Group
 
©  2002 Hanmen Software, Inc. All rights reserved.  | Terms of Use | Privacy Statement