Jump to content

Recommended Posts

  • Moderators
Posted

FrancescoDiMuro,

You use GUICtrlSetStyle to change the style of the input.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted (edited)

Hey @Melba23!
How are you? :)
Nice to hear you :)
Yes, I did know how to set a style for a GUI control, but, in this case, I don't know which style I have to set to the control in order to set the input editable ( from the previous state, when I create it, that is $ES_READONLY ).
 

$input_Codice = GUICtrlCreateInput($aDettagliArticolo[0], 73, 6, 161, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_READONLY))
GUICtrlSetState(-1, ;Here I should put a State, but I don't know which one is correct to let the $input_Codice editable )

 

Edited by FrancescoDiMuro

Click here to see my signature:

  Reveal hidden contents

 

  • Moderators
Posted

FrancescoDiMuro,

Setting a new style overwrites the existing style - as explained in the Setting Styles tutorial in the Wiki - so all you need do is set the default style only and the input will become editable. To reset the read-only style, you need to set the combined styles as you did when creating the control.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

  • Moderators
Posted
  On 2/3/2017 at 11:21 AM, Melba23 said:

You use GUICtrlSetStyle to change the style of the input.

Expand  

 

  On 2/3/2017 at 11:53 AM, FrancescoDiMuro said:

 

GUICtrlSetState($input_Codice, $GUI_SS_DEFAULT_INPUT)

 

Expand  

Spot the difference?

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

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
×
×
  • Create New...