Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

$ES_READONLY + Input


  • Please log in to reply
3 replies to this topic

#1 Zilee

Zilee

    Seeker

  • Active Members
  • 18 posts

Posted 24 February 2011 - 03:42 PM

Sup guys. I insert a long path inside a ctrl input, I don't want to let the users edit the path once it's placed inside the edit so I added the readonly attribute.

Only issue is, I can't use the mouse to select long strings, the hidden text simply doesn't move along. Keyboard arrows and HOME/END key's aren't doing much good either. I can't make my input longer since my window has a size I don't want to change.

Edited by Zilee, 24 February 2011 - 03:43 PM.








#2 UEZ

UEZ

    Never say never

  • MVPs
  • 5,076 posts

Posted 24 February 2011 - 03:53 PM

This is working for me:

#include <EditConstants.au3> #include <GUIConstantsEx.au3> $Form1 = GUICreate("TEST", 215, 88) $Label = GUICtrlCreateLabel("Path", 32, 32, 26, 17) $Input = GUICtrlCreateInput("c:\ProgramData\Microsoft\Search\Data\Applications\Windows\Projects\SystemIndex\SecStore\", 64, 30, 121, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_READONLY)) GUISetState(@SW_SHOW) While 1     $nMsg = GUIGetMsg()     Switch $nMsg         Case $GUI_EVENT_CLOSE             Exit     EndSwitch WEnd


I can select either with the mouse or with the keyboard the path in the input box.

Br,
UEZ

 
The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯


#3 Manadar

Manadar

         

  • MVPs
  • 10,900 posts

Posted 24 February 2011 - 04:01 PM

UEZ, however this doesn't:

#include <EditConstants.au3> #include <GUIConstantsEx.au3> $Form1 = GUICreate("TEST", 215, 88) $Label = GUICtrlCreateLabel("Path", 32, 32, 26, 17) $Input = GUICtrlCreateInput("c:\ProgramData\Microsoft\Search\Data\Applications\Windows\Projects\SystemIndex\SecStore\", 64, 30, 121, 21, $ES_READONLY) GUISetState(@SW_SHOW) While 1     $nMsg = GUIGetMsg()     Switch $nMsg         Case $GUI_EVENT_CLOSE             Exit     EndSwitch WEnd


@OP, LOL! :)

#4 Zilee

Zilee

    Seeker

  • Active Members
  • 18 posts

Posted 24 February 2011 - 06:30 PM

Thanks friends. Should have known better.


Aloha




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users