It is currently Mon Oct 26, 2020 4:54 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: ExplorerListGadget List rarely item name changed
PostPosted: Fri Sep 18, 2020 9:36 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Jan 12, 2004 11:40 pm
Posts: 776
Location: Okazaki, JAPAN
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/ExplorerListGadget_bug20200918.jpg

Code:
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.

Top
 Profile  
Reply with quote  
 Post subject: Re: ExplorerListGadget List rarely item name changed
PostPosted: Fri Sep 18, 2020 10:05 am 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Apr 12, 2009 6:27 am
Posts: 3707
@oryaaaaa
You must specify the Column index to adjust the width
SetGadgetItemAttribute(#Gadget, Item, Attribute, Value [, Column])

_________________
Egypt my love


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 60 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye