Replies: 1 comment
-
package main
import "github.com/AllenDang/giu"
func loop() {
giu.SingleWindow().Layout(
giu.Table().Columns(
giu.TableColumn("State").InnerWidthOrWeight(20).Flags(giu.TableColumnFlagsWidthFixed),
).Rows(
giu.TableRow(
giu.Label("1"),
),
giu.TableRow(
giu.Label("2"),
),
),
)
}
func main() {
wnd := giu.NewMasterWindow("Width of table column [discussion 652]", 64, 480, 0)
wnd.Run(loop)
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vbmark
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This column only holds two letters so I don't need to make it as wide as the others. Is there a way to force a constant width?
EDIT: I see that there are things called TableColumnFlags but I cannot figure out how to implement the flags such as TableColumnFlagsWidthStretch. Any examples would be appreciated.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions