🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.forms
Article #58

EnableObjects and SetFocus

#58
From: P.G.M. van Mierlo
Date: Sun, 04 Apr 1999 00:00
45 lines
1728 bytes
Hi,

I'm looking for a procedure called EnabledObject and SetFocus for VDB 7
wich was also available 
for VDB 5.5 which I used a lot. I thought it was created by some of the
Team-B members....but
i'm not sure...

This is the code for Vdb5 for EnableObject and SetFocus....so i someone
remembers something, let me know:

   Procedure EnableObjects(lEnabled)
   *--------------------------------  
   if form.DataControlsAreEnabled = lEnabled
      RETURN
   else
      form.DataControlsAreEnabled = lEnabled
   endif
   local oControl
   oControl = form.first
   do
      if oControl.Classname $
"ENTRYFIELD|EDITOR|RADIOBUTTON|SPINBOX|CHECKBOX|BROWS|COMBOBOX|LISTBOX"
         oControl.Enabled = lEnabled
      endif
      oControl = oControl.Before
   until oControl.Name ==form.first.name
   

   Procedure FirstFocus
   *-------------------
   private oControl
   oControl = form.first
   do
      if type("oControl.SetFocus") == "FB" .or.
type("oControl.SetFocus") == "CB" .and. oControl.PageNo = Form.PageNo
         oControl.SetFocus()
         RETURN
      endif
      oControl = oControl.Before
   until oControl.Name == form.first.name
 

----------------------------------------
Greetings Peter
Technical Details
Message-ID: <3707BCB4.181F@wxs.nl>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 15bdfb,a57fef3228d804fa,start
X-Google-Attributes: gid15bdfb,public
From: "P.G.M. van Mierlo" <mierl029@wxs.nl>
Subject: EnableObjects and SetFocus
Date: 1999/04/04
Message-ID: <3707BCB4.181F@wxs.nl>
X-Deja-AN: 462634318
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Organization: ViCap Vision
Mime-Version: 1.0
Reply-To: mierl029@wxs.nl
Newsgroups: borland.public.vdbase.forms