This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, December 23, 2008 1:20:19 AM(UTC)
Groups: Registered
Posts: 15
Hi!,
I am currently using v13 and intend to upgrade to v16. I would like to know if the following classes are available in LeadTools v16? If not, what are the corresponding classes and where can I find help files related to the same?
1. CLEADSaveType derived from COleDispatchDriver
2. CLEADScrollInfo derived from COleDispatchDriver
We make use of MFC 7.2.
Thanks,
Roshni
#2
Posted
:
Tuesday, December 23, 2008 5:45:27 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Roshni,
Many things have changed in our ActiveX controls since v13.
These 2 classes are MFC wrapper classes for objects that were part of LEADTOOLS 13 ActiveX controls. The first one (LEADSaveType) was part of the LEAD imaging common dialogs. These dialogs have been re-designed and are completely different in version 16. For more info, see the following "Version History" topics in the LEADTOOLS 16 Common Dialog COM objects help file:
- Version 14
- Changes from Version 14 to Version 14.5
- Changes from Version 14.5 to Version 16
About the LEADScrollInfo, there is a similar class in our Main OCX 16 MFC demos, which you can find in the following folder:
[LEADTOOLS ActiveX 16 folder]\Examples\OCX\MSVC\
#3
Posted
:
Sunday, December 28, 2008 7:36:07 PM(UTC)
Groups: Registered
Posts: 15
Thanks for your response,
We use LeadDlg with the following functions in version 13. Are these functionalities available in version 16? If not, could you
please provide their corresponding functions.
LeadDlg.SetEnableMethodErrors(FALSE);
LeadDlg.SetBitmap(m_Image.GetBitmap());
LeadDlg.SetChange(nPaintContrast);
LeadDlg.SetUIFlags( DLG_IMG_CONTRAST | DLG_IMG_SHOWPREVIEW );
LeadDlg.GetChange((long)this->m_hWnd);
LeadDlg.SetFilter(FILETYPES_FILTER);
LeadDlg.SetDialogTitle("Choose Folder containing TIFF Images to Organize");
LeadDlg.SetInitialDir( theApp.m_Path );
LeadDlg.FileOpen(parentWnd);
LeadDlg.SetFileDlgFlags(DLG_OFN_OVERWRITEPROMPT|DLG_OFN_NOCHANGEDIR);
LeadDlg.SetSaveFormatCount(nNumFormats);
LeadDlg.GetSaveFormats(q);
LeadDlg.SetFilterIndex(nFilterIndex);
LeadDlg.SetSubTypeIndex((short)nSubIndex);
LeadDlg.FileSave((long)this->m_hWnd);
LeadDlg.GetFileName();
LeadDlg.GetFileTitle();
LeadDlg.GetSaveFormat();
LeadDlg.GetSaveBitsPerPixel();
LeadDlg.GetSaveQFactor();
LeadDlg.Create(...)
LeadDlg.UnlockSupport(L_SUPPORT_PDF, "PDF Unlock Key String");
The hierarchy of the dialog classes seem to have changed. Since we do not make use of .Net classes in our project,
I need to make use of C++ Class Library - Common Dialog help. Please correct me if I am wrong.
Roshni
#4
Posted
:
Tuesday, December 30, 2008 1:00:29 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Roshni,
The first thing to decide is which LEADTOOLS programming interface you would like to use.
In your old code, it appears you were using the LEAD Main OCX. Although this works with C++, and MFC will wrap the OCX objects in classes you can use, this will not give you the full power of LEADTOOLS, because the Main OCX does not contain all LEADTOOLS functions.
Therefore, I recommend using the C-style DLL API functions, or the LEAD C++ Class Library.
The functions you asked about have the following equivalents in the C++ Classes:
For the Contrast Dialog, use the LDialogColor::DoModalContrast
For the File Open dialog, use the LDialogFile::DoModalOpen
For the File Save dialog, use the LDialogFile::DoModalSave
These are all in the LEADTOOLS Imaging Common Dialogs C++ Class Library help file.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.