ExplorerListGadget List rarely item name changed

Just starting out? Need help? Post your questions and find answers here.
User avatar
oryaaaaa
Enthusiast
Enthusiast
Posts: 791
Joined: Mon Jan 12, 2004 11:40 pm
Location: Okazaki, JAPAN

ExplorerListGadget List rarely item name changed

Post by oryaaaaa »

Is it a bug or is it a new limitation of Windows 10?

PB5.72 Windows x64
SetGadgetAttribute(1, #PB_Explorer_DisplayMode, #PB_Explorer_List)

Music files to Music fi...
Last string is ... changed.

Screen shot
http://www.mics.ne.jp/~coolverse/images ... 200918.jpg

Code: Select all

OpenWindow(0, 0, 0, 800, 600, "ExplorerListGadget")
ExplorerListGadget(1, 10, 10, 780, 580, GetUserDirectory(#PB_Directory_Musics)+"*.flac")
; PB_Explorer_DisplayMode before #PB_Explorer_ColumnWidth
SetGadgetAttribute(1, #PB_Explorer_DisplayMode, #PB_Explorer_List)
CountColoum = SendMessage_(SendMessage_(GadgetID(1), #LVM_GETHEADER, GD0, GD0),  #HDM_GETITEMCOUNT, GD0, GD0)
For Count=CountColoum To 1 Step -1
  If GetGadgetItemText(1,-1,Count)<>""
    RemoveGadgetColumn(1, 1)
  EndIf
Next
SetGadgetItemAttribute(1, 0, #PB_Explorer_ColumnWidth, 459, 0) ; fixed. Thanks.
SetGadgetItemText(1, -1, "Music files <flac>" , 0)
Repeat
  Delay(1)
Until WindowEvent()=#PB_Event_CloseWindow
End
Thank you.

Thanks your VOICE
Enable modern theme support no problem
This problem is EnableXP disabled condtion.
Last edited by oryaaaaa on Fri Sep 18, 2020 11:30 am, edited 2 times in total.
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4637
Joined: Sun Apr 12, 2009 6:27 am

Re: ExplorerListGadget List rarely item name changed

Post by RASHAD »

@oryaaaaa
You must specify the Column index to adjust the width
SetGadgetItemAttribute(#Gadget, Item, Attribute, Value [, Column])
Egypt my love
Post Reply