Hi Khaled,
When we have an edit box, it can be enabled/disabled via code, e.g.:
alias test { dialog -m test test }
dialog test {
title ""
option pixels
size -1 -1 250 99
check "Enable", 1, 12 15 50 16
edit "", 2, 10 32 230 21, disable autohs
button "&OK", 3, 164 66 76 23, ok default
}
on *:dialog:test:*:*:{
if ($devent == sclick) && ($did == 1) { did $iif($did($did).state,-e,-b) $dname 2 }
}
I found something that I'm not sure if it's a bug. When the edit box is enabled and we have the cursor inside that window, if we disable the edit box, the style of the edit box changes.
I also discovered that whether we leave the edit box empty or not, the style also changes. Sometimes it's random, the style sometimes doesn't change, sometimes it does.
![[Linked Image from i.ibb.co]](https://i.ibb.co/fGCfJX3w/Screenshot-8.png)
![[Linked Image from i.ibb.co]](https://i.ibb.co/8L6njPLb/Screenshot-10.png)
![[Linked Image from i.ibb.co]](https://i.ibb.co/bgwbpjCL/Screenshot-11.png)
The same happens with the mIRC edit boxes:
When dialog is opened::
Dialog box with edit boxes enabled:
Dialog box with edit boxes disabled:
Dialog that appears when the cursor is active in the last edit box:
Dialog box displayed when we disable the edit boxes:
Sometimes it's random. It changes the style in some edit boxes and not in others:
![[Linked Image from i.ibb.co]](https://i.ibb.co/HLZyKjcx/Screenshot-7.png)
I'm using beta version
7.83.3857, but I checked the released version
7.83 and some previous versions, and this problem occurs in all versions.