Página 1 de 1

How to put checkBox in TArrayBrowse?

Publicado: Dom May 03, 2015 11:07 pm
por Hurricane
Hi,
In the column of TArrayBrowse, you can put Checkbox? how?

I tried but gives error* in execution:

Código: Seleccionar todo

METHOD FormInitialize( oSender ) CLASS TForm1
   local aLine
   local oChk

   for each aLine in dadosTabela()
      oChk:=TCheckBox():New(::oBrwIndex:aCols[1])
      oChk:SetBounds( 0, 0, 18, 18 )
      oChk:create()
      ::oBrwIndex:AddRow( {oChk, aLine[1], aLine[2] })

      //::oBrwIndex:AddRow( {'[X]', aLine[1], aLine[2] }) // I use it to break a branch.

   next

   RETURN Nil
* Erro BASE/1004 Message not found: TArrayBrwColumn:GETFORM
note: I do not want to use :nMarqueStyle for selection lines.

Re: How to put checkBox in TArrayBrowse?

Publicado: Sab May 09, 2015 2:55 am
por Hurricane
Hello, I'm still waiting to my questions.

Re: How to put checkBox in TArrayBrowse?

Publicado: Sab May 09, 2015 10:25 am
por ignacio
quote="Hurricane"]Hello, I'm still waiting to my questions.[/quote]

Use two images, checked and unchecked. Change its value using column events. You can also use beLISTBOX on the property nEditMode and use a simple "yes, no" array. There is nothing else you can do.

Re: How to put checkBox in TArrayBrowse?

Publicado: Sab May 09, 2015 11:08 am
por Hurricane
I will leave as a String "[X]"/"[ ]". Thank you anyway.