realbasic-nug.de
[Top] [All Lists]

Re: HighlightColor

To: REALbasic NUG German <realbasic-nug dot de at lists dot realsoftware dot com>
Subject: Re: HighlightColor
From: Claudius Sailer <Claudius at sailer-online dot de>
Date: Sat, 30 Dec 2006 07:24:09 +0100 (MET)
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug dot de at lists dot realsoftware dot com
References: <3250263357 dot 67295479227 at [192 dot 168 dot 178 dot 127]> <C1BB72E4 dot 24428%andy at foxwerk dot de> <3250304734 dot 85720318349 at [192 dot 168 dot 178 dot 127]>

Am 30.12.2006 um 06:18 schrieb Stefan Mettenbrink:

Andy Fuchs wrote:

Also bei mir geht's ... ich kann die selektion so malen wie ich will:

mal so ausm Kopp:

if me.selected(row) then
g.forecolor = rgb(255,0,0)
g.fillrect 0,0,g.width-1, g.height-1
end if

Bei mir (RB5.5) auch. Solange der Focus auf der Listbox bleibt. Wenn der
Focus wechselt, wird meineselbstgemalte Hintergrundfarbe grau.

MfG, Metti.

2006r4 geht es.

CellBackroundPaint

  dim c as color

If FillingProzess then //male nur, wenn die Listbox gerade nicht gefüllt wird -- Performance
    return true
  end if

  if PrefDic.value("ListBoxColor") and row<me.ListCount then
    c = ListBoxColoring(row)

If me.Selected(row) then //If this cell is on a selected row make the color slightly darker
      c = ListBoxZeilenFarbe
    End

    g.foreColor = c //set the cell color to this new color
    g.fillRect 0,0,g.width,g.height  //fill in the cell
    return true
  end if




Claudius

--
iMac CD 2GHz / MacOS X 10.4de / RB 2006r4/ Valentina 2.5
Homepage    http://www.ClaSai.de
iChat        ryhoruk
RealBasic ListBoxes: [ I feel the need...the need for speed!!! ]




<Prev in Thread] Current Thread [Next in Thread>