Repaint ListIcon GridLines?

Just starting out? Need help? Post your questions and find answers here.
ricardo
Addict
Addict
Posts: 2312
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.
ricardo
Addict
Addict
Posts: 2312
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))
BarryG
Addict
Addict
Posts: 1718
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.
User avatar
JHPJHP
Addict
Addict
Posts: 1851
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.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4108
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