Jump to content

Drag&Drop Text or Link To EditBox.


Recommended Posts

how can create a EditBox that Making it possible to Drag&Drop link(or text) from web Control into it?(IE or others.)

my sample code can drag&drop filePath to editBox but i want drag&Drop link(or text) into it.

My Sample Code:

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$frm_main = GUICreate("Drag(Test)", 405, 294, -1,-1,-1,$WS_EX_ACCEPTFILES)
$ed_test = GUICtrlCreateEdit("", 1, 0, 403, 293)
GUICtrlSetState(-1,$GUI_DROPACCEPTED)
GUISetState(@SW_SHOW)

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
  Case $GUI_EVENT_CLOSE
   Exit
EndSwitch
WEnd

(sorry for my bad eng.)

Link to comment
Share on other sites

Check out _GUICtrlRichEdit_Create(). It will do what you want. Colors too :)

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...