Skip to content

How do I make this Child show as a footer? #648

Closed Answered by AllenDang
vbmark asked this question in Q&A
Discussion options

You must be logged in to vote

Here is the demo code using same tech.

package main

import (
	g "github.com/AllenDang/giu"
)

func loop() {
	g.SingleWindow().Layout(
		g.Row(
			g.Child().ID("Navigator").Size(230, -40).Layout(
				g.Label("Add anything here"),
			),
			g.Child().ID("Container").Size(g.Auto, -40).Layout(
				g.Label("Container"),
			),
		),
		g.Child().ID("Footer").Layout(
			g.Row(
				g.Label("Footer"),
				g.Label("status bar"),
			),
		).Size(g.Auto, g.Auto).Flags(g.WindowFlagsNoScrollbar),
	)
}

func main() {
	wnd := g.NewMasterWindow("Hello world", 800, 500, 0)
	wnd.Run(loop)
}

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
6 replies
@gucio321
Comment options

@vbmark
Comment options

@gucio321
Comment options

gucio321 Mar 1, 2023
Collaborator

@gucio321
Comment options

gucio321 Mar 1, 2023
Collaborator

@vbmark
Comment options

Comment options

You must be logged in to vote
4 replies
@vbmark
Comment options

@AllenDang
Comment options

@AllenDang
Comment options

Answer selected by gucio321
@vbmark
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants