Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Wolfgang Riedmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: help Date: Wed, 26 Jul 2023 18:06:07 +0200 Lines: 52 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: individual.net ZbznCSTpdZM8kRJ39JBzAgvRYLOWFfIjrcn2l6Z6VC29oTfLo= Cancel-Lock: sha1:mZSZPDe9qD2vyO2O+OsffZ4P3xk= sha256:FvGE+GcvIKY5bke8fRAM7Aq/s2eSHaUS76rZ8qJ9P+M= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:13875 Buon giorno Aurora, > However, I have solved the two problems. I pose a > third one: in a singlelineedit() I would need to highlight part of > the text (bold), is there a method to do this ? in a edit control (singlelineedit and multilineedit) you can select a text with the Selection class. The help says the following: Edit:Selection Access/Assign The position of the cursor in the edit control. For example, a Selection of {5,10} means the text from position 5 through 9 inclusive is selected, while a Selection of {5,5} means the cursor is positioned in front of the fifth character. And if you look at the Selection class, you will find the following text: Selections are used in edit controls (i.e., by the Edit and EditWindow classes). The start of a selection is the position in the edit control of the first character that is included in the selection. The finish is the position of the first character not in the selection. For example, to specify the text from position 5 through 9 inclusive, you would give a value of Selection{5,10}. To select all the characters in an edit control (such as a single-line edit control), you would specify a value of Selection{0,-1}. If the start and finish points are the same, the selection refers to a cursor position. For example, the cursor position in front of the fifth character would be referred to as Selection{5,5}. That should help. But if you mean that you can format a text to make it bold: this cannot work in a single or multiline edit because Windows does not allows it. You will need a RTF control if you need formatting. But you can make the entire text bold or italic or whatever you like. Wolfgang --