[Module] ListViewEx - Gadget (all OS)

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

[Module] ListViewEx - Gadget (all OS)

Post by Thorsten1867 »

ListViewEx Gadget - Module (all OS / DPI / 64Bit)
  • colors for single rows
  • dynamic popup menu item text (e.g. "Delete #Row$")
  • automatic size adjustment
  • support of GUI themes (needs ModuleEx.pbi)
Image _____ Image _____ Image

Code: Select all

; ListView::AddItem()            - similar to 'AddGadgetItem()'
; ListView::AttachPopupMenu()    - attach a popup menu to the list
; ListView::ClearItems()         - similar to 'ClearGadgetItems()'
; ListView::CountItems()         - similar to 'CountGadgetItems()'
; ListView::DisableReDraw()      - disable/enable redrawing of the gadget
; ListView::Gadget()             - similar to 'ListViewGadget()'
; ListView::GetData()            - similar to 'GetGadgetData()'
; ListView::GetID()              - similar to 'GetGadgetData()', but string instead of quad
; ListView::GetItemData()        - similar to 'GetGadgetItemData()'
; ListView::GetItemLabel()       - similar to 'GetGadgetItemData()', but string instead of quad
; ListView::GetItemState()       - similar to 'GetGadgetItemState()'
; ListView::GetItemText()        - similar to 'GetGadgetItemText()'
; ListView::GetLabelText()       - similar to 'GetGadgetItemText()', but label instead of row
; ListView::GetState()           - similar to 'GetGadgetState()'
; ListView::GetText()            - similar to 'GetGadgetText()'
; ListView::Hide()               - similar to 'HideGadget()'
; ListView::RemoveItem()         - similar to 'RemoveGadgetItem()'
; ListView::SetAutoResizeFlags() - [#MoveX|#MoveY|#Width|#Height]
; ListView::SetColor()           - similar to 'SetGadgetColor()'
; ListView::SetData()            - similar to 'SetGadgetData()'
; ListView::SetFont()            - similar to 'SetGadgetFont()'
; ListView::SetID()              - similar to 'SetGadgetData()', but string instead of quad
; ListView::SetItemData()        - similar to 'SetGadgetItemData()'
; ListView::SetItemImage()       - similar to 'SetGadgetItemImage()'
; ListView::SetItemLabel()       - similar to 'SetGadgetItemData()', but string instead of quad
; ListView::SetItemState()       - similar to 'SetGadgetItemState()'
; ListView::SetItemText()        - similar to 'SetGadgetItemText()'
; ListView::SetLabelText()       - similar to 'SetGadgetItemText()', but label instead of row
; ListView::SetRowHeight()       - change the rows height
; ListView::SetState()           - similar to 'SetGadgetState()'
; ListView::SetText()            - similar to 'SetGadgetText()'
; ListView::UpdatePopupText()    - define dynamic menu item text [#Label$/#Index$/#Row$/#String$]
Download: ListViewExModule.pbi
Last edited by Thorsten1867 on Fri Dec 20, 2019 3:01 pm, edited 3 times in total.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] ListViewEx - Gadget (all OS)

Post by Thorsten1867 »

Update: Checkboxes added
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] ListViewEx - Gadget (all OS)

Post by Thorsten1867 »

Update: Simple syntax highlight added
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] ListViewEx - Gadget (all OS)

Post by Thorsten1867 »

Update: ScrollBarGadget() replaced by drawing routine
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] ListViewEx - Gadget (all OS)

Post by Thorsten1867 »

Update:
  • Attribute #ScrollBar [#ScrollBar_Default/#ScrollBar_Frame/#ScrollBar_DragPoint]
  • SetColor() -> [#ScrollBar_FrontColor/#ScrollBar_BackColor/#ScrollBar_BorderColor/#ScrollBar_ButtonColor/#ScrollBar_ThumbColor]
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] ListViewEx - Gadget (all OS)

Post by Thorsten1867 »

Update:
  • New Scrollbars
  • New DPI - Managmment
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
Post Reply