How to set a gui inside a tab of another gui?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
pv007
Posts: 93
Joined: 20 Jul 2020, 23:50

How to set a gui inside a tab of another gui?

Post by pv007 » 19 Jan 2022, 17:34

Tried this way, the gui2 disappeared but i cant see it inside of the tab of gui1

Code: Select all

Gui, 2: +HwndGUI2 -Caption
Gui, 2: Color, 0
Gui, 2: Font, s38, Consolas
Gui, 2: Add, Text, Hello World
Gui, 2: Show, w600 h100



Gui +HwndGUI1
Gui, Add, Tab2, w500 h200 hwndTab_Hwnd, A

Gui, Tab, A
Gui, Add, Button, w100 h30, Button

DllCall("SetParent", "Uint", GUI2, "uint", Tab_Hwnd)
Gui, Show, w600 h300

User avatar
boiler
Posts: 16767
Joined: 21 Dec 2014, 02:44

Re: How to set a gui inside a tab of another gui?

Post by boiler » 19 Jan 2022, 18:00

Tab controls are meant to contain other controls. Have you ever seen a Tab control contain a child GUI?

Post Reply

Return to “Ask for Help (v1)”