hi strongm
I have reverted to multiline RTB. I put a text box off the form & when rtb gets focus i set focus to text box . Now i don't see caret. I can get number of lines, current line using "Sendmessage" but i cant get text of the current line.
Any idea?
hi strongm
here is code.
i have to click on "FldOne" a few times before it freezes.The caret also gets frozen as well.below is a sample of code.also fldone is not hilighted anymore as i move over new rtb.
Private Sub FldOne_GotFocus(Index As Integer)
Dim R As Long
R =...
hi strongm
That does not work. Suppose i were to go about it using labels where each row would consist of say 10 labels where labels 0-8 would be a string & label 9 an integer.
how would my data structure be?
ex :
row(0) ==> HELLO 25
row(1) HOW 3
row(3) BASICALLY 45...
hi strongm
I forgot to say i'm using control array of rtb. will there be a diff? when i move mouse over rtb it changes color. with tom the color does not revert to old color when i move over another element of array.
hi strongm
i'll try that when i get home. But would i be able to execute click event on the rtb afterwards without seeing caret? What is "Text Object Model Interface" and where can i find it? getting error user-defined type not defined- var textrange & tomdoc
hi srtongm
Would i then use a multiline rtb? If so how would i get the scores align? I know i can lock rtb to prevent editing & change mousepointer but how do i add new line? Can you give sample code?
hi Strongm
Actually i the words would be in a variable .Even when i set column width to be that of each letter in the var i'm still getting H E L L O - it seems min width is 200. Let me say what i'm doing. I'm developing a word game which would keep score of words formed - like scrabble. eg
GAME...
hi Peter
colwidth is too small.I have to make it > 200 to see the letters in columns. Then when i make column > 200 there is too much space between columns. Any further suggestions?
I have flexgrid in which i have 10 columns. I want each cell to hold i character (i need to change forecolor). I want to place letters H,E,L,L,O in grid so they appear as HELLO and not H E L L O . How can i do it?
here is my code
Private Sub Grid_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Grid.MouseRow <> RowActual Then
ChangeGridColor RowActual, 0
RowActual = Grid.MouseRow
HiRow = Grid.MouseRow
ChangeGridColor RowActual, 1
Text1 = "I'm...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.