One way is to just open two instances of RBase and have two form designers open 
at the same time, one with your subject and the other with the target enhances 
tab control and do a lot of cutting and pasting.

I have done the next, and it worked, so:

First, make a copy of your form before you do anything else.

Save the form in an uncompressed format.

create another form with the enhanced tab control and save it also in an 
uncompressed format.  Select the enhanced Tab Control and Ctr-C (copy) it to 
the clipboard.

Open Notpad and Ctrl-V (paste it)

The description will look like this:

object RPageControl1: TRPageControl
  Tag = 84678207
  Left = 70
  Top = 205
  Width = 466
  Height = 96
  UseByRForm = False
  HideOnStartup = False
  BackgroundColor = clBtnFace
  CompID = 'RPageControl1'
  LastPageIndex = 0
  TabOrder = 9
  FixedDimension = 0
end

if you copy and paste the regular tab control (a virgin one without any code or 
added controls) it will look like this:

object PageControl1: TPageControl
  Tag = 42536699
  Left = 60
  Top = 30
  Width = 476
  Height = 126
  UseByRForm = False
  HideOnStartup = False
  CompID = 'PageControl1'
  LastPageIndex = 0
  ParentShowHint = False
  ShowHint = True
  TabOrder = 8
end

Notice there are only 3 lines different.

The first line that tells exactly what the object class is, the Component ID 
(which isn't important at this point) and the addition of the last line 
FixedDimension = 0.

So open Sys_Forms3 and navigate to the form to convert and change the first 
line and add the FixedDimension=0 in the position relative to the way it is 
shown above, save and exit the sys_forms3 and open the form in the designer.

It should now have an enhanced form. (fingers crossed)






----- Original Message ----- 
From: <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Tuesday, January 06, 2009 5:32 PM
Subject: [RBASE-L] - Tab vs. Enhanced Tab


>A client has a form that was converted from DOS to 7.1 long ago.  Now they
> are on 7.6.
>
> The DOS form was multi-page, so the conversion created a regular Tab Control
> (that's all there was in 7.1).    Now they want me to change the background
> color of the tabs, but that is not an option with a regular Tab Control, only
> with an Enhanced Tab Control.     These are really, really complicated forms,
> tons of fields on each tab.
>
> I thought there were procedures to "convert" regular controls to the newer
> enhanced ones, but can't find my notes.    Anyone done this?   Otherwise I 
> guess
> I'll copy the controls, but I've never tried this with tabs ....
>
> Karen
> 


Reply via email to