Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Itay Shahaf
|
Aug 2, 2007 - 6:10 AM
|
Hi, I’m trying to use the CExtGridCellFile class and I’m having some problems: 1. How can I make the grid cell editable, so the user wiil be able to type the requested file path manually without using the ellipsis button ? 2. I’m trying to set the filedialog files extansion and files type filter, but without succes. can you please give a code example demonstrating how to do it propely ?
Thanks, Itay.
|
|
Technical Support
|
Aug 2, 2007 - 2:35 PM
|
1. Apply the __EGWS_BSE_EDIT_CELLS_INNER style to your grid and make sure that your cell does not have the __EGCS_NO_INPLACE_CONTROL style.
2. You can specify the file extensions in the CExtGridCellFile cell in this way: pCellFile->FileDialogFilterSet(
_T("Supported Image Files (*.emf,*.bmp,*.jpg)|*.emf;*.bmp;*.jpg|EMF Files (*.emf)")
_T("|*.emf|BMP Files (*.bmp)|*.bmp|JPG Files (*.jpg)|*.jpg|All Files (*.*)|*.*||")
); Please note that the Prof-UIS_Controls sample (the Grid tab) shows how you could use the CExtGridCellFile cell.
|
|