Madza91 Posted November 16, 2008 Share Posted November 16, 2008 (edited) Hello, i found this script in examples and it's bugged, new TabText should be "New Text", but when start script it give me tab with "New T" text... why?! Is that bug in example script or in _GUICtrlTab_SetItemText function ?! #include <GuiConstantsEx.au3> #include <GuiTab.au3> Opt('MustDeclareVars', 1) $Debug_TAB = False ; Check ClassName being passed to functions, set to True and use a handle to another control to see it work _Main() Func _Main() Local $hTab GUICreate("Tab Control Set Item Text", 400, 300) $hTab = GUICtrlCreateTab(2, 2, 396, 296) GUISetState() _GUICtrlTab_InsertItem($hTab, 0, "Tab 1") _GUICtrlTab_InsertItem($hTab, 1, "Tab 2") _GUICtrlTab_InsertItem($hTab, 2, "Tab 3") _GUICtrlTab_SetItemText($hTab, 0, "New Text") MsgBox(4160, "Information", "Tab 1 text: " & _GUICtrlTab_GetItemText($hTab, 0)) Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete() EndFunc ;==>_Main Edited November 16, 2008 by n3nE [quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :) Link to comment Share on other sites More sharing options...
Josbe Posted November 16, 2008 Share Posted November 16, 2008 Weird. It seems like an error with _GUICtrlTab_SetItemText function setting the width... AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
Madza91 Posted November 16, 2008 Author Share Posted November 16, 2008 I fixed this... Just follow this easy steps : Open Include GuiTab.au3 Find line 1116 Replace: $iBuffer = StringLen($sText) + 1 With: $iBuffer = StringLen($sText)*2 + 1 That's it ;D [quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :) Link to comment Share on other sites More sharing options...
Josbe Posted November 16, 2008 Share Posted November 16, 2008 I fixed this...Just follow this easy steps :Open Include GuiTab.au3Find line 1116Replace: $iBuffer = StringLen($sText) + 1With: $iBuffer = StringLen($sText)*2 + 1That's it ;DOk, this has to be reported in the Bug TRAC... AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
Madza91 Posted November 16, 2008 Author Share Posted November 16, 2008 Please report it, I have some stuff to do [quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :) Link to comment Share on other sites More sharing options...
Josbe Posted November 16, 2008 Share Posted November 16, 2008 Please report it, I have some stuff to do Obviously...Everybody has stuff to do. AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
Josbe Posted November 16, 2008 Share Posted November 16, 2008 Reported. Apparently, the error coming from: _GUICtrlTab_SetItem(). AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
Madza91 Posted November 16, 2008 Author Share Posted November 16, 2008 I fixed it, did you see it ? ^^ [quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :) Link to comment Share on other sites More sharing options...
GaryFrost Posted November 16, 2008 Share Posted November 16, 2008 Reported. Apparently, the error coming from: _GUICtrlTab_SetItem().Ticket closed already fixed in beta. 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 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