[Module] ResizeExModule.pbi (all OS)

Hier könnt Ihr gute, von Euch geschriebene Codes posten. Sie müssen auf jeden Fall funktionieren und sollten möglichst effizient, elegant und beispielhaft oder einfach nur cool sein.
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

[Module] ResizeExModule.pbi (all OS)

Beitrag von Thorsten1867 »

Extended Resize - Module (All OS)
  • Sichern & wiederherstellen von Fenstergröße, -position und -status
  • Automatische Größenanpassung für Gadgets [#MoveX|#MoveY|#Width|#Height]
  • Automatische horizontale & verticale Zentrierung von Gadgets [#HCenter/#VCenter]
  • Proportionale Größenanpassung in Prozent möglich [#HFactor/#VFactor]
  • Unterstützung von Containern
  • Automatische Größenanpassung bei einer definierten ListIcon - Spalte

Code: Alles auswählen

  ; Window::Free()                - Delete all data
  ; Window::RestoreData()         - Restore position, size and state of the window
  ; Window::StoreData()           - Store position, size and state of the window
  ; Window::Save()                - Save data off all windows
  ; Window::Load()                - Load data off all windows

  ; Resize::AddContainer()        - Add container for automatic size adjustment of the contained gadgets
  ; Resize::AddWindow()           - Add window for automatic resizing
  ; Resize::AddGadget()           - Add gadget for automatic resizing
  ; Resize::Free()                - Delete all data
  ; Resize::RemoveContainer()     - Remove all resize data for this container
  ; Resize::RemoveGadget()        - Stop resizing gadget and remove resize data
  ; Resize::RemoveWindow()        - Remove all resize data for this window (-> CloseWindow)
  ; Resize::RestoreWindow()       - Restore original window & gadgets size
  ; Resize::SelectWindow()        - Select a previously added window
  ; Resize::SetFactor()           - Set the factor for the movement and size adjustment (Default: 100%)
  ; Resize::SetListColumn()       - Define ListIcon column for automatic resizing
Download: ResizeExModule.pbi
Zuletzt geändert von Thorsten1867 am 23.11.2019 14:37, insgesamt 2-mal geändert.
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild
Benutzeravatar
RSBasic
Admin
Beiträge: 8022
Registriert: 05.10.2006 18:55
Wohnort: Gernsbach
Kontaktdaten:

Re: [Module] ResizeExModule.pbi (all OS)

Beitrag von RSBasic »

Danke für deine vielen, neuen Module, du hast einen Lauf :allright:
Aus privaten Gründen habe ich leider nicht mehr so viel Zeit wie früher. Bitte habt Verständnis dafür.
Bild
Bild
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

Re: [Module] ResizeExModule.pbi (all OS)

Beitrag von Thorsten1867 »

Ich möchte ein größeres Projekt in ein plattformübergreifendes und DPI-konformes Programm umschreiben. Wenn man auf die Windows - API verzichten muss, bleibt einem nicht viel anderes übrig, als eigene Module zu entwickeln bzw. andere umzuschreiben. ;-)
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

Re: [Module] ResizeExModule.pbi (all OS)

Beitrag von Thorsten1867 »

Update:
  • Bugfixes
  • Unterstützung von Containern
  • automatische Größenanpassung einer definierten ListIcon-Spalte
  • minimale und maximale Fenstergröße festlegbar
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

Re: [Module] ResizeExModule.pbi (all OS)

Beitrag von Thorsten1867 »

Mit der Unterstützung von Walbus konnte ich dynamische Gadget Texte integrieren, d.h. mit der Gadgetgröße kann nun auch die Textgröße automatisch angepasst werden.

Update:
  • Added: Gadget Text vergrößern/verkleinern (dynamischer Text)
  • Added: _CloseWindowHandler()
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild
Antworten