Skip to content

Commit

Permalink
widget windowFrame
Browse files Browse the repository at this point in the history
  • Loading branch information
vdelachaux committed Mar 15, 2024
1 parent 87a6a43 commit c8aefb6
Show file tree
Hide file tree
Showing 59 changed files with 6,749 additions and 3,291 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,5 @@ Thumbs.db
Project/Trash
Resources/php.ini
Project/Sources/Methods/Method[0-9]*.4dm
Project/Sources/Forms/Form[0-9]*
Project/Sources/Forms/Form[0-9]*
Project/Sources/dependencies.json
82 changes: 82 additions & 0 deletions Project/Sources/Classes/_DEMO_WINDOW_FRAME_Controller.4dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
property form : cs:C1710.formDelegate
property bar : cs:C1710.subformDelegate

Class constructor

// MARK:-Delegates 📦
This:C1470.form:=cs:C1710.formDelegate.new(This:C1470)

This:C1470.form.init()

// MARK:-[Standard Suite]
// === === === === === === === === === === === === === === === === === === === === === === === ===
Function init()

// MARK:-Title bar
This:C1470.bar:=This:C1470.form.subform.new("bar")

// === === === === === === === === === === === === === === === === === === === === === === === ===
Function handleEvents($e : cs:C1710.evt)

$e:=$e || cs:C1710.evt.new()

// MARK:Form Method
If ($e.objectName=Null:C1517)

Case of

//______________________________________________________
: ($e.load)

This:C1470.form.onLoad()

//______________________________________________________
: ($e.timer)

This:C1470.form.update()

//______________________________________________________
: ($e.activate)

This:C1470.bar.refresh()

//______________________________________________________
: ($e.deactivate)

This:C1470.bar.refresh()

//______________________________________________________
: ($e.unload)

//

//______________________________________________________
End case

return

End if

// MARK: Widget Methods

// === === === === === === === === === === === === === === === === === === === === === === === ===
Function onLoad()

// Resize the window frame widget
This:C1470._barManager()

This:C1470.form.refresh()

// === === === === === === === === === === === === === === === === === === === === === === === ===
Function update()

//

// MARK:-Managers
// === === === === === === === === === === === === === === === === === === === === === === === ===
Function _barManager($e : cs:C1710.evt)

$e:=$e || cs:C1710.evt.new()

This:C1470.bar.left:=0
This:C1470.bar.width:=This:C1470.form.dimensions.width
4 changes: 2 additions & 2 deletions Project/Sources/Classes/_DEMO_menus_Controller.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Function init()

/*
📌 Note that a third empty "Windows" is added and will be filled in later.
📌 Note that a third empty menu "Windows" is added and will be filled in later.
*/

Expand Down Expand Up @@ -147,7 +147,7 @@ Function onLoad()
This:C1470.windows.setLinkedPopupMenu()

// Mark: Distribute according to labels
cs:C1710.groupDelegate.new(This:C1470.fonts; This:C1470.withFamilies).distributeLeftToRight()
cs:C1710.groupDelegate.new([This:C1470.fonts; This:C1470.withFamilies]).distributeLeftToRight()
This:C1470.windows.alignCenter()

// Mark: Hide font sample
Expand Down
Loading

0 comments on commit c8aefb6

Please sign in to comment.