From 9e6429099d53b850862ed4cfcf22ac1b8c332437 Mon Sep 17 00:00:00 2001 From: Pixel Date: Mon, 28 Dec 2009 15:28:25 +0100 Subject: Getting shrink right. --- dalos-hexview.lua | 2 +- dalos-textview.lua | 4 ++-- dalos.lua | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/dalos-hexview.lua b/dalos-hexview.lua index 28d7217..b59993a 100644 --- a/dalos-hexview.lua +++ b/dalos-hexview.lua @@ -161,7 +161,7 @@ Marker lengths: %b local hv = iupe.hexview { } local hvtb = iupe.hexview_toolbox { hexview = hv } - local hvdlg = iup.dialog { iup.hbox { iup.frame { hv }, iup.sbox { direction = "WEST", hvtb } }, title = obj.name, size = "500x" } + local hvdlg = iup.dialog { iup.hbox { iup.frame { hv }, iup.sbox { direction = "WEST", hvtb } }, title = obj.name, size = "500x", shrink = "Yes" } extra.hv = hv extra.hvtb = hvtb diff --git a/dalos-textview.lua b/dalos-textview.lua index 2a0e220..2bd0be5 100644 --- a/dalos-textview.lua +++ b/dalos-textview.lua @@ -34,13 +34,13 @@ dalosp.textview = { multiline = "Yes", readonly = "Yes", expand = "Yes", - shrink = "Yes", font = "Courier, 8" } local dlg = iup.dialog { txt, size = "320x200", - title = obj.name + title = obj.name, + shrink = "Yes", } extra.dlg = dlg extra.txt = txt diff --git a/dalos.lua b/dalos.lua index e7c02bd..c0235cc 100644 --- a/dalos.lua +++ b/dalos.lua @@ -474,7 +474,6 @@ dalosp.canvas = { create = function (tab) tab.border = "No" tab.expand = "Yes" - tab.shrink = "Yes" tab.minsize = "1x1" tab.rastersize = "1x1" local r = iup.canvas(tab) @@ -1097,7 +1096,7 @@ function dalos:main() m = self.menu(d) s = self.status() - dlg = iup.dialog { iup.vbox { d, s }, title = "Dalos", menu = m, size = "400x250" } + dlg = iup.dialog { iup.vbox { d, s }, title = "Dalos", menu = m, size = "400x250", shrink = "Yes", } d.dialog = dlg -- cgit v1.2.3