Repaint ListIcon GridLines?

Just starting out? Need help? Post your questions and find answers here.
ricardo
Addict
Addict
Posts: 2402
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Repaint ListIcon GridLines?

Post by ricardo »

Hi,

I am using skincrafter to have a skin and i am using a ListIcon, i notice that somnetimes the Gridlines are partially gone.

Image

How can i repaint the control?

I already tried:

Code: Select all

EventID = WaitWindowEvent(100)
    
    
    
    Select EventID 
      Case #PB_Event_Gadget
        Select EventGadget()
          Case #ListIcon
            ;ResizeGadget(#ListIcon,#PB_Ignore,#PB_Ignore,#PB_Ignore,#PB_Ignore)
            ;InvalidateRect_(GadgetID(#ListIcon), 0, 1)
            UpdateWindow_(GadgetID(#ListIcon))
Thanks in advance.
ARGENTINA WORLD CHAMPION
ricardo
Addict
Addict
Posts: 2402
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Re: Repaint ListIcon GridLines?

Post by ricardo »

Also i tried

Code: Select all

SkinCrafter_UpdateControl(GadgetID(#ListIcon))
ARGENTINA WORLD CHAMPION
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: Repaint ListIcon GridLines?

Post by BarryG »

For us to help, we'd need to see the full code that's causing it. I can't test with no code.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Repaint ListIcon GridLines?

Post by JHPJHP »

Removed; post ignored.
Last edited by JHPJHP on Wed Sep 08, 2021 4:29 am, edited 1 time in total.
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4636
Joined: Sun Apr 12, 2009 6:27 am

Re: Repaint ListIcon GridLines?

Post by RASHAD »

Shoot in the dark
Don't use PB #PB_ListIcon_GridLines flag

Code: Select all

 ListIconGadget(#ListIcon, ?,?,?,?,"",?, #PB_ListIcon_FullRowSelect)
 SendMessage_(GadgetID(#ListIcon),#LVM_SETEXTENDEDLISTVIEWSTYLE,#LVS_EX_GRIDLINES,#LVS_EX_GRIDLINES) 
Egypt my love
Post Reply