Skip to content

Commit

Permalink
set preview window settings based on window definition
Browse files Browse the repository at this point in the history
  • Loading branch information
dmcoles committed Jul 23, 2024
1 parent fa78792 commit c3a22eb
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions windowObject.e
Original file line number Diff line number Diff line change
Expand Up @@ -1109,12 +1109,16 @@ PROC editSettings(comp:PTR TO windowObject) OF windowSettingsForm
comp.flags:=self.tmpFlags
comp.idcmp:=self.tmpIDCMP

comp.previewLeft:=comp.leftEdge
comp.previewTop:=comp.topEdge
comp.previewWidth:=comp.width
comp.previewHeight:=comp.height
ENDIF
ENDPROC res=MR_OK

EXPORT PROC createPreviewObject(scr) OF windowObject
IF self.previewObject THEN DisposeObject(self.previewObject)

self.previewObject:=WindowObject,
WA_TITLE, self.title,
IF StrLen(self.screentitle) THEN WA_SCREENTITLE ELSE TAG_IGNORE, self.screentitle,
Expand Down Expand Up @@ -1188,10 +1192,10 @@ EXPORT PROC create(parent) OF windowObject
self.createPreviewObject(0)
self.previewChildAttrs:=0
self.previewOpen:=TRUE
self.previewLeft:=-1
self.previewTop:=-1
self.previewWidth:=-1
self.previewHeight:=-1
self.previewLeft:=self.leftEdge
self.previewTop:=self.topEdge
self.previewWidth:=self.width
self.previewHeight:=self.height
ENDPROC

PROC end() OF windowObject
Expand Down

0 comments on commit c3a22eb

Please sign in to comment.