also on richedit

also on richedit

Postby Silvio.Falconi » Wed May 11, 2016 11:56 am

testrtf.prg

how make to have the richedit control on the middle of the window child as winword ?
and have the scrolls into windows child and not on richedit control ?

I tried to insert this function
define window oWnd HSCROLL VSCROLL

Code: Select all  Expand view

function adjustRtf()
    local nTop, nLeft, nHorRes, aRect, nHeight, nWidth
  nTop    := 100
  nLeft   := 100
  nHorRes := GetSysMetrics( 0 )
  aRect := GetClientRect(oWnd:hWnd)
  nHeight  := aRect[3] - nTop - 200
  nWidth := aRect[4] - aRect[2] - 200
  oRtf:move(nTop, nLeft, nWidth, nHeight , .t. )

return nil


then I not see the paper right the rtf and Cannot scroll it any suggestion?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7034
Joined: Thu Oct 18, 2012 7:17 pm

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 90 guests