AustrianOak Posted June 23, 2008 Share Posted June 23, 2008 I have tried with this code and it doesn't have a background color on it even though i set it to. $edit = GUICtrlCreateEdit("", 0, 500, 50) GUICtrlSetState($edit, $GUI_ONTOP) GUICtrlSetState($edit, $GUI_SHOW) GUICtrlSetBkColor($edit, 0x000000) Help :| Link to comment Share on other sites More sharing options...
AustrianOak Posted June 23, 2008 Author Share Posted June 23, 2008 I can't even manage to create a damn Edit period. This is what im doing basically: Case $msg = $button5 $edit = GUICtrlCreateEdit("", 200, 200, 120, 40) GUICtrlSetState($edit, $GUI_ONTOP) GUICtrlSetState($edit, $GUI_SHOW) GUICtrlSetBKColor($edit, 0x000000) Whats goin on? Link to comment Share on other sites More sharing options...
AustrianOak Posted June 23, 2008 Author Share Posted June 23, 2008 (edited) I really need help on this. If anyone can give me advice, i'd be grateful. Edited June 23, 2008 by MrOzi Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted June 23, 2008 Share Posted June 23, 2008 It would be much easier to help if you post a working reproducer and tell us what's happening and what you want it to do. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
AustrianOak Posted June 23, 2008 Author Share Posted June 23, 2008 (edited) It would be much easier to help if you post a working reproducer and tell us what's happening and what you want it to do.Funny you mention that as I wouldn't be posting for help if I had a 'working' reproducer. I believe I clearly explained what I want to do in my first post.How can it get any simpler than that. Edited June 23, 2008 by nowagain Link to comment Share on other sites More sharing options...
DarkNet Posted June 23, 2008 Share Posted June 23, 2008 You can try this: $Edit1 = GUICtrlCreateEdit("", 64, 64, 169, 201) GUICtrlSetColor(-1, 0x00FF00) GUICtrlSetBkColor(-1, 0x000000) Link to comment Share on other sites More sharing options...
martin Posted June 23, 2008 Share Posted June 23, 2008 Funny you mention that as I wouldn't be posting for help if I had a 'working' reproducer. I believe I clearly explained what I want to do in my first post.How can it get any simpler than that. Not much. The code you posted cannot be run by us, so AdmiralAlkex said, quite correctly IMO, that it would be easier for us if you posted something which we can run and which shows your problem. That is a working reproducer. 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...
AustrianOak Posted June 23, 2008 Author Share Posted June 23, 2008 #Include <GUIConstants.au3> GUICreate("", 300, 300) $button5 = GUICtrlCreateButton("", 40, 40, 40, 40) GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_Event_Close Exit Case $msg = $button5 $edit = GUICtrlCreateEdit("", 100, 200, 120, 40) GUICtrlSetBKColor($edit, 0x000000) EndSelect WEnd I don't understand it. The edit is created perfectly in this example but doesn't even SHOW on my real code and my real code is formatted just like this... Link to comment Share on other sites More sharing options...
NELyon Posted June 24, 2008 Share Posted June 24, 2008 #Include <GUIConstants.au3> GUICreate("", 300, 300) $button5 = GUICtrlCreateButton("", 40, 40, 40, 40) GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_Event_Close Exit Case $msg = $button5 $edit = GUICtrlCreateEdit("", 100, 200, 120, 40) GUICtrlSetBKColor($edit, 0x000000) EndSelect WEnd I don't understand it. The edit is created perfectly in this example but doesn't even SHOW on my real code and my real code is formatted just like this... Well then use that 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