Jump to content

Drag&Drop problem


Recommended Posts

Good day. Excuse me if such topic already exists. I searched but didn't find.

Here's the part of the code I was writing for a GUI for a specific program called OniSplit (http://oni.bungie.org/community/forum/ and http://wiki.oni2.net/OniSplit if you're curious)

$bsl_addf_diag=GUICreate($__aeps_pfr[4][1], 350, 150, -1, -1, -1, 0x00000010, $bsl_set_gui)
    GUICtrlCreateLabel($__aeps[9][1], 20, 20)
    $bsl_folder_r=GUICtrlCreateInput('', 100, 20, 150, 20)
    GUICtrlSetState(-1,$GUI_DROPACCEPTED)
    $__browse32=GUICtrlCreateButton($__ntags[23][1], 255, 20, 55, 20)
    GUICtrlCreateLabel($__aeps_pfr[15][1], 20, 50)
    $bsl_lname_r=GUICtrlCreateCombo('', 100, 48, 215, 20)
    GUICtrlSetData(-1, 'EnvWarehouse|manplant|lab|Airport|Airport_III|tctf|power|power_II|state|roof|dream_lab|neuro|tctf_ii|compound|global', 'EnvWarehouse')
    $bsl_addf_button=GUICtrlCreateButton($__aeps_pfr[7][1], 125, 100, 100, 30)

those $__<something> are arrays of strings read from an ini.

So the problem is that $bsl_folder_r is not dropaccepted as it should. What did I do wrong? I'd like to notice that I used a lot controls that are dropaccepted before this code.

The whole source is here - http://mods.oni2.net/system/files/src.zip. the problematic part is in the end of GUI.au3 in that archive.

P. S. If you have intention to look through the src.zip then sorry for the messy code in advance :mellow:'

Edited by demoskratos
Link to comment
Share on other sites

I don't know what the styles are that you are using when you create the GUI but the extended stayle has to include $WS_EX_ACCEPTFILES

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

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