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


Groups > comp.lang.clipper.visual-objects > #13855 > unrolled thread

help

Started byaurora baccio <aurorabaccio@gmail.com>
First post2023-07-03 06:45 -0700
Last post2023-07-26 18:06 +0200
Articles 8 — 3 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  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

#13855 — help

Fromaurora baccio <aurorabaccio@gmail.com>
Date2023-07-03 06:45 -0700
Subjecthelp
Message-ID<f88f79be-4867-4611-90d6-03fc821ee2e4n@googlegroups.com>
good morning
two questions that i know stupid but i don't know how to solve.
number one: how to raise in vo a number to power ? i.e. 83 to the -179 how to do it ?
number two: notify() method.
i have to create the dispatch method to make the single line edit understand that it has to display the value of a calculation,
basically I have a data windows that contains the list of suppliers and a single line edit named supplier balance. I want the calculation the supplier balance via notify() but for that I need to broadcast to notify the supplier code. I cannot do this.
Thanks for the answers
Aurora Baccio

[toc] | [next] | [standalone]


#13856

Fromdlzc <dlzc1@cox.net>
Date2023-07-05 08:27 -0700
Message-ID<065a87bd-7f3c-42c8-a92f-32d653526da7n@googlegroups.com>
In reply to#13855
Dear aurora baccio:

On Monday, July 3, 2023 at 6:45:59 AM UTC-7, aurora baccio wrote:
> good morning 
> two questions that i know stupid but i don't know how to solve. 
> number one: how to raise in vo a number to power ? i.e. 83 to the -179 how to do it ? 

To the extent that VO carries the genes of Clipper 5.3:
https://www.itlnet.net/programming/program/Reference/c53g01c/ng113e1d.html
... and ...
https://www.itlnet.net/programming/program/Reference/c53g01c/ng11b607.html

> number two: notify() method. 

Sorry, I cannot help here.

David A. Smith

[toc] | [prev] | [next] | [standalone]


#13863

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2023-07-11 14:05 +0200
Message-ID<kh4us5Fg3o5U1@mid.individual.net>
In reply to#13855
Buon giorno Aurora,

> i have to create the dispatch method to make the single line edit
> understand that it has to display the value of a calculation,
> basically I have a data windows that contains the list of suppliers
> and a single line edit named supplier balance. I want the calculation
> the supplier balance via notify() but for that I need to broadcast to
> notify the supplier code. 

it may be a bit hard to explain.

The result of your calculation should be put into a variable of your
DBServer class, maybe like this:

class MySupplier
  protect nBalance   as float

access Balance class MySupplier

  return nBalance

method CalcBalance() class MySupplier

  nBalance := 2 * 4
  Super:Notify( NOTIFYFIELDCHANGE, #Balance )  

  return nil

And in your window you have a code like this:

method Notify( kNotifyName, uDescription ) class SupplierWindow
	
  do case	
  case kNotifyName == NOTIFYRECORDCHANGE
    oDCBalance:Value	:= self:Server:Balance
  case kNotifyName == NOTIFYFIELDCHANGE .and. uDescription == #Balance
    oDCBalance:Value	:= self:Server:Balance
  endcase

  return super:Notify( kNotifyName, uDescription )


HTH

Wolfgang

-- 

[toc] | [prev] | [next] | [standalone]


#13868

Fromaurora baccio <aurorabaccio@gmail.com>
Date2023-07-19 09:18 -0700
Message-ID<d528ed34-85eb-4d64-b6d6-cddf575cd8c1n@googlegroups.com>
In reply to#13863
Il giorno martedì 11 luglio 2023 alle 14:05:29 UTC+2 Wolfgang Riedmann ha scritto:
> Buon giorno Aurora,
> > i have to create the dispatch method to make the single line edit 
> > understand that it has to display the value of a calculation, 
> > basically I have a data windows that contains the list of suppliers 
> > and a single line edit named supplier balance. I want the calculation 
> > the supplier balance via notify() but for that I need to broadcast to 
> > notify the supplier code.
> it may be a bit hard to explain. 
> 
> The result of your calculation should be put into a variable of your 
> DBServer class, maybe like this: 
> 
> class MySupplier 
> protect nBalance as float 
> 
> access Balance class MySupplier 
> 
> return nBalance 
> 
> method CalcBalance() class MySupplier 
> 
> nBalance := 2 * 4 
> Super:Notify( NOTIFYFIELDCHANGE, #Balance ) 
> 
> return nil 
> 
> And in your window you have a code like this: 
> 
> method Notify( kNotifyName, uDescription ) class SupplierWindow 
> 
> do case 
> case kNotifyName == NOTIFYRECORDCHANGE 
> oDCBalance:Value := self:Server:Balance 
> case kNotifyName == NOTIFYFIELDCHANGE .and. uDescription == #Balance 
> oDCBalance:Value := self:Server:Balance 
> endcase 
> 
> return super:Notify( kNotifyName, uDescription ) 
> 
> 
> HTH 
> 
> Wolfgang 
> 
> --


Good morning,
first of all I would like to thank Mr. David Smith and the always active Mr. Reidman for their help and to the whole group for their patience with me.
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 ?
Thanks

[toc] | [prev] | [next] | [standalone]


#13869

Fromdlzc <dlzc1@cox.net>
Date2023-07-20 08:52 -0700
Message-ID<15274088-0cda-4c25-a67a-695d25ee1b15n@googlegroups.com>
In reply to#13868
Dear aurora baccio:

On Wednesday, July 19, 2023 at 9:18:07 AM UTC-7, aurora baccio wrote:
...
> 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 ? 

The brute-force way would be to stuff the necessary keystrokes in the keyboard buffer to position to that text, and highlight that text, just before you call the function.

David A. Smith

[toc] | [prev] | [next] | [standalone]


#13870

Fromaurora baccio <aurorabaccio@gmail.com>
Date2023-07-20 09:08 -0700
Message-ID<013e5511-b111-422d-ad0a-c96330b0613en@googlegroups.com>
In reply to#13869
Il giorno giovedì 20 luglio 2023 alle 17:52:35 UTC+2 dlzc ha scritto:
> Dear aurora baccio: 
> 
> On Wednesday, July 19, 2023 at 9:18:07 AM UTC-7, aurora baccio wrote: 
> ...
> > 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 ?
> The brute-force way would be to stuff the necessary keystrokes in the keyboard buffer to position to that text, and highlight that text, just before you call the function. 
> 
> David A. Smith



good morning,
I am not good enough to understand what he writes.
can you give a practical example ?
thank you
Aurora Baccio

[toc] | [prev] | [next] | [standalone]


#13872

Fromdlzc <dlzc1@cox.net>
Date2023-07-21 07:50 -0700
Message-ID<a982dd23-5029-435b-814e-cc9879a3b717n@googlegroups.com>
In reply to#13870
On Thursday, July 20, 2023 at 9:08:03 AM UTC-7, aurora baccio wrote:
> Il giorno giovedì 20 luglio 2023 alle 17:52:35 UTC+2 dlzc ha scritto: 
> > Dear aurora baccio: 
> > 
> > On Wednesday, July 19, 2023 at 9:18:07 AM UTC-7, aurora baccio wrote: 
> > ... 
> > > 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 ? 
>
> > The brute-force way would be to stuff the necessary keystrokes
> > in the keyboard buffer to position to that text, and highlight that
> > text, just before you call the function. 
>
> good morning, 
> I am not good enough to understand what he writes. 
> can you give a practical example ? 

And I assumed  by "highlight" you meant to select a section of text so that it could be copied to clipboard.  You meant "I want to bold a portion of this text".

I don't know how to do that in VO.  I saw the word "highlight" and thought you meant to select it so it could be copied to the clipboard.  Sorry.  Reading too fast.

Does singlelineedit() support formatting instructions?  <Ctrl>-B before and after maybe...

David A. Smith

[toc] | [prev] | [next] | [standalone]


#13875

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2023-07-26 18:06 +0200
Message-ID<kicujfF1iv4U1@mid.individual.net>
In reply to#13868
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



 


-- 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web