Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table column name and column width #40

Closed
ghost opened this issue Oct 16, 2014 · 6 comments
Closed

Table column name and column width #40

ghost opened this issue Oct 16, 2014 · 6 comments

Comments

@ghost
Copy link

ghost commented Oct 16, 2014

HI ,
first forgive me my english is not good.
I get a problem with Table is that Table column display name is based on struct field name, but my mother tongue is not English.
so is there anyway to change table column display name to display non english character.

type Column struct{
Name string
Age string //but i thought int need be surpport
}

and table column display Name,Age,i want to display 姓名,年龄
maybe struct tag display:"姓名" is a way
qq 20141016101113

by the way,how to set button height and width,
thanks!

@andlabs
Copy link
Owner

andlabs commented Oct 16, 2014

There's no way to set an explicit height and width; the various containers (Stack, Grid, SimpleGrid) can be used to build more elaborate layouts.

As for table column names that is on the TODO list. It will be a struct tag on the field.

@ghost ghost closed this as completed Oct 17, 2014
@andlabs andlabs reopened this Oct 17, 2014
@andlabs andlabs closed this as completed Oct 17, 2014
@andlabs
Copy link
Owner

andlabs commented Oct 17, 2014

Will keep open until implemented.

@andlabs andlabs reopened this Oct 17, 2014
@andlabs
Copy link
Owner

andlabs commented Oct 18, 2014

Just a quick update: once I finish the newctrl/ stuff I'm going to start doing a rewrite of Table on Windows to use an entirely custom control; once that's feature-complete I can add these features.

@andlabs
Copy link
Owner

andlabs commented Jan 4, 2015

Once I can implement accessibility for it the Table rewrite on Windows will be ready to go. Hopefully by the end of the month this issue can be closed.

@andlabs
Copy link
Owner

andlabs commented Feb 21, 2015

A month later but I finally added the column header text feature.

What do you mean by setting button width and height? What do you want to do?

@andlabs
Copy link
Owner

andlabs commented Mar 23, 2018

Replaced with andlabs/libui#310.

@andlabs andlabs closed this as completed Mar 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant