Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #13145
| From | JohnMartens <martens@tennishulp.info> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: help |
| Date | 2020-11-24 08:04 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <rpibaa$c2b$1@dont-email.me> (permalink) |
| References | <9a11cf49-84be-4c53-ad29-f69b7976d52co@googlegroups.com> |
Do you add the TF controls at runtime or is it in the dialog window by
putting them on it in the windows editor ?
You can draw them at runtime like good old Geoff whowed me
John
METHOD DrawText(oPoint, cText, oFont, cColor) CLASS DataWindow
*
* method by Geoff S 10/12/2007
LOCAL iOldMode, iNewMode AS INT
LOCAL hDC AS PTR
LOCAL oSelf AS OBJECT
LOCAL oOldPen AS Pen
LOCAL oOldFont AS Font
*
* getting the surface
oSelf := SELF:oSurface
IF !IsNil(cColor)
oOldPen := oSelf:Pen
oSelf:Pen := Pen{cColor, LINESOLID, 1}
ENDIF
IF !IsNil(oFont)
oOldFont := oSelf:Font
oSelf:Font := oFont
ENDIF
hDC := oSelf:__GetDC()
iNewMode := TRANSPARENT
iOldMode := SetBkMode(hDC, PTR(_CAST, iNewMode))
SetTextAlign(hDC, _OR(TA_LEFT,TA_BOTTOM))
TextOut(hDC, oPoint:X, oPoint:Y, Cast2Psz(cText), INT(_CAST,
SLen(cText)))
SetBkMode(hDC, PTR(_CAST, iOldMode))
IF !IsNil(OPEN)
oSelf:Pen := oOldPen
ENDIF
IF !IsNil(oFont)
oSelf:Font := oOldFont
ENDIF
RETURN SELF
Op 24-11-2020 om 06:46 schreef aurora baccio:
> Good morning
> I have to assign values to Fixed Text
> self:odcA1:textValue
> self:odcA2:textValue
> and below up to 50. the value to be assigned is detected by a database through a seek
> I would like to create a cycle for...Next so that while remaining unchanged self:odcA, the next number (1,2,3,...50) is that of the cycle for...next.
> So :
> for x := 1 upto 50
> self:odcA(here the value of x)
> next
> I don't know how to do it, but I think you can do it with fieldput
> the single boxes are contained in a given dialog
> I hope I was not confused in the explanation, and forgive my unclear English.
>
> Translated with www.DeepL.com/Translator (free version)
> thanks
> Aurora Baccio
>
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
help aurora baccio <aurorabaccio@gmail.com> - 2020-11-23 21:46 -0800
Re: help JohnMartens <martens@tennishulp.info> - 2020-11-24 08:04 +0100
Re: help "Wolfgang Riedmann" <wriedmann@gmail.com> - 2020-11-24 10:43 +0100
Re: help aurora baccio <aurorabaccio@gmail.com> - 2020-11-24 06:06 -0800
Re: help JohnMartens <martens@tennishulp.info> - 2020-11-24 18:39 +0100
Re: help aurora baccio <aurorabaccio@gmail.com> - 2020-11-24 12:04 -0800
Re: help "Wolfgang Riedmann" <wriedmann@gmail.com> - 2020-11-25 07:10 +0100
Re: help "Wolfgang Riedmann" <wriedmann@gmail.com> - 2020-11-25 07:22 +0100
Re: help JohnMartens <martens@tennishulp.info> - 2020-11-25 07:42 +0100
Re: help "Wolfgang Riedmann" <wriedmann@gmail.com> - 2020-11-25 08:19 +0100
csiph-web