Hi,
An issue with ListIconGadget?
It appears that the SetGadgetItemAttribute procedure with #PB_ListIcon_ColumnWidth is not working on MAC.
In the Help doco, it is mentioned that 2nd parameter Item is ignored (yet a dummy value is still required e.g. I use #PB_Ignore), 3rd parameter requires #PB_ListIcon_ColumnWidth, 4th parameter is width desired for column number in 5th parameter.
( SetGadgetItemAttribute(#Gadget, Item, Attribute, Value [, Column]). )
I am using an M1 with Sequoia OS with version 6.21 of PB.
Has anyone else had this issue? Is there a potential fix / workaround?
Kindly yours,
Daydreamer
// Moved from "Bugs - Mac OSX" to "Mac OSX" (Kiffi)
SetGadgetItemAtribute - #PB_ListIcon_ColumnWidth
-
- User
- Posts: 32
- Joined: Thu Aug 03, 2023 5:44 pm
- Location: Off Planet
Re: SetGadgetItemAtribute - #PB_ListIcon_ColumnWidth
no Problem here (Mac Mini M4, Sequoia, PB6.21 (arm64)):
Code: Select all
If OpenWindow(0, 100, 100, 300, 100, "ListIcon Example", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ListIconGadget(0, 5, 5, 290, 90, "Name", 100, #PB_ListIcon_FullRowSelect | #PB_ListIcon_AlwaysShowSelection)
AddGadgetColumn(0, 1, "Address", 250)
AddGadgetItem(0, -1, "Harry Rannit"+Chr(10)+"12 Parliament Way, Battle Street, By the Bay")
AddGadgetItem(0, -1, "Ginger Brokeit"+Chr(10)+"130 PureBasic Road, BigTown, CodeCity")
SetGadgetItemAttribute(0, #PB_Ignore, #PB_ListIcon_ColumnWidth, 20, 0) ; <-- works as expected
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
EndIf
Hygge
-
- User
- Posts: 32
- Joined: Thu Aug 03, 2023 5:44 pm
- Location: Off Planet
Re: SetGadgetItemAtribute - #PB_ListIcon_ColumnWidth
Thank you for the prompt reply, and I confirm your code works on my humble kit. I then went back to my code, and could not replicate the error, things work. So, my fault "operator error", feeling absolutely like a moronic twit. LoL at myself. Kind regardsKiffi wrote: Wed Sep 03, 2025 11:53 am no Problem here (Mac Mini M4, Sequoia, PB6.21 (arm64)):
Code: Select all
If OpenWindow(0, 100, 100, 300, 100, "ListIcon Example", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) ListIconGadget(0, 5, 5, 290, 90, "Name", 100, #PB_ListIcon_FullRowSelect | #PB_ListIcon_AlwaysShowSelection) AddGadgetColumn(0, 1, "Address", 250) AddGadgetItem(0, -1, "Harry Rannit"+Chr(10)+"12 Parliament Way, Battle Street, By the Bay") AddGadgetItem(0, -1, "Ginger Brokeit"+Chr(10)+"130 PureBasic Road, BigTown, CodeCity") SetGadgetItemAttribute(0, #PB_Ignore, #PB_ListIcon_ColumnWidth, 20, 0) ; <-- works as expected Repeat Event = WaitWindowEvent() Until Event = #PB_Event_CloseWindow EndIf