forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


READ ONLY EDIT BOXES

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
DoT_PiTcH
Contributor
Contributor


Joined: 07 Aug 2002
Posts: 85

PostPosted: Tue Jan 24, 2012 10:38 pm    Post subject: READ ONLY EDIT BOXES Reply with quote

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
View user's profile Send private message Visit poster's website
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Wed Jan 25, 2012 4:15 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1562

PostPosted: Wed Jan 25, 2012 8:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
DoT_PiTcH
Contributor
Contributor


Joined: 07 Aug 2002
Posts: 85

PostPosted: Wed Jan 25, 2012 11:25 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group