Questions tagged [editcontrol]

Edit controls let a user view and edit text.

97 questions
2
votes
1 answer

Edit control doesn't generate WM_COMMAND messages

I have an edit control. In the parent window I'm listening a WM_COMMAND message. But my control doesn't send it on change. Moreover, when I'm watching messages with Spy I can see only different keyboard messages on the edit control itself and the…
nikitablack
  • 4,359
  • 2
  • 35
  • 68
2
votes
2 answers

Edit control not repainted entirely with chosen brush

I have an edit control which background color depends from validity of user input. If input is valid edit control should keep default look, else the background color should change to light gray. I am checking validity in EN_UPDATE handler and if it…
AlwaysLearningNewStuff
  • 2,939
  • 3
  • 31
  • 84
2
votes
1 answer

how to restrict copy paste in a Textbox, in MFC?

I am developing a small application in MFC... there is a little problem..hope you guys would help me regarding this...Here we go..the problem is...I have 6 little edit control(Text box) in which I will allow the user to enter some numbers..I have…
kiddo
  • 1,596
  • 7
  • 31
  • 60
2
votes
3 answers

Get the line number in Edit control

how can you get the current line number in a multi-line edit control?
cpx
  • 17,009
  • 20
  • 87
  • 142
2
votes
2 answers

WinApi - set part of a text as non editable in edit control (semi readonly Editbox)

I have a little problem. I want to have an Edit control in which is a text (something like this: "ABC@") . This string must be non editable so that the user shouldn't be able to delete it. The user should be able to type a text after the sign '@'…
Paramore
  • 1,313
  • 2
  • 19
  • 37
1
vote
3 answers

Windows 7 edit control, vertical scroll does not work

I have an application that compiles ok (mingw) and runs ok, however the edit control that is created has scroll bars but the vertical scroll bar doesn't do anything. The same executable works fine on WinXP. Also, the edit control has both vertical…
Jesse
  • 11
  • 3
1
vote
0 answers

EditControl MFC: Anyway to prevent keyboard input but still remain ability to right click and choose copy/paste

I already have set EditControl in MFC to true, It lock user's keyboard input, but i still need ability to cut/copy/paste. Is there anyway to just prevent user input but still functioning copy/paste. Sorry for my bad english
1
vote
5 answers

EditingControlShowing events firing multiple times

I have a DGV in VB.Net 2008 connected to an Access DB table. The DGV is not Read Only, but is full of read-only columns except for one, which contains a combo box. The combo box allows the user to select an outcome for that particular row, and then…
1
vote
1 answer

Why does my edit control "add variable" popup box not have CString as an option

I'm very new to MFC and dialog boxes. I am attempting to follow a very simple YouTube tutorial: "VC++/C++ MFC tutorial 1: Creating a Dialog box for user input" The video, and many other sources seem to have CString as a variable type for the edit…
JCoder
  • 75
  • 5
1
vote
2 answers

How to use EM_SETHANDLE on edit control?

I am unable to figure out how to properly use the EM_SETHANDLE mechanism to set the text for an edit control. Get and Set window text will be too slow for my application. From the documentation I understand that the allocated buffer will be sued by…
joseph
  • 11
  • 3
1
vote
1 answer

Edit Control Watermark

I would like to implement a grey text watermark in an edit control in C++ with Win32 API, but I'm not sure of any ways to do it besides handling WM_KEYDOWN messages. I would like something like this: Any ideas?
Michael
  • 115
  • 10
1
vote
2 answers

How can I handle event of changing caret pos?

I need to handle the event of changing caret pos in edit control (not richedit control). I know how to handle event of changing text in the edit, but I don't know how to handle the event of changing caret position in edit control. I hope someone…
1
vote
3 answers

How to use a loop to get text from TEdit one by one

I have 100 object of TEdit (for example) Edit1, Edit2, Edit3... Edit100 How to use a loop to get text from them one by one?
Milad.K
  • 11
  • 5
1
vote
1 answer

Syncfusion - No Space-Char after pressing shortcuts "CTRL" + "SPACE"

We are using EditControl(component from the toolbox) from Syncfusion framework Essential Studio to write a small code-editor. We want to popup the auto-complete window after pressing the shortcut CTRL + SPACE without typing the space-char into the…
1
vote
5 answers

MFC Edit Box - Multiple Characters per Keystroke?

I am trying to create a simple dialog in MFC using Visual C++. My problem is that when I get the dialog on the screen and try to type in an Edit Box field, if I type the letter 'a' once, it appears in the edit box as 'aaaaaaaaaaa' (that's 12 a's). …
Bryan Marble
  • 3,467
  • 5
  • 26
  • 29