Subject |
Author |
Date |
|
Eric
|
Mar 28, 2017 - 10:09 AM
|
Is it possible to do Contextual Tab Sets and Contextual Tabs with your CExtRibbonBar? Just like in Excel.
|
|
Ralph Spaulding
|
Mar 15, 2017 - 4:39 PM
|
Hi,
I need to show the time in this format which includes milli seconds.
MM/DD/YY HH:MM:SS.MS
02/24/17 17:43:40.849
CExtGridCellDateTime does not support milliseconds.
How can I show in milliseconds as we need sorting capability also?
Thanks,
-Ravi
|
|
TSELLC Support
|
Jul 17, 2017 - 7:53 AM
|
This was answered in a separate email.
TSELLC_Support
|
|
Vincent SAFFRE
|
Mar 7, 2017 - 6:01 AM
|
Hello,
I a trying to add icons on the tab control of my CExtResizablePropertySheet using the same code as a CPropertySheet but it doesn’t work;
To set icons on the tab control of a CPropertySheet, I used to do this:
//Instanciate a CImageList with several icons
CImageList m_oImagesTab;
m_oImagesTab.Create(16, 16, ILC_COLORDDB | ILC_MASK, 5, 0);
m_oImagesTab.Add(AfxGetApp()->LoadIcon(IDI_KO));
m_oImagesTab.Add(AfxGetApp()->LoadIcon(IDI_OK)); //Set icon on OnInitDialog
BOOL CMyPropertySheet::OnInitDialog()
{
PARENT_CLASS::OnInitDialog(); int iPage1 = 0;
SetPageIcone(iPage1 );
return TRUE;
}
void CMyPropertySheet::SetPageIcone(int p_iNumPage)
{
CTabCtrl * pTabCtrl = PARENT_CLASS::GetTabControl();
pTabCtrl->SetImageList(&m_oImagesTab);
TC_ITEM tcItem;
tcItem.mask = TCIF_IMAGE;
tcItem.iImage = 0; // Set icon index from CImageList
pTabCtrl->SetItem(p_iNumPage /*nNumPage*/, &tcItem); // Apply icon
}
This code doesn’t work for CExtResizablePropertySheet and I can’t find a sample of a CExtResizablePropertySheet with icons on tabs.
Can someone help?
|
|
TSELLC Support
|
Jul 17, 2017 - 7:43 AM
|
This was answered in a separate email.
TSELLC_Support
|
|
Vincent SAFFRE
|
Mar 7, 2017 - 7:45 AM
|
I’m working an Prof-UIS v3300
|
|
Eric
|
Mar 6, 2017 - 2:52 PM
|
If you comment out line 2489 in MainFrm.cpp of the RibbonBar_1400 example...
// pTBCI_GalleryGroup->ModifyItemStyle( 0, __TBWI_LISTBOX_VIEW );
... you get the following weird item selection: Note that all the themes do this and that we don’t want to use this control in a "Listbox View" format. Can you advise or fix the problem or tell me where in the code the selection is drawn? Thanks Raymond Barre
|
|
Eric
|
Mar 2, 2017 - 4:44 PM
|
Is there a way to apply the Prof UIS theme to the CMFCRibbonBar which, I sorry to say, works much better the Prof UIS ribbon.
|
|
Vincent SAFFRE
|
Feb 21, 2017 - 6:44 AM
|
I’m using Visual10 with ProfUIS 3.3.0.0 under Windows 7 with French language When I generate a new application using ProfUISAppWizard, the Wizard ends with an error message due to the fact that it put an empty code page (while I kept the US langage for resource): #pragma code_page() I replace it with #pragma code_page(1252) then I can compile and open the resource view...
|
|
Vincent SAFFRE
|
Feb 17, 2017 - 11:05 AM
|
As prof-uis classes override the MFC 6 classes, I suppose that its is not recommended (or not nossible) to use new MFC classes in an application that already use prof-uis. Ex : what will happen if I add a mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font: minor-latin;mso-bidi-font-family:"Times New Roman";mso-bidi-theme-font:minor-bidi; mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA" lang="EN-US">CMFCEditBrowseCtrl In a dialog that calls Calibri;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman";mso-bidi-theme-font:minor-bidi; mso-ansi-language:FR;mso-fareast-language:EN-US;mso-bidi-language:AR-SA">SubclassChildControls ? Calibri;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman";mso-bidi-theme-font:minor-bidi; mso-ansi-language:FR;mso-fareast-language:EN-US;mso-bidi-language:AR-SA">Is it possible to use the MFC pane/docking system in place of prof-uis one (the rendering is not the same and in some cases, the MFC functionning is better) ? So I was looking for a list of recommendations to know what is possible and what is not recommended.
|
|
Vincent SAFFRE
|
Feb 17, 2017 - 11:30 AM
|
I retry as my 1st post is not readable : As prof-uis classes override the MFC 6 classes, I suppose that its is not recommended (or not nossible) to use new MFC classes in an application that already use prof-uis. Ex : what will happen if I add a CMFCEditBrowseCtrl In a dialog that calls SubclassChildControls ? Is it possible to use the MFC pane/docking system in place of prof-uis one (the rendering is not the same and in some cases, the MFC functionning is better) ? So I was looking for a list of recommendations to know what is possible and what is not recommended.
|
|
Ralph Spaulding
|
Feb 15, 2017 - 7:20 PM
|
Hi,
I am using pic control with CExtGridWnd class (same as CFilteredGridWnd sample).
I need to call function similar to List Control’s SetItemData ().
Is there any function available that binds the row ?
Thanks,
-Ravi
|
|
TSELLC Support
|
Feb 16, 2017 - 4:01 AM
|
|
|
Stephan Finkler
|
Feb 14, 2017 - 9:04 AM
|
Dear Sir or Madam,
we have been using ProfUIS Version 2.81 for years, and now we need to upgrade to the current version due to issues with newer OS versions and HD monitors.
We have already purchased ProfUIS Version 3.30.
I’m trying to adapt the version.
Now I found out, that the reason for not upgrading earlier still exists.
Scenario:
There is a customized dialog (derived from CExtResizableDialog) with a customized ComboBox (derived from CExtComboBoxBase), some CExtCheckBoxes, CExtButtons, a CExtLabel,
a toolbar (ProfUIS-ControlBar) and a custom drawn ListControl.
About 150000 items are added to the ListControl.
After scrolling down (down arrow key) for one minute, there are about 1400 items scrolled in the old version (2.81) and only 600 with the new (3.3).
That is slow and not really acceptable.
I’m quite sure, that this behaviour is caused by the installed global hooks in CExtResizableDialog and CExtComboBoxBase. In version 2.81, these hooks were not installed.
The default implementation is HookSpyRegister( __EHSEF_MOUSE_ALL_WITHOUT_WHEEL|__EHSEF_WND_PROC_IN|__EHSEF_PRE_TRANSLATION ),
in our case called in CExtResizableDialog::PreSubclassWindow() and CExtComboBoxBase::_CreateHelper().
I added some logging and found out, that in that minute of vertical scrolling, the WndProc() is called more than 3’000’000 times for the WM_NOTIFY Message
without doing anything. Collected calls sum up to more than 10’000’000.
If I change the calls to HookSpyRegister( __EHSEF_MOUSE_ALL_WITHOUT_WHEEL | __EHSEF_PRE_TRANSLATION ) for the dialog respectively
HookSpyRegister(__EHSEF_KEYBOARD | __EHSEF_PRE_TRANSLATION) for the combobox, I get approximately the same time values for version 3.3 and version 2.81.
My question is, that if I remove __EHSEF_WND_PROC_IN in the call to HookSpyregister(), will I encounter any problems, that you know of?
I couldn’t detect any differences, when working with the application.
Besides, do you have a better solution?
Best regards,
Michael Herzog
|
|
Ralph Spaulding
|
Feb 8, 2017 - 7:42 PM
|
Hi,
I am planning to use the Gridcontrol used in sample FilteredGrids.
But my CMainFrame already derives from a seperate class FrameOrg. How can I add CExtNCW < CFrameWnd >
I tried both approaches shown below. But I am getting errors.
class CMainFrame : public CExtNCW < CFrameWnd > , public FrameOrg class CMainFrame : virtual public CExtNCW < CFrameWnd > , virtual public FrameOrg
Some of the errors are
MainFrm.cpp(242): error C2594: ’static_cast’ : ambiguous conversions from ’void (__thiscall CMainFrame::* )(void)’ to ’void (__thiscall CWnd::* )(void)’ 1>MainFrm.cpp(242): warning C4407: cast between different pointer to member representations, compiler may generate incorrect code 1>MainFrm.cpp(243): error C2594: ’static_cast’ : ambiguous conversions from ’void (__thiscall CMainFrame::* )(void)’ to ’void (__thiscall CWnd::* )(void)’ 1>MainFrm.cpp(243): warning C4407: cast between different pointer to member representations, compiler may generate incorrect code 1>MainFrm.cpp(244): error C2594: ’static_cast’ : ambiguous conversions from ’BOOL (__thiscall CMainFrame::* )(void)’ to ’BOOL (__thiscall CWnd::* )(void)’ 1>MainFrm.cpp(244): warning C4407: cast between different pointer to member representations, compiler may generate incorrect code 1>MainFrm.cpp(245): error C2594: ’static_cast’ : ambiguous conversions from ’void (__thiscall CMainFrame::* )(UINT_PTR)’ to ’void (__thiscall CWnd::* )(UINT_PTR)’ 1>MainFrm.cpp(245): warning C4407: cast between different pointer to member representations, compiler may generate incorrect code
If anyone came across similar situation and have a solution, please share.
Thanks,
-Ravi
|
|
Thomas Roeder
|
Feb 1, 2017 - 12:12 PM
|
Hi,
I was checking on CExtGridWnd documentation recently, but did not found the way to catch the double click event on the row. For focus changes there is a virtual void REDIRECTED_OnGbwFocusChanged(...), but I see nothing on double click. Could you provide me with some example how to do this?
Thanks.
|
|
Thomas Roeder
|
Feb 22, 2017 - 3:12 PM
|
|
|
TSELLC Support
|
Feb 2, 2017 - 8:30 AM
|
Hi,
Use OnGbwAnalyzeCellMouseClickEvent; check if nChar == VK_LBUTTON and nRepCnt == 2
TSELLC_Support
|
|
flsilva
|
Dec 29, 2016 - 3:30 PM
|
Hi guys,
I’m migrating my projects from VS2012 to VS2017 and my Prof-UIS 2.9.4 stop working. Anyone knows if lastest version of Prof-UIS works with VS2017?
|
|
TSELLC Support
|
Jan 3, 2017 - 4:16 AM
|
Hi,
Latest profuis version (3.3) has support until VS2015. The new version will include support for VS2017. If you can’t wait, converting VS2015 projects from 3.3 version to VS2017 it’s the easy way to do it.
TSELLC_Support
|
|
Eric
|
Nov 29, 2016 - 1:37 PM
|
I’ve been trying to put a date picker in a CExtPopupMenuWnd menu item. Much like putting the edit control CInPlaceEditWnd in a menu item. I am catching the g_nMsgCreateInplaceEdit message and creating my date picker. It shows up in the menu item. The problem now is that when I pop the date picker menu there is an ASSERT because the parent menu has been destroyed. Any ideas?
|
|
Eric
|
Feb 9, 2017 - 7:04 PM
|
How can I put a time control into a Popup Menu?
|
|
Eric
|
Dec 5, 2016 - 4:30 PM
|
Thanks, it almost does the job. What we would need is to be able to type out a date like in the "regular" date & time picker: Is that possible?
|
|
Eric
|
Jan 4, 2017 - 10:01 AM
|
Hello? Would it be possible to put the Date & Time picker in a menu item?
|
|
TSELLC Support
|
Dec 5, 2016 - 7:33 AM
|
Hi,
In ProfuisControls demo application you have a "Popup Menus" entry where you can see a date picker control popup implemented. If you cant use this example or you have something different make a demo application and send to us.
TSELLC_Support
|
|
Maik Schöpe
|
Nov 25, 2016 - 6:39 AM
|
We have a Grid with 2 outer rows at top and in the top row the column headers are represented by joining the cells together. Imagine a grid with 30 columns and in the first row the first 20 cells are joined together. When this grid is printed, tis cell that spans over more than 20 columns doesnt fit on the first print page. However the cell is just printed over the border of the first page and on the second page only a small portion of this cell is printed. I evaluated that in the OnPreparePrinting_RenderSingleCellAtTopOrBottom function the render width is calculated by adding the joined cell widths together, but there is no check, if it is actually overprinting the page. Sincerely, Maik Schöpe (ORSOFT GmbH)
|
|
TSELLC Support
|
Nov 28, 2016 - 4:43 AM
|
This was answered in a separate email.
TSELLC_Support
|
|
Christan HIRIGOYEN
|
Nov 16, 2016 - 10:49 AM
|
Hi,
I use a CExtNCSB < CExtListCtrl > and I have problem when scrolling with a lot of elements. The problem is on line 3445 of file Ex-tControlsCommon.cpp the position sent by Windows in the message is in a short word.
for a next release, could you integrate a patch like that? (you will have to do same for WM_HSCROLL)
UINT nSBCode = UINT(LOWORD(DWORD(wParam))); UINT nPos = UINT(HIWORD(DWORD(wParam))); // Call GetScrollInfo to get current tracking // position in si.nTrackPos SCROLLINFO si; ZeroMemory(&si, sizeof(si)); si.cbSize = sizeof(si);
CExtNCSB_ScrollContainer * pWnd = NCSB_GetContainer( CExtNCSB_ScrollContainer::__EM_VERTICAL_SCROLL_BAR ); if (pWnd) { ASSERT(pWnd->GetSafeHwnd() != NULL); CExtScrollBar * pScrollBar = pWnd->GetScrollBarInContainer(); if (pScrollBar->GetScrollInfo(&si, SIF_RANGE | SIF_PAGE | SIF_POS | SIF_TRACKPOS)) { // GetScrollInfo failed: keep 16 bits value nPos = si.nTrackPos; } }
Regards,
|
|
TSELLC Support
|
Nov 28, 2016 - 4:37 AM
|
Hi Christan,
We’ll correct the issue.
TSELLC_Support
|
|
Ivan Belous
|
Oct 5, 2016 - 3:32 PM
|
Hello,
I try to use EnableDocking( CBRS_BORDER_LEFT ), but i has no effect. I have always the same behavior like CBRS_ALIGN_ANY.
if( m_wnBar.Create( _T("Bar"), this,ID_VIEW) ){ m_wnBar.EnableDocking( m_devEnableDockingInvDlg ); m_wnBar.DockControlBar( CBRS_BORDER_LEFT , 2, this, false ); //DockControlBar( &m_wnBar, CBRS_BORDER_LEFT ); }
|
|
TSELLC Support
|
Oct 6, 2016 - 4:23 AM
|
|
|
Brian Roberts
|
Jul 1, 2016 - 4:00 PM
|
The issue can be ssen in the ProfUIS_Controls example (3203)
- Select Tree View - Make sure that both "Multiple Selection" and "Subtract Selection" options are enabled - Click on an item in the tree - Shift + Click on another item to select a range of items
You can easily see that the range of items are selected, then de-selected, then finally selected. This can be rather slow (and annoying) in large Trees (1000 to 10000 entries including nested items).
Is there a combination of settings that avoids this while still alloying multiple selection and the ability to deselect a single item in a list?
thanks!
|
|
TSELLC Support
|
Jul 5, 2016 - 3:24 AM
|
Hi,
We confirm the problem. Unfortunately, there is no other combination of settings that avoid this. We’ll investigate the problem and we’ll get back to you.
TSELLC_Support
|
|
Mark Hatfield
|
Jun 29, 2016 - 12:59 PM
|
Hi,
Recently we upgraded our software to use the latest ProfUIS verion. Prior we were using 2.64.
We have a significant amount of grids in our product. With all our grids we set the BseStyle as follows: BseModifyStyle( __EGWS_BSE_DEFAULT, false);
This made by default, all the cells added to the grid EDITABLE. The cells which we DIDN’T want to edit, we would explicitly call: exerciseCell->ModifyStyle(__EGCS_READ_ONLY);
In Version 2.64, setting a cell READ_ONLY did not modify the color of the text. In Version 3.20, the text gets changed to a light grey. As expected, every cell in our application now shows looking disabled.
I have tried with some success to change this behavior. However, I’m looking for suggestions.
I’m aware that I can change the BseStyle to: BseModifyStyleEx( __EGBS_BSE_EX_HIGHLIGHT_PRESSING_COLUMNS_OUTER | __EGBS_BSE_EX_PROPORTIONAL_COLUMN_WIDTHS, 0, false );
I then remove all the calls exerciseCell->ModifyStyle(__EGCS_READ_ONLY) - there are more than 500+ throughout the code. I would rather not do this. I would also have to address the cells in which I need modification permission.
I tried to change the text color for READ_ONLY to black by calling: TextColorSet(__ECS_READ_ONLY, RGB(0, 0, 0)); in my Cell classes. This seemed to work at first, the text shows as black, until a hover over the cell (with hover shading selected), and the text goes grey, instead of staying black.
And finally, I wanted to be able to set the text color of a READ_ONLY cell at the grid level, when the cells are created. I thought I could do this by overriding CExtGridWnd::OnGridCellInplaceControlCreate in my grid class, however this doesn’t seem to be called when creating cells. (in my source, or the SimpleGrids sample)
To summarize, I’m trying to get the look I had with version 2.64 without having to remove every call to ModifyStyle(__EGCS_READ_ONLY).
Thanks! Mark
|
|
Mark Hatfield
|
Jul 4, 2016 - 8:51 AM
|
Thanks for the reply.
How do I set the text color for __ECS_SELECTED and __ECS_HOVERED for ONLY read only grid cells?
This sets for ALL read only: TextColorSet(__ECS_READ_ONLY, RGB(0, 0, 0));
Wouldn’t: TextColorSet(__ECS_SELECTED , RGB(0, 0, 0)); set the text color for ALL SELECTED, read only or otherwise?
|
|
TSELLC Support
|
Jul 4, 2016 - 3:51 AM
|
Hi,
You should set the cell text color for __ECS_SELECTED and __ECS_HOVERED also for read only grid cells. You can rewrite "virtual CExtGridCell * GridCellGet" method CExtGridWnd class and apply your desired cell style only when pInitRTC member is valid (the cell is created now).
TSELLC_Support
|
|
Mark Hatfield
|
Jul 4, 2016 - 8:52 AM
|
Reply
Thanks for the reply.
How do I set the text color for __ECS_SELECTED and __ECS_HOVERED for ONLY read only grid cells?
This sets for ALL read only: TextColorSet(__ECS_READ_ONLY, RGB(0, 0, 0));
Wouldn’t: TextColorSet(__ECS_SELECTED , RGB(0, 0, 0)); set the text color for ALL SELECTED, read only or otherwise?
|
|
Roberto Manes
|
Jun 10, 2016 - 3:39 AM
|
Hi I’m running prof-uis version 3205 and it seems that when I load the bmp file through the function LoadBMP_File the rgb triplets are swapped as bgr.
Bitmap is used in a CExtGridCellPicture oject.(see code below)
Could you check this behaviour ?
// preview CExtGridCellPicture *pCellPreview = STATIC_DOWNCAST( CExtGridCellPicture, GridCellGet( 5L, nRowNo, 0, 0, RUNTIME_CLASS(CExtGridCellPicture) ) );
CString szPrintJobBitmap; szPrintJobBitmap.Format(_T("%s\\preview.bmp"), pji->m_szFolder); pji->m_pBitmap = pCellPreview->BitmapGetBuffer(); pji->m_pBitmap->LoadBMP_File(szPrintJobBitmap, true, true);
pji->m_pBitmap->Make32(); pCellPreview->ImageModeSet(CExtGridCellPicture::eTile);// eStretch);
Thanks in advance
|
|
TSELLC Support
|
Jul 4, 2016 - 3:51 AM
|
This was answered in a separate email.
TSELLC_Support
|
|
Christan HIRIGOYEN
|
Apr 6, 2016 - 1:20 PM
|
Hello,
is there anything planned in a next release to handle High-DPI screen such as 240 dpi (250 %scaling) ?
I have received a new laptop with a 4K screen resolution. And I can’t work with it, as glyph in Prof-UIS built-in are too small., and some other things I can deal with my icons, my bitmaps, but not with built-in.
is there something planned in Prof-UIS? is there any advice ? (except using dpiAware=false in my manifest, which is just a work-around: I can’t have benefit of my screen in application drawing area)
is there anybody out there who experienced already such problem?
regards,
|
|
Reinhold Hoffmann
|
Apr 18, 2016 - 9:08 PM
|
Hi, We also have to start adjusting our products for high scaling (200% and more). Such scaling is required because of high resolution screens and in particular now for tablets which almost come with DPI=192 and more. DPI Awareness = NO is not an option. Talking about input for a next Prof-UIS release package, this feature is an urgent request. Regrads, Reinhold
|
|
TSELLC Support
|
Apr 18, 2016 - 9:05 AM
|
Hi,
The problem is currently reviewed and you’ll be notified when a solution is available.
TSELLC_Support
|
|
Oliver Rau
|
Apr 15, 2016 - 11:44 AM
|
|