 |
|
 |
How to convert the project to "Use MFC in a Static Library" step by step?
Any suggestion?
|
|
|
|
 |
|
|
 |
|
 |
I have configured columns as shown below
m_ctrlTreeList.SetColumnModify( 1, TLM_COMBO );
m_ctrlTreeList.SetColumnDefaultText( 1, "600|700|800" );
But when i click on the column the combobox wont shown up.
Please advise if any property needs to be configured.
Thanks
Mahadev
|
|
|
|
 |
|
 |
Try to modify the code in TreeListCtrl.cpp, in method ,
void CTreeListCtrl::OnLButtonDown(UINT nFlags, CPoint point)
the combo box will work,see below:
if( nFlag&TLHT_ONITEMTEXT)
{
if(m_pModifyItem == NULL)
{
BeginModify( pItem, iSubItem );
}
else
{
if( pItem == m_pModifyItem )
BeginModify( pItem, iSubItem );
else
FinishModify();
}
}
|
|
|
|
 |
|
|
 |
|
 |
Hello Dear Developers! Hello TigerX!
TurboDLL Controls is a great software component - well used in a lot of my toolssince years.
Now we make first experiences with windows 7. We see a strange visual effect during drag & drop operation.
During mouse movement a middle-large GREY and TRANSPARENT rectangle is around the mouse. I found that the layered windows did cause the effect.
If I exclude (comment out) in CTLCDragWnd::OnPaintBMP the following code sequence
...
g_lpfnUpdateLayeredWindow (
GetSafeHwnd(), pPDC -> GetSafeHdc(), &rcWindow.TopLeft(), &CSize( rcWindow.Width(), rcWindow.Height() ),
m_dcMem.GetSafeHdc(), &CPoint( 0, 0 ),
0x00, &bf, ULW_ALPHA);
g_lpfnSetLayeredWindowAttributes( GetSafeHwnd(), 0x000000, 160, ULW_ALPHA );
...
the grey rectangle disappear.
DID ANYBODY HAVE AN IDEA HOW THE CODE HAVE TO LOOK TO BE "Vista" OR "W 7" compatible?
Thank you very mach! Every help is welcome.
With kind regards
Marko Winter
|
|
|
|
 |
|
 |
I want to add combo box items to the list control
How to add items to combobox
and where to add combo box items.
Pls help me.
|
|
|
|
 |
|
 |
Hi!
I think Sakhalean has solved the problem in meantime, but I give a hint, for all future readers too:
Using tree list items a combo box is easy.
1. Setting the col to TLM_MODIFY
YOUR_TREELIST_CONTROL.ColumnModify (iCol, TLM_COMBO);
2. Set the Items text with '|' separator
CString sAllItems = 'Item1|Item2'
sAllItems = sAllItems + '|'
sAllItems = sAllItems + 'Item3';
YOUR_TREELIST_CONTROL.SetItemText(pItem, sAllItems, iCol);
3. Choose a prefered item text
YOUR_TREELIST_CONTROL.SetColumnDefaultText (iCol, 'Item1');
That should work,
Good luck
Marko Winter
|
|
|
|
 |
|
 |
Hi,
Thank you very much for the reply.
Any have I have solved the problem.
|
|
|
|
 |
|
 |
1 m_ctrStat.SetColumnModify(nCol, TLM_COMBO );
2 m_ctrStat.SetColumnDefaultText(nCol, "xx|mm|ss" );
3 m_ctrStat.SetItemText(pItem, "xx", nCol);
|
|
|
|
 |
|
 |
How can i insert an item in column n(n != 0)?
mr_lc
20100521
thanks a lot.
|
|
|
|
 |
|
 |
First of all, thanks for distribution this control.
But i found bug this control using with CComboBox.
I put this control in Dialog Box, and combobox too.
After popup dialog, some data in combox print this control's columns.
How can i solve this problem?
Help me, please~
|
|
|
|
 |
|
 |
I get this error as soon as I create the second CTreeListCtrl object (not the control, the object itself). It doesn't matter if the first of those objects is destroyed before the second is created or not.
Does anybody have an idea?
|
|
|
|
 |
|
 |
when the ParentItem was not Expended
I use GetItemCount(),and GetItemText( int nItem, int nSubItem ), there will be a bug.
|
|
|
|
 |
|
 |
Sir, Great application, but i want multiline text in node,
for e.g.
first view:
+ Node
Then:
- Node
+ Node is in
Multiline
|
|
|
|
 |
|
 |
The code seems to crash sometimes in the CTreeListCtrl::CancelControl(). Anyone seen this issue and found a fix for it?
-Ashutosh
|
|
|
|
 |
|
 |
Hello dear Community! We are using the Tree List Control in TurboDll succesful in some of our programs. In general it is working fine. But in sometimes I get a crash in following function of TurboDLL: BOOL CTreeListCtrl::CancelModify() { ... // cancel all columns of an item CancelControl(); // restore values from m_pUpdateItem for( int iColumn = 0; iColumn < GetColumns(); iColumn++ ) { THE FOLLWING CODE CAUSES THE CRASH: m_pModifyItem->SetText( m_pUpdateItem->GetText( iColumn ), iColumn ); } ... return TRUE; } let me explain what happens in program around? I use ComboBox Control in the the Tree List Ctrl - if combo box is elapsed and an entry is changed and ESCAPE key is pressed. I process the bevovior in OnEndCOntrol. Then the crash comes a SECOND cal of OnEndControl. Do I made something wrong in .OnEndControl. if necessary I could post more code. Any hints are welcome. Thanks in advance
Greetings from Marko Winter Software & Systems SysMik GmbH Dresden
|
|
|
|
 |
|
 |
Hi,
I am using treelist control and now i require to implement a search and highlight text feature in it.
Though i am able to find a text but unable to highlight it.
For example if i have "Ram is a good boy" in a column in tree list control, and if i search with 'good' then it should highlight good instead of whole column.
Can you please help me in this matter?
Thanx in advance
Regards,
Deb
|
|
|
|
 |
|
 |
display No MFC error:
kill this in xTurboDLL.h can access compile
/*
#ifndef _AFXDLL
#pragma message("*** XXXXXXXXXXXXXXXXXXXXXXXXXXXX ***")
#pragma message("*** Must Using MFC in Shared DLL ***")
#pragma message("*** XXXXXXXXXXXXXXXXXXXXXXXXXXXX ***")
#error No MFC
#endif
*/
but this TreeList can't display like Debug.Dispaly error!
|
|
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
 |
Sometimes,when it Crashed, I can see the twinkling stripes.
But It is ok in Debug Version.
And if the TreeList has not a lots of items,It is ok and it will not Crash
Anyone has ever seen this?
Thanks!
modified on Monday, April 28, 2008 5:51 AM
|
|
|
|
 |
|
 |
I Get it at last:
The Layout() is contained in OnSize(), but the SetAllScroll() in Layout() may cause the OnSize(), so it goes to endless Cyc;
Solution:
Move the two SetAllScroll() funtions in Layout() to OnSize().
|
|
|
|
 |
|
 |
The Tree-List control is a native Win32 control for ages.
Why reinventing the wheel ?...
|
|
|
|
 |