Sign in to follow this  
Followers 0
Golabius

Drag&Drop Text or Link To EditBox.

3 posts in this topic

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.)

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

@Beege,

Tnx man. Clear.

but can EditBox does it like RichEdit?(Drag&Drop Link or Text)

Edited by Golabius

Share this post


Link to post
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
Sign in to follow this  
Followers 0