Sign in to follow this  
Followers 0
twbradio

Disable Maximize

7 posts in this topic

I have an application that opens with the following GUI command:

$MAIN = GuiCreate("Tech Tally 5", 290, 205,(@DesktopWidth-287)/2, (@DesktopHeight-202)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE - $WS_SIZEBOX, $WS_EX_CLIENTEDGE)

I would like to keep the minimize button, but disable the maximize functionality. Is there a native AIG (AutoIt GUI) method for doing this? I did find the following information on a website if anyone has a clue about how to make it happen in AIG.

If you're willing to limit your application to running only

under Win32, there are surely many ways.  For example, message

WM_NCHITTEST can be intercepted in the main windows' window-

procedure, and rather than just passing it straight through

to DefWindowProc as one usually does, one intercepts the return

value from DefWindowProc and (e.g.) changes a return value of

HTMAXBUTTON to HTNOWHERE

Thank you in advance

Tom


Anyone have a TRS 80 Model III for sale?

Share this post


Link to post
Share on other sites



Isn't the deault window style what you want??

$MAIN = GuiCreate("Tech Tally 5", 290, 205,(@DesktopWidth-287)/2, (@DesktopHeight-202)/2)

or perhaps you still want the clientedge extended style

$MAIN = GuiCreate("Tech Tally 5", 290, 205, (@DesktopWidth-287)/2, (@DesktopHeight-202)/2, -1, $WS_EX_CLIENTEDGE)


Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

:"> Oh, I am so embarrassed - I had goofed with the properties of this window so much when I started this several weeks ago that I had completely forgotten the default configuration.

Thank's CyberSlug, I'll just go crawl under my desk now.

Tom

Isn't the deault window style what you want??

$MAIN = GuiCreate("Tech Tally 5", 290, 205,(@DesktopWidth-287)/2, (@DesktopHeight-202)/2)

or perhaps you still want the clientedge extended style

$MAIN = GuiCreate("Tech Tally 5", 290, 205, (@DesktopWidth-287)/2, (@DesktopHeight-202)/2, -1, $WS_EX_CLIENTEDGE)

<{POST_SNAPBACK}>


Anyone have a TRS 80 Model III for sale?

Share this post


Link to post
Share on other sites

Anyone have a TRS 80 Model III for sale?

LMFAO

Not exactly ... How 'bout an Atari 800 XL with 48 k memory?


We have enough youth. How about a fountain of SMART?

Share this post


Link to post
Share on other sites

Don't get me wrong, I'm not an old Fart yet, but my first programming course was in 1983 on a TRS 80 model III with a NETWORK. We used the network mostly for printing our programs out. I still have a bit of nostalga for the old start trek game (similar to EGATrek) that we used to play during class.

:lmao: Tom


Anyone have a TRS 80 Model III for sale?

Share this post


Link to post
Share on other sites

Don't you just love those TRash-80's?


Who else would I be?

Share this post


Link to post
Share on other sites

Back in the days when you were known for the number of DOS's you had learned. TRS-DOS, MS-DOS, DOS+, ...

Tom


Anyone have a TRS 80 Model III for sale?

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