torels Posted October 19, 2008 Share Posted October 19, 2008 Hi there I can't resize a tab control created with _GUICtrlTab_Create() I tried using control move without success... can anybody help plase ? thanks in advance Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org Link to comment Share on other sites More sharing options...
martin Posted October 19, 2008 Share Posted October 19, 2008 Hi there I can't resize a tab control created with _GUICtrlTab_Create() I tried using control move without success... can anybody help plase ? thanks in advanceShould work so I think you have made a mistake perhaps. Here is an example ControlMove($hGui,"","[CLASS:SysTabControl32;INSTANCE:1]",2,2,200,150) Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
torels Posted October 19, 2008 Author Share Posted October 19, 2008 thanks martin Anyway... I had a stupid error XD $width = ControlGetPos($Gui,"",$MainTab) $WinWidth = WinGetPos($gui) If $width < $WinWidth Then ;<------ THE ERROR now replaced with If $width[3] < $WinWidth[3] Then ControlMove($Gui,"",$MainTab, $width[0], $width[1], $WinWidth[2]) EndIf Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org Link to comment Share on other sites More sharing options...
rasim Posted October 19, 2008 Share Posted October 19, 2008 Hi there I can't resize a tab control created with _GUICtrlTab_Create() I tried using control move without success... can anybody help plase ? thanks in advanceTry this: expandcollapse popup#include <GuiConstantsEx.au3> #include <GuiTab.au3> #include <WindowsConstants.au3> #include <Constants.au3> Global $hTab _Main() Func _Main() Local $hGUI ; Create GUI $hGUI = GUICreate("(UDF Created) Tab Control Create", 300, 200, -1, -1, _ BitOR($WS_MINIMIZEBOX, $WS_CAPTION, $WS_POPUP, $WS_SYSMENU, $WS_SIZEBOX)) $hTab = _GUICtrlTab_Create($hGUI, 10, 10, 280, 180) GUIRegisterMsg($WM_SIZE, "WM_SIZE") GUISetState() ; Add tabs _GUICtrlTab_InsertItem($hTab, 0, "Tab 1") _GUICtrlTab_InsertItem($hTab, 1, "Tab 2") _GUICtrlTab_InsertItem($hTab, 2, "Tab 3") ; Loop until user exits Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete() EndFunc ;==>_Main Func WM_SIZE($hWnd, $Msg, $wParam, $lParam) Local $iWidth = BitAND($lParam, 0x0000FFFF) Local $iHeight = BitShift($lParam, 16) _WinAPI_SetWindowPos($hTab, $hTab, 10, 10, $iWidth - 20, $iHeight - 20, BitOR($SWP_NOMOVE, $SWP_NOZORDER, $SWP_NOACTIVATE)) Return $GUI_RUNDEFMSG EndFunc Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now