Hello Guyren,

a similar problem I solved with the hit in the archives

in the action of a checkbox

I use: self.ListBox2.Bold=false 'refresh Cellbackgroundpaint

try this on the right place

Roland

Am 06.12.2006 um 21:21 schrieb Guyren Howe:

Using 2K6r4 (tried r5), I want to implement a listbox with individually-selectedable cells.

I created suitable properties to represent the selection, and I do this:

Sub CellClick(row, column etc)
        Self.SelectedRow = row
        Self.SelectedCol = column
        Window.Refresh
End Sub

and I have a suitable CellBackgroundPaint method to highlight the selected cell when it's refreshed.

The trouble is that nothing I do gets the control to refresh.

I've tried:

Me.InvalidateCell(row, -1)
Me.Refresh
Parent.Refresh
Window.Refresh

and even Me.InvalidateCell followed by WIndow.Refresh, and other combinations.

Nothing I do causes the refresh. I have to click on a different window or something akin to get the refresh to happen.

I did find a workaround (handle the click using the MouseUp event lets the refresh work just fine). So I'm posting this here to note the workaround for posterity, and to see if I'm missing something with doing this the obvious way.

Regards,

Guyren G Howe
Relevant Logic LLC

guyren-at-relevantlogic.com ~ http://relevantlogic.com

REALbasic, PHP, Ruby/Rails, Python programming
PostgreSQL, MySQL database design and consulting
Technical writing and training
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to