Jump to content

Tab Does Not Maximize


Recommended Posts

I have incuded a $WS_MAXIMIZEBOX for my Gui window 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

one solution would be to make the whole Gui window the desktop size and adjust all co-ord values

and not have a $WSMAXIMIZEBOX

but it would be so much nicer to be able to maximize and restore back to original size

:think::):(

Link to comment
Share on other sites

I have incuded a $WS_MAXIMIZEBOX for my Gui window 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

one solution would be to make the whole Gui window the desktop size and adjust all co-ord values

and not have a $WSMAXIMIZEBOX

but it would be so much nicer to be able to maximize and restore back to original size

:think::):(

ok i have added the style $TCS_BUTTONS to the TAB control and this seems to mazimise the

tab to a degree but i would have liked the normal tab operation

any other suggestions ??

Link to comment
Share on other sites

ok i have added the style $TCS_BUTTONS to the TAB control and this seems to mazimise the

tab to a degree but i would have liked the normal tab operation

any other suggestions ??

my mistake After Adding color to the GUI window(GUISetBkColor (0xFFEBCD))

then i noticed the tab size did not change ....................................

Link to comment
Share on other sites

my mistake After Adding color to the GUI window(GUISetBkColor (0xFFEBCD))

then i noticed the tab size did not change ....................................

Try this (not sure if it will work or not)

$GUI_W = 400

$GUI_H = 250

GUICreate('My GUI',$GUI_W,$GUI_H)

GUICtrlCreateTab($GUI_W,$GUI_H,$TCS_OWNERDRAWFIXED)

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

Try this (not sure if it will work or not)

$GUI_W = 400

$GUI_H = 250

GUICreate('My GUI',$GUI_W,$GUI_H)

GUICtrlCreateTab($GUI_W,$GUI_H,$TCS_OWNERDRAWFIXED)

; AutoIt 3.0.103 example

#include <GuiConstants.au3>

$GUI_W = 400

$GUI_H = 250

; GUI

GuiCreate("Sample GUI", $GUI_W,$GUI_H,-1,-1,$WS_MAXIMIZEBOX)

;GUICreate('My GUI',$GUI_W,$GUI_H)

GUISetBkColor (0xFFEBCD)

GuiSetIcon(@SystemDir & "\mspaint.exe", 0)

; TAB

;GuiCtrlCreateTab(15, 20, 150, 70,$TCS_BUTTONS)

;GuiCtrlCreateTab(15, 20, 150, 70, $TCS_OWNERDRAWFIXED)

GUICtrlCreateTab(0,0, $GUI_W-15,$GUI_H-35, $TCS_TABS)

GuiCtrlCreateTabItem("One")

GuiCtrlCreateLabel("Sample Tab with tabItems", 20, 50)

GuiCtrlCreateTabItem("Two")

GuiCtrlCreateTabItem("Three")

GuiCtrlCreateTabItem("")

; GUI MESSAGE LOOP

GuiSetState()

While GuiGetMsg() <> $GUI_EVENT_CLOSE

WEnd

no still is not working, surely it cannot be so difficult ?

Link to comment
Share on other sites

no still is not working, surely it cannot be so difficult ?

Found It!! I knew I had seen this some place

Read GUICtrlSetResizing in the AU3 Help file.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

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...