|
hi,
thanks chandu,
but it's not useful to me. i'am using a flexgrid and a edit box in a dialog . i have 10 row data in the flex grid.
example: first row first cell(0,0) containing data "raja"
second row first cell(1,0) containing data "panthal"
if i enter "panthal" in the edit box, the flexgrid cursor should be highlighted in the second.
is it any function to implement it?
please help me ,
|
|
|
|
|
if it is MS flex grid, then, you can set your required cell using
SetRow(row);
and
SetCol(col);
i hope you would have to explain your task step by step such that, we can understand where exactly you are stuck up.
|
|
|
|
|
thank u very much chandu,
your code is useful to me.
but how can i get my mouse selection to that row? (not the cursor )
and the selected row should be highlighted with a color
i'm waiting for your kind reply,
|
|
|
|
|
Up to which MFC version is this MFCFlexGrid available?
I had to deal with the CListCtrl to make some tables and it was quite annoying at the beggining.I saw the FlexGrid in VB by a partner and was pretty easy to use but I didn't find anything in my doc (VC++ 6)
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
i frequently use msflex grid in vc 6.0.
but you have to include it from components and controls into your project.
good luck.
--------------------------------------------
Suggestion to the members:
Please prefix your main thread subject with [SOLVED] if it is solved.
thanks.
chandu.
|
|
|
|
|
Ahhhmmm, so it is an extra module. I was looking for it in the VStudio 6 package ehehehe, thanks
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
Hello,
How do we know if we press enter key in CEdit? is there a message? like onclick,onenterkey or something,
i searched alot about it, but i didnt find exactly what i should to do
thanks.
|
|
|
|
|
overide the pretranslate message and check the message.
BOOL MyDlg::PreTranslateMessage(MSG* pMsg) <br />
{<br />
if( pMsg->hwnd == m_edit.m_hWnd && pMsg->message == WM_KEYDOWN && pMsg->wParam == VK_RETURN )<br />
{<br />
}<br />
return CDialog::PreTranslateMessage(pMsg);<br />
}
Where m_edit is the control variable of edit control.
|
|
|
|
|
thanks a lot it also useful for me.
|
|
|
|
|
hey..
i am using C++ (wxWindows for GUI)--I have an image file in RAW format ...i have read the file into a 2-D array, how that data is to be used display the image on a control?
thanks
|
|
|
|
|
Dear Colleagues ,
Is there any idea to create a small white hint box to alert the user that he enterd a wrong entry .
Best regards,
|
|
|
|
|
What about using a tooltip?
- NS -
|
|
|
|
|
Do you want allow to user that has a select or you want only to show an alert?
|
|
|
|
|
|
Jarrah_12 wrote: only an alert . thanx
look at CToolTip class, as pointed out by NS!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Yeah I agree Tooltip is good selection.
|
|
|
|
|
, Guys thank you very much for your help and fast respond .
|
|
|
|
|
I glad your problem solved.;)
|
|
|
|
|
Hamid. wrote: I glad your problem solved.
me too!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi All,
In a Multithreaded App, is it possible to create a rabbit from a thread? A rabbit means the worker thread would jump back into the main thread and exit (abandoning it's own ThreadProc exit).
Jeff
|
|
|
|
|
In a multithreaded Windows application?
I've personally never heard of that, but it doesn't sound
possible with Windows threads. There's no way to jump to
another thread.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Jeffrey Walton wrote: A rabbit means the worker thread would jump back into the main thread and exit
Is the goal to force the creation of a rabbit? or is the goal some functionality that the rabbit provides? if the latter, have you considered a method that achieves the same results?
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
Hi El Corazon,
El Corazon wrote: Is the goal to force the creation of a rabbit?
This part is easy - CreateThread() does the trick. It's the non-standard behavior
El Corazon wrote: or is the goal some functionality that the rabbit provides
It is an academic exercise to see what I can accomplish within the restraints of the compiler.
Jeff
|
|
|
|
|
I'm working in VC++6. How can i do to set the cursor in a row position of CLisCtrl? That way, if the user press down or up arroy the movement starts from the designated position. I can use the CListCtrl.EnsureVisible( iPos, TRUE) to ensure visibility but the movement starts from the begin.
Thanks a lot.
|
|
|
|
|
Try using list.SetItemState(iPos,LVIS_FOCUSED,LVIS_FOCUSED) .
See CListCtrl::SetItemState[^] for more information.
Software Zen: delete this;
|
|
|
|