PxPlus User Forum

Main Board => Discussions => Programming => Topic started by: MikeinFL on August 16, 2025, 04:09:34 PM

Title: List_Box line back color?
Post by: MikeinFL on August 16, 2025, 04:09:34 PM
Is it possible in Providex V5 to select a line and change the background color on one line in a List_box programically?   Report type with Format. 

Use Backcolor$ ?   I would like a line to become light yellow. THanks
Title: Re: List_Box line back color?
Post by: Cedric on August 19, 2025, 10:00:16 AM
I'm not sure since which version you can do that, but we use this kind of format:

if num(Variable$) {
  Background$='SF'+'_yellow'
} else {
  Background$=""
}
list_box load ListboxID,0,Background$+data1$+sep+Background$+data2$+sep+Background$+data3$+sep   
Title: Re: List_Box line back color?
Post by: MikeinFL on August 19, 2025, 02:22:48 PM
Quote from: Cedric on August 19, 2025, 10:00:16 AMI'm not sure since which version you can do that, but we use this kind of format:

if num(Variable$) {
  Background$='SF'+'_yellow'
} else {
  Background$=""
}
list_box load ListboxID,0,Background$+data1$+sep+Background$+data2$+sep+Background$+data3$+sep   

Thanks! I got the background yellow with the 'SF'+ '_yellow' on one data field but does make the whole row yellow.  I can add it to each field on the row and the whole row should then have background yellow. Which takes more coding but should work.   

UPDATE- I was able to create a row with light yellow background