[Module] CustomGadgetModule.pbi

Share your advanced PureBasic knowledge/code with the community.
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

[Module] CustomGadgetModule.pbi

Post by Thorsten1867 »

Module with various custom gadgets

I have merged and unified different gadget modules. The gadgets can be activated or deactivated individually.

Download: CustomGadgetModule.pbi


Gradient Text - Gadget

Code: Select all

; GradientText::Gadget()       - Creates a gradient TextGadget within the current gadget list
; GradientText::SetBackColor() - Changes the background color gradient
; GradientText::SetTextColor() - Changes the text color 
; GradientText::SetFont()      - Changes the text font 
; GradientText::SetText()      - Changes the text of the gadget
Extended Text - Gadget

Code: Select all

; Text::Gadget()     - Creates a extended text gadget within the current gadget list (MultiLine/AutoCenter/Autosize)
; Text::SetColor()   - Changes the text and background color 
; Text::SetFont()    - Changes the text font
; Text::SetSpacing() - Set the spacing for autosize (Width and/or Height = #False)
Extended Frame - Gadget

Code: Select all

; FrameEx::Gadget()   - Creates a extended frame gadget within the current gadget list
; FrameEx::SetColor() - Changes the text color 
; FrameEx::SetText()  - Changes the text of the frame
Barcode 39 - Gadget

Code: Select all

; Barcode::Gadget() - Creates a barcode gadget (Code 39) within the current gadget List
Extended String - Gadget

Code: Select all

; StringEx::Gadget()          - Creates a extended string gadget within the current gadget list
; StringEx::SetColor()        - Changes the colors of the gadget
; StringEx::SetFont()         - Changes the font of the text
; StringEx::SetAttribute()    - Changes an attribute value of the gadget
; StringEx::Command()         - Commands for selection and Copy&Paste
; StringEx::Free()            - Releases the gadget and releases its gadget list
; StringEx::AddButton()       - Adds a button to the string gadget
; StringEx::RemoveButton()    - Removes the button from the string gadget
; StringEx::SetText()         - Changes the text content of the gadget
; StringEx::GetText()         - Returns the text content of the gadget
; StringEx::InsertText()      - Inserts the text at the cursor position
; StringEx::BindSGExEvent()   - Linked gadget event with a callback
; StringEx::UnbindSGExEvent() - Removes the linking of a gadget event from a callback function
; StringEx::Resize()          - Resizes the string gadget
; StringEx::AddACText()       - Adds the text for auto-completion
; StringEx::RemoveACText()    - Removes the text for auto-completion
Bar & Line Chart - Gadget

Code: Select all

; Chart::Gadget()        - Creates a chart gadget within the current gadget list
; Chart::AddRow()        - Adds a row to the chart
; Chart::AddColumn()     - Adds a column to the chart
; Chart::SetAttribute()  - Setups chart attributes
; Chart::SetValue()      - Adds or updates a chart value
; Chart::SetText()       - 
; Chart::RefreshGadget() - Repaints the whole chart
; Chart::Clear()         - Removes all data from the chart
Pie Chart - Gadget

Code: Select all

; PieChart::Gadget()         - Creates a chart gadget within the current gadget list
; PieChart::AddValue()       - Add a value to the pie chart
; PieChart::SetValue()       - Change a value in the pie chart
; PieChart::RemoveValue()    - Remove a value from the pie chart
; PieChart::SetValueTitle()  - Change the title of the column "Value"
; PieChart::SetSpacing()     - Change the spacing for the pie chart (Default: 10)
; PieChart::Sort()           - Sort entry names of the values
; PieChart::GetID()          - Get the ID of Image or Gadget (#Image/#ImageGadget/#ListIcon)
; PieChart::Free()           - Remove the gadget and release all resources
Last edited by Thorsten1867 on Tue Oct 17, 2017 5:49 pm, edited 1 time 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
Kwai chang caine
Always Here
Always Here
Posts: 5342
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: [Module] CustomGadgetModule.pbi

Post by Kwai chang caine »

Very nice and works great here !!! :D
Thanks for sharing 8)
ImageThe happiness is a road...
Not a destination
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] CustomGadgetModule.pbi

Post by Thorsten1867 »

Update:

Extended Text - Gadget

Code: Select all

; Text::Gadget()     - Creates a extended text gadget within the current gadget list (MultiLine/AutoCenter/Autosize)
; Text::SetColor()   - Changes the text and background color 
; Text::SetFont()    - Changes the text font
; Text::SetSpacing() - Set the spacing for autosize (Width and/or Height = #False)
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

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