Jump to content

Why Does $ws_maximizebox Hide The Window


Recommended Posts

$max_width=@DesktopWidth-100

$max_height = @DesktopHeight-100

$min_width=610

$min_height = 500

$width =$min_width

$height= $min_height

; GUI

GuiCreate("Win title", $width, $height, $WS_MAXIMIZEBOX)

when i use GuiCreate with title, width and height, i get a window with a minimize

and a close box in the top right corner, but no maximise box

when i include $WS_MAXIMIZEBOX into GuiCreate then the window does

not open but sits minimised in the taskbar

have i missed something here, i am using the beta version and have

#include <GuiConstants.au3> at the top of the script

Thx in advance :think:

Link to comment
Share on other sites

GUICreate ( "title" [, width [, height [, left [, top [, style [, exStyle [, parent]]]]]]] )

GuiCreate("Win title", $width, $height, $WS_MAXIMIZEBOX)

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

GUICreate ( "title" [, width [, height [, left [, top [, style [, exStyle [, parent]]]]]]] )

GuiCreate("Win title", $width, $height, $WS_MAXIMIZEBOX)

Thanks, seems so simple now, i had not realised that the start positions werre

compulsory when using styles

though there still is one problem

the window is now visible and when i hit the maximize box then all controls adjust in

size except for the TAB which remains fixed to the$min_width and $min_height,

I removed all variable associations for the width and height and just had fixed numbers

but this still yielded no change in the tab size

it is friday though :think:

Link to comment
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
 Share

  • Recently Browsing   0 members

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