Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #8215 > unrolled thread
| Started by | moshe attia <attiamx@gmail.com> |
|---|---|
| First post | 2015-06-16 08:15 -0700 |
| Last post | 2015-06-16 12:34 -0700 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
create fixedtext control moshe attia <attiamx@gmail.com> - 2015-06-16 08:15 -0700
Re: create fixedtext control JohnMartens <martens@tennishulp.info> - 2015-06-16 18:59 +0200
Re: create fixedtext control Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2015-06-16 19:45 +0200
Re: create fixedtext control moshe attia <attiamx@gmail.com> - 2015-06-16 12:34 -0700
| From | moshe attia <attiamx@gmail.com> |
|---|---|
| Date | 2015-06-16 08:15 -0700 |
| Subject | create fixedtext control |
| Message-ID | <d0fb6f7f-6210-4307-82bb-9e3791f03e1e@googlegroups.com> |
hi all i need to create (on run time ) matrix of fixedtext control on form and arrange it like matrix with same size moshe attia
[toc] | [next] | [standalone]
| From | JohnMartens <martens@tennishulp.info> |
|---|---|
| Date | 2015-06-16 18:59 +0200 |
| Message-ID | <mlpkia$3lr$1@dont-email.me> |
| In reply to | #8215 |
Does this help ?
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
moshe attia schreef op 16-6-2015 om 17:15:
> hi all
>
> i need to create (on run time ) matrix of fixedtext control on form
> and arrange it like matrix with same size
>
>
> moshe attia
>
>
[toc] | [prev] | [next] | [standalone]
| From | Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> |
|---|---|
| Date | 2015-06-16 19:45 +0200 |
| Message-ID | <8un0oa5tntik06vu3b3efh621dpt8i8c1g@4ax.com> |
| In reply to | #8215 |
moshe, it might help, if you stop throwing little bits for us to chew on, but simply describe, possibly in more than one sentence ;-) what task you want to realize. From the earlier bits i suspect something like a data-aware shell with lots of hot spots or similiar. Usually almost everything was already invented by somebody this last 20 years here... Karl >hi all > >i need to create (on run time ) matrix of fixedtext control on form >and arrange it like matrix with same size > > >moshe attia >
[toc] | [prev] | [next] | [standalone]
| From | moshe attia <attiamx@gmail.com> |
|---|---|
| Date | 2015-06-16 12:34 -0700 |
| Message-ID | <a791d86f-79ee-4d6f-9a09-64e099624d0e@googlegroups.com> |
| In reply to | #8215 |
On Tuesday, June 16, 2015 at 6:15:06 PM UTC+3, moshe attia wrote:
> hi all
>
> i need to create (on run time ) matrix of fixedtext control on form
> and arrange it like matrix with same size
>
>
> moshe attia
hi all
this question is not for the same app
the project connect to ip camera via rtsp protocol.
if the client have 16 camera i will show matrix of 4x4 on the form
this question if for working with vlc (activex) on createembedding('VideoLAN.VLCPlugin.1')
the ole object is working on odctext1 as fixedtext
so i need to arrange all the control on the form
.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web