Seite 3 von 4

Re: Module für PureBasic 5.6x

Verfasst: 12.10.2017 14:03
von ts-soft
Hast Du das Module mal probiert? Bei mir kommt nur Zeile 135:

Code: Alles auswählen

              RetrVal = GetProcessDpiAwareness(#Null, @DPI_UNAWARE)
ein IMA.

Gruß
Thomas

Re: Module für PureBasic 5.6x

Verfasst: 12.10.2017 19:23
von Thorsten1867
MyBindEventModule.pbi
PB V5.6x
(Windows)

BindEvent with EventData

MyBindEvent::MyBindGadgetEvent()
MyBindEvent::MyUnbindGadgetEvent()
MyBindEvent::MySetGadgetEventData()
MyBindEvent::MyBindWindowEvent()
MyBindEvent::MyUnbindWindowEvent()
MyBindEvent::MySetWindowEventData()

Re: Module für PureBasic 5.6x

Verfasst: 12.10.2017 19:41
von ts-soft
Entweder das liegt an der Windows Version oder daran, das bei mir eine höhere DPI (125 %) eingestellt ist. Auf jeden Fall ist das so nicht nutzbar,
da fehlerhaft!

Nachtrag: Mit virtueller Maschine getested, scheint doch zu funktionieren, lediglich mit Version 1709 Build 16299.15 (neueste Version kommt erst in ein paar Tagen) gibt es IMA.

Dann laß es mal drinn und warten wir mal ab :wink:

2te Änderung :twisted:
Fehler wurde durch Thunder93 beseitigt!

ThreadControlModule.pbi

Verfasst: 14.10.2017 13:44
von Thorsten1867
ThreadControlModule.pbi
PB V5.6x
(All OS)

Simple ThreadControl without API

ThreadControl::thCreate()
ThreadControl::thStart()
ThreadControl::thStop()
ThreadControl::thContinue()
ThreadControl::thExit()
ThreadControl::thKill()
ThreadControl::thRelease()
ThreadControl::thState()

Re: Module für PureBasic 5.6x

Verfasst: 14.10.2017 13:58
von Thorsten1867
GetLocalDateModule.pbi
PB V5.6x
(All OS)

Return date and time as a simple structure.

DateX::GetLocalDate()
DateX::GetSystemDate()

CustomGadgetModule.pbi

Verfasst: 16.10.2017 16:21
von Thorsten1867
CustomGadgetModule.pbi
PB V5.6x
(All OS)


Modul mit verschiedenen benutzerdefinierten Gadgets


Gradient Text - Gadget

Code: Alles auswählen

; 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: Alles auswählen

; 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: Alles auswählen

; 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: Alles auswählen

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

Code: Alles auswählen

; 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: Alles auswählen

; 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: Alles auswählen

; 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::Sort()           - Sort entry names of the values
; PieChart::SetSpacing()     - Change the spacing for the pie chart (Default: 10)
; PieChart::GetID()          - Get the ID of Image or Gadget (#Image/#ImageGadget/#ListIcon)
; PieChart::Free()           - Remove the gadget and release all resources
Added: PieChart::Sort()

GadgetDataEXModule.pbi

Verfasst: 18.10.2017 19:08
von Thorsten1867
GadgetDataEXModule.pbi
PB V5.6x
(All OS)

Extended GadgetData

Gadget::SetData() - Saves the specified value with the specified gadget (similar to: SetGadgetData())
Gadget::GetData() - Returns the data value previously stored for this gadget (similar to: GetGadgetData())

Gadget::SetIntegerData() - Stores an integer number under the name (Key$) for this gadget
Gadget::GetIntegerData() - Returns the integer number previously stored under the name (Key$) for this gadget
Gadget::SetFloatData() - Stores a floating point number under the name (Key$) for this gadget (max. 10 digits)
Gadget::GetFloatData() - Returns the floating point number previously stored under the name (Key$) for this gadget

Gadget::SetStringData() - Stores a string under the name (Key$) for this gadget
Gadget::GetStringData() - Returns the string previously stored under the name (Key$) for this gadget

Gadget::FreeData() - Deletes the stored data for this gadget

GridEXModule.pbi

Verfasst: 10.11.2017 18:08
von Thorsten1867
GridExModule.pbi
PB V5.6x
(All OS)

Erweitertes Grid-Gadget

GridEx::AddCellTerm() - Add a term for calculation to the cell
GridEx::AddComboItems() - Adding elements to a ComboBox
GridEx::AddListItems()
GridEx::AddRow() - Similar to AddGadgetItem()[/b]
GridEx::AttachPopup() - Assign popup menu to a cell
GridEx::AutoColumnWidth() - Set automatic column width
GridEx::AutoRowHeight() - Set automatic row height
GridEx::ClearMultiSort() - Remove multiple sorting definition
GridEx::CopyToClipboard() - Copy selected cells to clipboard (csv)
GridEx::SelectCells()
GridEx::DateInputFormat() - Change input format (mask) for cells With date
GridEx::DefineMultiSort() - Define multiple sorting (e.g. column "Name" & column "First name")
GridEx::DefineSortRows() - Specify the first and last rows For sorting.
GridEx::DeleteRow() - Delete grid row
GridEx::DisableRedraw() - Disables redrawing to make several changes To the grid
GridEx::ExportCells() - Export Grid to file
GridEx::Free() - Free the gadget
GridEx::FreezeColumn() - Freeze Column
GridEx::FreezeRow() - Freeze Row
GridEx::Gadget() - Similar to ListIconGadget()[/b]
GridEx::GetAttribute() - Query information about the grid
GridEx::GetCellText() - Similar to GetGadgetItemText()[/b]
GridEx::GetColor() - Get grid colors [#FrontColor/#BackColor/#LineColor/#FocusBack/#FocusBorder/#BlockBack]
GridEx::GetColumnFlags() - Get column type [#String/#Integer/#Float/#Date/#Time/#Cash/]
GridEx::GetGridData() - Similar to GetGadgetData()[/b]
GridEx::GetRowData() - Similar to GetGadgetItemData()[/b]
GridEx::GetRowText() - Get the text of all columns in a row with separators
GridEx::GetSelectedCells() - Insert the contents of the selected cells into an Array(row, col)
GridEx::Hide() - Hide GrideEx gadget
GridEx::HideColumn() - Hide selected column
GridEx::HideRow() - Hide selected row
GridEx::IsSelected()
GridEx::IsValidCell() - Check If it is a valid cell
GridEx::LastCellText() - Last changed text
GridEx::ManageEvent()
GridEx::MergeCells() - Merge cells
GridEx::MultiSortGridRows() - Perform defined multiple sorting
GridEx::ReDefine() - Change the numbers of rows (& columns)
GridEx::Refresh() - Redraw grid
GridEx::RemoveSelection()
GridEx::RemoveTerm() - Remove the calculation for this cell
GridEx::Resize() - Resize grid
GridEx::SaveGridSize() - Saves columns width And rows height of the grid
GridEx::SelectAll() - Select all cells
GridEx::SelectCells()
GridEx::SetCellAlign() - Set cell alignment [#Left/#Center/#Right]
GridEx::SetCellColor() - Set cell colors [#FrontColor/#BackColor/#MarkColor/#Gradient]
GridEx::SetCellEditMode() - Set edit mode [#NoEdit/#Over/#Append]
GridEx::SetCellFont() - Set cell font
GridEx::SetCellFormat() - Set cell formatting [#Integer/#Float/#Date/#Time/#Cash]
GridEx::SetCellMarker() - Mark the contents of the cell in color If the condition applies [#Negativ/#Positiv/#Zero/#Equal/#Less/#Greater/#Like]
GridEx::SetCellType() - Set cell type [#Cell/#Edit/#Checkbox/#Button/#Combo & #String/#Integer/#Float/#Date/#Time/#Cash]
GridEx::SetColor() - Set grid colors
GridEx::SetColumnWidth() - Change Column width
GridEx::SetCellText() - Similar To SetGadgetItemText()
GridEx::SetDateFormat() - Define the mask For date formatting (%dd/%0d/%mm/%MM/%yy/%yyyy)
GridEx::SetGridData() - Similar To SetGadgetData()
GridEx::SetHeaderSort() - Set column header flag For sort [#String/#Integer/#Float/#Cash/#Date/#Time/#Default]
GridEx::SetLanguage() - Set language For month names
GridEx::SetMultiSortColumn() - Set multisort for Column and the name of the corresponding definition
GridEx::SetNumberFormat() - Define decimal point And thousand separators
GridEx::SetRowData() - Similar to SetGadgetItemData()
GridEx::SetRowHeight() - Change row height
GridEx::SetRowText() - Set the text for all columns of a row
GridEx::SetSortColumnMarker() - Marking for sorted column by header click
GridEx::SetTimeFormat() - Define the mask For time formatting (%hh/%ii/%ss)
GridEx::SetTopColumn() - Make this column the front Column
GridEx::SetTopRow() - Make this row the top row
GridEx::ShowCell() - Set the focus on this cell
GridEx::SortGridRows() - Sorts the rows of the grid according to the selected column
GridEx::TimeInputFormat() - Change input format (mask) For cells With time
GridEx::UnMergeCells() - Canceling the merging of cells
GridEx::UpdateCalculations() - Update the calculations in the cells

EditorExModule.pbi

Verfasst: 14.11.2018 10:49
von Thorsten1867
EditorExModule.pbi
PB V5.6x - 5.7x
(All OS)

Erweitertes Editor-Gadget
  • Automatischer Zeilenumbruch & Silbentrennung
  • 'Weiches' Trennzeichen bzw. bedingter Trennstrich
  • Einfache Syntax-Hervorhebung (z.B. für Rechtschreibkontrolle)
  • Automatisches Ausblenden der Scrollbars

Code: Alles auswählen

;{ ===== Module Commands ===== 

  ; EditEx::AddItem()           - Add text row at 'Position' (or #FirstRow / #LastRow)             
  ; EditEx::AttachPopup()       - Attach 'PopUpMenu' to gadget
  ; EditEx::DeleteSelection()   - Delete selected text (Remove selection: #True/#False)
  ; EditEx::EnableHyphenation() - Enable Hyphenation & Select Language (#Deutsch/#English/#French)
  ; EditEx::GetAttribute()      - Returns value of attribute (#ReadOnly/#WordWrap/#Hyphenation/#AutoHide/#Border/#CtrlChars/#SyntaxHighlight)
  ; EditEx::GetItemText()       - Returns text row at 'Position'
  ; EditEx::GetSelection()      - Returns selected text (Remove selection: #True/#False)
  ; EditEx::GetText()           - Returns all text rows seperated by 'Seperator'
  ; EditEx::InsertText()        - Insert text at cursor position (or replace selection)
  ; EditEx::IsSelected()        - Returns whether a selection exists
  ; EditEx::SetAttribute()      - Enable/Disable attribute (#ReadOnly/#WordWrap/#Hyphenation/#AutoHide/#Border/#CtrlChars/#SyntaxHighlight)
  ; EditEx::SetFont()           - Set or change font
  ; EditEx::SetItemText()       - Replace text row at 'Position'
  ; EditEx::SetText()           - Set or replace all text rows
  ; EditEx::SyntaxHighlight()   - Syntax highlighting (e.g. spell checking)
  ; EditEx::Gadget()            - Creates an editor gadget 

;} ===========================

Re: Module für PureBasic 5.6x

Verfasst: 03.01.2019 18:18
von Thorsten1867
pbPDFModule.pbi
PB V5.6x - 5.7x
(All OS)

pbPDF - Erstellen von PDF-Dokumenten
  • Nutzung der PB Packer Library anstatt externer Komprimierungs-Prozeduren
  • Auslesen von Font- und Image-Headern nur mit PB-Befehlen anstatt mit Windows-API
  • Unterstützung des JPEG2000-Bildformates
  • Unterstützung von Unicode-Zeichensätzen
  • 64-Bit kompatibel

Code: Alles auswählen

  ; ----- Basic Commands -----

  ; PDF::Create()                      - Create PDF document.
  ; PDF::AddPage()                     - Adds a (new) page to the document.
  ; PDF::BookMark()                    - Add bookmark
  ; PDF::Cell()                        - Prints a cell with optional borders, background color
  ; PDF::GetFontSize()                 - Get current fontsize (#Point/#Unit)
  ; PDF::GetMargin()                   - Get left, top, right or cell margin.
  ; PDF::GetMultiCellLines()           - Get the last value of newlines for pdf_MultiCell()
  ; PDF::GetPageHeigth()               - Get current height of page.
  ; PDF::GetPageNumber()               - Returns the current page number.
  ; PDF::GetPageWidth()                - Get current width of page. 
  ; PDF::GetPosX()                     - Returns the abscissa of the current position.
  ; PDF::GetPosY()                     - Returns the ordinate of the current position.
  ; PDF::GetScaleFactor()              - Get scale factor for used unit.
  ; PDF::GetStringWidth()              - Get width of a string in the current font.
  ; PDF::GetWordSpacing()              - Get word spacing.  
  ; PDF::Image()                       - Puts an image in the page.
  ; PDF::Ln()                          - Performs a line break.
  ; PDF::MultiCell()                   - This method allows printing text with line breaks.
  ; PDF::MultiCellList()               - Add multicell with list elements
  ; PDF::PlaceText()                   - Place text at x, y position.  
  ; PDF::Rotate()                      - Perform a rotation around a given center.
  ; PDF::Save()                        - Save PDF under file name
  ; PDF::SetAutoPageBreak()            - Set auto page break mode and triggering margin.
  ; PDF::SetPageCompression()          - Enable/disable compression for pages
  ; PDF::SetColorRGB()                 - Set RGB color for text, draw and fill  (#TextColor / #DrawColor / #FillColor).
  ; PDF::SetColorCMYK()                - Set CMYK color for text, draw and fill (#TextColor / #DrawColor / #FillColor).
  ; PDF::SetDashedLine()               - Set a dash pattern and draw dashed lines or rectangles.
  ; PDF::SetDisplayMode()              - Set display mode in viewer.
  ; PDF::SetDisplayPreferences()       - Set viewer preferences
  ; PDF::SetFont()                     - Sets the font used to print character strings.
  ; PDF::SetFontSize()                 - Defines the size of the current font.
  ; PDF::SetPageNumbering()            - Set page numbering in footer #True/#False.
  ; PDF::SetInfo()                     - Defines author, titel, subject, creator and associated keywords ('keyword1 keyword2 ...') of the document
  ; PDF::SetLineThickness()            - Defines the line thickness.
  ; PDF::SetMargin()                   - Set left, top, right or cell margin.
  ; PDF::SetPageMargins()              - Set left, top and right page margins.
  ; PDF::SetPosXY()                    - Defines the abscissa and ordinate of the current position.
  ; PDF::SetPosX()                     - Defines the abscissa of the current position. 
  ; PDF::SetPosY()                     - Moves the current abscissa back to the left margin and sets the ordinate.
  ; PDF::SetWordSpacing()              - Set word spacing. 
  ; PDF::SubWrite()                    - Write superscripted or supscripted
  ; PDF::TruncateCell()                - Prints a Cell, if text is too large it will be truncated
  ; PDF::Write()                       - This method prints text from the current position.
  
  ; ----- Advanced Commands -----
  
  ; PDF::AddFile()                     - Embeds a file into the pdf.
  ; PDF::AddFont()                     - Embeds a font into the pdf and returns the font name.
  ; PDF::AddJavaScript()               - Add JavaScript
  ; PDF::AddJavaScriptFile()           - Include JavaScript file
  ; PDF::AddEntryTOC()                 - Add TOC entry
  ; PDF::EscapeText()                  - Format a text string (=> masked string).
  ; PDF::GetErrorCode()                - Return the error code.
  ; PDF::GetErrorMessage()             - Return the error message.    
  ; PDF::GetNumbering()                - Return if numbering is #True/#False. Usefull for TOC functions
  ; PDF::GetObjectNum()                - Get object number
  ; PDF::ImageMemory()                 - Puts an image in the page.
  ; PDF::InsertTOC()                   - Insert table of contents.
  ; PDF::Link()                        - Puts a link on a rectangular area of the page.
  ; PDF::SetAliasTotalPages()          - Defines an alias for the total number of pages.
  ; PDF::SetFooterProcedure()          - Set footer procedure.
  ; PDF::SetHeaderProcedure()          - Set header procedure.
  ; PDF::StartPageNumsTOC()            - Start TOC page numbering.
  ; PDF::StopPageNumsTOC()             - Stop  TOC page numbering.
  
  ; ----- Annotations & Actions -----
  
  ; PDF::AddFileLink()                 - Defines the page and position for embedded file annotations.
  ; PDF::AddLaunchAction()             - Defines the page and position for a launch action.
  ; PDF::AddLinkURL)                   - Defines the page and position a link points to and returns its identifier.
  ; PDF::AddPopupAction()              - Defines the page and position for PopUp annotations.
  ; PDF::AddTextNote()                 - Defines the page and position for text annotations.
  
  ; ----- Drawing Commands [#Enable_DrawingCommands] -----
  
  ; PDF::DividingLine()                - Draws a line with the specified width.
  ; PDF::DrawCircle()                  - Draws a circle
  ; PDF::DrawEllipse()                 - Draws a ellipse
  ; PDF::DrawGrid()                    - Draws a light blue grid on the page for testing purposes
  ; PDF::DrawLine()                    - Draws a single line between two points.
  ; PDF::DrawRectangle()               - Draws a rectangle.
  ; PDF::DrawRoundedRectangle()        - Draws a rounded rectangle.
  ; PDF::DrawSector()                  - Draws the sector of a circle.
  ; PDF::DrawTriangle()                - Draws a triangle
  
  ; PDF::SetLineCap()                  - Sets the line cap style
  ; PDF::SetLineCorner()               - Sets the line join style.
  
  ; PDF::PathArc()                     - Draws a cubic Bezier curve to the current path.
  ; PDF::PathBegin()                   - Begins a new path at the coordinates (x, y).
  ; PDF::PathEnd()                     - Closes the current path and draws a line from the current point to the starting point.
  ; PDF::PathLine()                    - Draws a line from the current point to (x, y).
  ; PDF::PathRect()                    - Draws a rectangle to the current path with upper-left corner (x, y) and dimensions (w, h). 
  
  ; ----- Transformation [#Enable_TransformCommands] -----
  
  ; PDF::StartTransform()              - Use this before calling any transformation. (Scale, Skew, Mirror, Translate)
  ; PDF::StopTransform()               - Restore the normal painting And placing behaviour As it was before calling pdf_StartTransform(). 
  ; PDF::MirrorHorizontal()            - Alias for scaling -100% in x direction. (Transform)
  ; PDF::MirrorVertical()              - Alias For scaling -100% in y direction. (Transform)
  ; PDF::ScaleX()                      - Scaling X                 (Transform)
  ; PDF::ScaleY()                      - Scaling Y                 (Transform)
  ; PDF::Scale()                       - Scaling XY                (Transform)
  ; PDF::SkewX()                       - Skewing -> angle x        (Transform)
  ; PDF::SkewY()                       - Skewing -> angle y        (Transform)
  ; PDF::Translate()                   - Translate -> right/bottom (Transform)
  ; PDF::TranslateX()                  - Translate -> right        (Transform)
  ; PDF::TranslateY()                  - Translate -> bottom       (Transform)