Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #13875

Re: help

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "Wolfgang Riedmann" <wriedmann@gmail.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: help
Date Wed, 26 Jul 2023 18:06:07 +0200
Lines 52
Message-ID <kicujfF1iv4U1@mid.individual.net> (permalink)
References <f88f79be-4867-4611-90d6-03fc821ee2e4n@googlegroups.com> <kh4us5Fg3o5U1@mid.individual.net> <d528ed34-85eb-4d64-b6d6-cddf575cd8c1n@googlegroups.com>
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

Show key headers only | View raw


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



 


-- 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

help aurora baccio <aurorabaccio@gmail.com> - 2023-07-03 06:45 -0700
  Re: help dlzc <dlzc1@cox.net> - 2023-07-05 08:27 -0700
  Re: help "Wolfgang Riedmann" <wriedmann@gmail.com> - 2023-07-11 14:05 +0200
    Re: help aurora baccio <aurorabaccio@gmail.com> - 2023-07-19 09:18 -0700
      Re: help dlzc <dlzc1@cox.net> - 2023-07-20 08:52 -0700
        Re: help aurora baccio <aurorabaccio@gmail.com> - 2023-07-20 09:08 -0700
          Re: help dlzc <dlzc1@cox.net> - 2023-07-21 07:50 -0700
      Re: help "Wolfgang Riedmann" <wriedmann@gmail.com> - 2023-07-26 18:06 +0200

csiph-web