New topic: 

Problem with CellTextPaint Event. Not painting correctly

<http://forums.realsoftware.com/viewtopic.php?t=47989>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        HMARROQUINC          Post subject: Problem with CellTextPaint 
Event. Not painting correctlyPosted: Mon May 27, 2013 1:52 pm                   
              
Joined: Sun Jan 25, 2009 5:11 pm
Posts: 575
Location: Guatemala, Central America                Hi,

Another of those moments... I'm using the following code in a Listbox 
CellTextPaint

If Me.Selected(row) = True Then
  g.ForeColor = RGB(0,0,0)
End If

If row = 0 Then
  g.DrawString Me.Cell(row, column), x, 15, g.width - (x + 3) , False
else
  Return False
End If


The selected color works perfectly, however I´m trying to get the text into 
two lines in column one, the code I have above works perfectly but only for the 
first Row, the following rows are not being drawn  properly, plus the column in 
the thrid row is being split into two lines. Am I missing something?      
_________________
Future RS guru.
Ride the world!  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to