Glowshi Posted October 25, 2005 Posted October 25, 2005 Yay, this is my first post! I'm curious if there is any way to create a label with selectable text or an input or edit box with no frame? I basically just need some text with nothing around it that people can copy and paste. I'm also curious about controlling the order of overlapping controls, say I have a group and it overlaps an edit box and I want the group frame to always be on top, is there any way to control which controls are in front of others? Thanks
Glowshi Posted November 3, 2005 Author Posted November 3, 2005 i guess it's not possible. nevermind then
sandyd Posted November 3, 2005 Posted November 3, 2005 Creating a label with selectable text:#include <GUIConstants.au3> $Form2 = GUICreate("AForm1", 634, 450, 197, 116) $Input1 = GUICtrlCreateInput("AInput1", 8, 8, 121, 21, $ES_READONLY); $ES_READONLY = stops the text being changed GUICtrlSetBkColor($Input1,0xD4D0C8);0xD4D0C8 = same colour as form GUISetState(@SW_SHOW) While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case Else ;;;;;;; EndSelect WEnd ExitAs for overlapping, I'm sure that the order the controls are created does this automatically. E.g. if you create the group after you create the edit box, then it should overlap. ----[ SandyD ]---
Nuffilein805 Posted November 3, 2005 Posted November 3, 2005 how is he supposed to write to that inputbox? if its readonly then you can't write to it my little chatmy little encryption toolmy little hidermy unsafe clickbot
GaryFrost Posted November 3, 2005 Posted November 3, 2005 (edited) #include <GUIConstants.au3> $Form2 = GUICreate("AForm1", 634, 450, 197, 116) $Input1 = GUICtrlCreateInput("AInput1", 8, 8, 121, 21, -1, $WS_EX_TRANSPARENT ) GUICtrlSetBkColor($Input1,0xD4D0C8);0xD4D0C8 = same colour as form GUISetState(@SW_SHOW) While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case Else ;;;;;;; EndSelect WEnd Exit Edited November 3, 2005 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
sandyd Posted November 3, 2005 Posted November 3, 2005 @Nuffilein805:I read from the post that he only wanted to copy and paste the text in the input box. I didn't realise that he wanted to write to it too. (Hence the reason for the $ES_READONLY style).I'm curious if there is any way to create a label with selectable text or an input or edit box with no frame? I basically just need some text with nothing around it that people can copy and paste. ----[ SandyD ]---
Glowshi Posted November 3, 2005 Author Posted November 3, 2005 @Nuffilein805:I read from the post that he only wanted to copy and paste the text in the input box. I didn't realise that he wanted to write to it too. (Hence the reason for the $ES_READONLY style).Yeah, i meant copy from the lable and paste somewhere else. i'll give the input box thing a try. thanks.
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