View previous topic :: View next topic |
Author |
Message |
DoT_PiTcH Contributor
Joined: 07 Aug 2002 Posts: 85
|
Posted: Tue Jan 24, 2012 10:38 pm Post subject: READ ONLY EDIT BOXES |
|
|
I DONT WANT TO DISABLE THE ELEMENT I JUST WANT THEM READONLY.
ALSO I HAVE "EXIT" AS A STYLE ON SOME EDIT BOXS AND WHEN SCRIPT FIRST RAN IT GOES DIRECTLY TO THE EXIT EVENT |
|
Back to top |
|
|
Aslan Valued Contributor
Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Wed Jan 25, 2012 4:15 am Post subject: |
|
|
The EDIT element has a readonly style you can use. Look in the help file for more help with STYLES.
Code: | DIALOG ADD,EDIT,<name>,<top>,<left>,<width>,<height>,<value>,<tooltip>,READONLY |
I would have to see your script to see why it goes directly to the <element>EXIT event. You could also try throwing away the first event when starting your script
Code: | #ELEMENT Creation then
DIALOG SHOW
%E = @event()
:evloop
# then continue your script |
|
|
Back to top |
|
|
PGWARE Web Host
Joined: 29 Dec 2001 Posts: 1562
|
Posted: Wed Jan 25, 2012 8:34 pm Post subject: |
|
|
It could also be your edit control is the first control on the window, and you have a button on the window that has the DEFAULT style on it, the focus will be stolen from the edit to the button. Change the tab order of the edit control so it doesnt receive focus first. |
|
Back to top |
|
|
DoT_PiTcH Contributor
Joined: 07 Aug 2002 Posts: 85
|
Posted: Wed Jan 25, 2012 11:25 pm Post subject: |
|
|
I must be tired for the READONLY. i didnt even notice it in the dropdown
and adding the button with DEFAULT as first element solved the EXIT event trigger. thanks! |
|
Back to top |
|
|
|