Highlight Text in MFC EditBox Programming Software Development by everard …two editboxes. The first editbox contains the original logfile code, and the second editbox contains the equivalent code …of the first editbox in user-readable format. … specific code in the first editbox, the equivalent code in the second editbox should be highlighted automatically. Does… Re: Highlight Text in MFC EditBox Programming Software Development by everard … GetSel() will get the higlighted text on an editbox (the start and end position). I think this will solve … Subclassed Editbox Control: Do I need to create 2 subclasses for two edit controls? Programming Software Development by BenPage … edit boxes, and create a control variable for the one editbox that is of type: the one subclass, and to the… other editbox I add a control variable that is of type: the… Passing FFT data to an Editbox in an MFC App Programming Software Development by Sarlacc … that is used here and display that information in an editbox. Need help for MFC editbox Programming Software Development by nicholasamh … only get the line from editbox1 and paste it to editbox 2 with the help of button and with some errors… Re: Highlight Text in MFC EditBox Programming Software Development by Ancient Dragon See CEdit's [URL="http://msdn.microsoft.com/en-us/library/w9kftda4%28VS.80%29.aspx"]SetSel[/URL] method Re: Highlight Text in MFC EditBox Programming Software Development by Ancient Dragon Probably 1) get the text from box1 into a string object 2) get the text from box2 into another string object 3) search text from box2 to see if it contains the text in box1 4) if found, highlight the text in box2 Re: Highlight Text in MFC EditBox Programming Software Development by everard I think your suggestion is not applicable since the content of the two edit boxes are completely different. The first edit box is consist of numerical codes (1.100.23.45, 1) and the second edit box contains the equivalent of the numerical code in user readable format (root.user.image.format, black). Re: Highlight Text in MFC EditBox Programming Software Development by Ancient Dragon I suppose first you will have to figure out how to translate the numerical format in edit box #1 into the format contained in edit box #2. I have no idea how you would do that. Re: Highlight Text in MFC EditBox Programming Software Development by everard I already done the conversion from numerical codes to user-readable equivalent. I've created a database wherein the system consults in it for every conversion process. After the conversion, that is the only time where the highlighting feature takes place. Re: Highlight Text in MFC EditBox Programming Software Development by everard Here is my code... It`s just a sample code since I didn't code it yet in the actual program. I only created a different program just to test my codes. I've created two buttons, the first button assigns a value to the two edit boxes, and the other button highlights a text in the first edit box. My code doesn't work, do I made a mistake on my code?… Re: Highlight Text in MFC EditBox Programming Software Development by Ancient Dragon You have to set the focus to edit1 before calling SetSel() [code] CEdit* pEdit = ((CEdit*)GetDlgItem(IDC_EDIT1)); pEdit->SetFocus(); pEdit->SetSel(0, -1); // select everything [/code] Re: Highlight Text in MFC EditBox Programming Software Development by everard Thanks for the reply Ancient Dragon... It is now working :) So all I need to add is a SetFocus(). Re: Highlight Text in MFC EditBox Programming Software Development by Trepach What event handler should I use to highlight all the text in a edit box, when i click on it? I dont want to use buttons but the text boxes does not have OnBnClicked event. i just want the text to be ready for editing when i click on it. Re: Subclassed Editbox Control: Do I need to create 2 subclasses for two edit controls? Programming Software Development by Alvein [QUOTE=BenPage]I want the user to enter the password twice, once in one edit box and again in another. So I created two edit boxes and then to each edit box added a control variable of type the custom edit box subclass I created. Now the problem is that when a enter a character in either of the edit boxes, the OnKeyDown function of the subclass … Re: Subclassed Editbox Control: Do I need to create 2 subclasses for two edit controls? Programming Software Development by BenPage Hi Alvein I am not processing in the WndProc function where the HWND handle is passed as parameter. Lets say the class that I created, the custom edit box class, is called CMyEditControl. Then the function that I use to process the event that a key was pressed in the edit box looks like this: [code] void CMyEditControl::OnKeyDown(UINT … Re: Subclassed Editbox Control: Do I need to create 2 subclasses for two edit controls? Programming Software Development by Alvein Thinkin aloud....is it possible to include a protected variable in your custom class, and initialize it accordingly in the constructor? that way you could simply check its value in the OnKeyDown() event. Re: Need help for MFC editbox Programming Software Development by jencas You could possibly handle the WM_KILLFOCUS (or EN_KILLFOCUS or whatever) event of editbox1. Re: Need help for MFC editbox Programming Software Development by nicholasamh [QUOTE=jencas;963149]You could possibly handle the WM_KILLFOCUS (or EN_KILLFOCUS or whatever) event of editbox1.[/QUOTE] Thanks, I will try it out Re: Need help for MFC editbox Programming Software Development by Vallnerik nicolasahm, I would investigate the Dialog Data Exchange and Validation capability or DDX mechanism within the MFC. I think this may help you with what you want to do. This function is called to carry out the exchange of data between variables in the dialog and it's controls. Also I'm not sure exactly what you want to do but it sounds like you want… Re: Need help for MFC editbox Programming Software Development by ningappa Hi, i'm using VS2005 for my MFC application, i created a dialogbox with inside one EDIT box (IDC_EDIT1) and one LIST box (IDC_LIST1); i need a code that takes inputs "character" from keyboard in EDIT box and tranfer the same onto LIST box upon pressing ENTER key from keyboard!!!! I can do with an external button on dialogbox but i need … Invoking listview BeforeLabelEdit event on double click of an item Programming Software Development by sumitrapaul123 … = new Point(x1, y); this.Controls.Add(editBox); editBox.Focus(); editBox.Text = sItem.SubItems[1].Text; editBox.LostFocus += new EventHandler(editBox_LostFocus); } void editBox_LostFocus(object… Live Table edit- PHP and AJAX Programming Web Development by himanshu.1691 … alert('Enter something.'); } }); // Edit input box click action $(".editbox").mouseup(function() { return false }); // Outside click action $(document).mouseup…(function() { $(".editbox").hide(); $(".text").show(); }); }); </script>… bizzare problem with files Programming Software Development by lahom …;,"w"); //Create txt file for saving editbox content int nFileLong; //***********************************************// char strFilter[] = {…;,"w"); //Create txt file for saving editbox content int nFileLong; //***************************************************// char strFilter[] = {… .change() getting called twice? Programming Web Development by dschuett …} }); // Edit input box click action $(".editbox").mouseup(function(){ return false; }); // Outside click… action $(document).mouseup(function(){ $(".editbox").hide(); $(".text").show(); }); }​ … a simple one bar for using a percentage movement Programming Software Development by ferhatkuskaya … in the two values which comes from one editbox. If I write 50 to editbox, The colour bar will be half of… its height automatically. If I write 75 to editbox, The colour bar will be cutted 25 percent of that… a simple one bar for using a percentage movement Programming Software Development by ferhatkuskaya … in the two values which comes from one editbox. If I write 50 to editbox, The colour bar will be half of… its height automatically. If I write 75 to editbox, The colour bar will be cutted 25 percent of that… Re: a simple one bar for using a percentage movement Programming Software Development by ferhatkuskaya … in the two values which comes from one editbox. If I write 50 to editbox, The colour bar will be half of… its height automatically. If I write 75 to editbox, The colour bar will be cutted 25 percent of that… Re: Text, Textboxes, and One BIG Mess Programming Web Development by essential … <script type="text/javascript"> <!-- function editBox(id,name,e) { e = e ? e : window.event…; href="javascript:void(0);" onclick="editBox(\'test\',this.name)" style="text-decoration: …; href="javascript:void(0);" onclick="editBox('test',this.name)" style="text-decoration: … Dev c++ rand() Programming Software Development by Dingbats …(eventually) put a value in an Editbox. There are no other complaints from the…hwnd, (HMENU) 4,//ID_EDIT, NULL, NULL); //editbox button hwndButton = CreateWindow(TEXT("button"), TEXT…("Set editbox"), WS_VISIBLE | WS_CHILD, 250, 70, 80…