rodrigocfd / windigo

Windows API and GUI in idiomatic Go.

Home Page:https://pkg.go.dev/github.com/rodrigocfd/windigo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to create Tabs?

chabad360 opened this issue · comments

I've been looking around quite a bit, but I've been unable to figure out how to create a Tab control. It seems like Windigo doesn't have any support for them?

I never implemented the Tab control in Windigo. You can try to create one manually, by calling CreateWindowEx. An ordinary C++ example should work.

Anyway, leave this issue open, and I'll let you know when I implement it.

The problem is that there are also functions that are needed to insert tabs, I'm not quite sure how to make use of them. But either way, thanks.

Yea, I've been trying to figure out how to create tabs myself, and I've been having a bit of trouble (see my fork). I managed to get as far as actually creating the tab control and individual tabs, but I can't seem to get the tab to display more than one character.

Additionally, every element that I put on the tab seems to have the wrong background color. I assume this has something to do with how I parented stuff? I can't really figure out what's a better way to do this tho (I don't really have the time either), is there something I'm missing?