Jump to content
Sign in to follow this  
tempman

GuiCtrlCreateTab

Recommended Posts

tempman

Hi,

How to put content of MsgBox in Tab?

#NoTrayIcon
#include <GuiConstants.au3>

GuiCreate("IPset", 400, 400)

GuiCtrlCreateTab(5, 5, 390, 350)
GuiCtrlCreateTabItem("IP address")
#Region
$ip = Run(@ComSpec & " /c ipconfig","",@SW_HIDE, 2)
$ip_output=StdoutRead($ip)
MsgBox(0, "IP address", $ip_output); <----------------------- Insted of MsgBox just Plain Text in Tab
#EndRegion

GuiSetState()

While 1
    $msg = GUIGetMsg()
        Select
        Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    EndSelect
WEnd

GUIDelete()
Exit

Share this post


Link to post
Share on other sites
MerkurAlex

Hi,

How to put content of MsgBox in Tab?

#NoTrayIcon
#include <GuiConstants.au3>

GuiCreate("IPset", 400, 400)

GuiCtrlCreateTab(5, 5, 390, 350)
GuiCtrlCreateTabItem("IP address")
#Region
$ip = Run(@ComSpec & " /c ipconfig","",@SW_HIDE, 2)
$ip_output=StdoutRead($ip)
MsgBox(0, "IP address", $ip_output); <----------------------- Insted of MsgBox just Plain Text in Tab
#EndRegion

GuiSetState()

While 1
    $msg = GUIGetMsg()
        Select
        Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    EndSelect
WEnd

GUIDelete()
Exit
GuiCtrlCreateLabel look in the help file.

Also look at @ipaddress1 removes the need for running ipconfig.

And _GetIp returns actual ip not local one good luck!

Edited by MerkurAlex

[quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote]

Share this post


Link to post
Share on other sites
tempman

GuiCtrlCreateLabel look in the help file.

Also look at @ipaddress1 removes the need for running ipconfig.

And _GetIp returns actual ip not local one good luck!

Thanks for replying!

I nead IP, Subnet and Gateway to be display, so @ipaddress1 does not do the job and no nead for _GetIP

GUICtrlCreateLabel ($ip_output, 80, 50, 0, 0)

instead of

MsgBox(0, "IP address", $ip_output)

And my task is solved!

Edited by tempman

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×