Jump to content

Recommended Posts

Posted

I tryed creating a gui with status bar and with a menu, but if The gui has a manu, the status bar will move down and can't be seen entirely?

Why?...how could I make it ok?

This is an example code:

#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <DateTimeConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <ListViewConstants.au3>
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <StatusBarConstants.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
#Include <GuiStatusBar.au3>

#Region ### START Koda GUI section ### Form=c:\documents and settings\darzan mihai\desktop\http+encrypt\forms\form_main.kxf
$Form_main = GUICreate("form", 1135, 687, -1,-1)
$StatusBar = _GUICtrlStatusBar_Create($Form_main)
Dim $StatusBar_PartsWidth[5] = [200, 400, 460, 660, 760]
_GUICtrlStatusBar_SetParts($StatusBar, $StatusBar_PartsWidth)
_GUICtrlStatusBar_SetText($StatusBar, "USER:", 0)
_GUICtrlStatusBar_SetText($StatusBar, "SITE:", 1)
_GUICtrlStatusBar_SetText($StatusBar, "LEVEL:", 2)
_GUICtrlStatusBar_SetText($StatusBar, "STATUS:", 3)
_GUICtrlStatusBar_SetText($StatusBar, "Progres:", 4)
_GUICtrlStatusBar_SetMinHeight($StatusBar, 25)

$MenuItem3 = GUICtrlCreateMenu("&File")
$MenuItem1 = GUICtrlCreateMenu("&Despre")
$MenuItem2 = GUICtrlCreateMenu("&Ajutor")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit

EndSwitch
WEnd

try comenting the Menu lines and it will be ok, as is should be.

I do not like stupid and idiot people that write idiot things...If you are one, do not write.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...