Sign in to follow this  
Followers 0
dickieknee

Why Does $ws_maximizebox Hide The Window

3 posts in this topic

$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:

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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.

 

Share this post


Link to post
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:

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  
Followers 0