Home > Archive > dBASE Questions and Answers > September 2005 > Buttons.cc issue when migrating from 5.7









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Buttons.cc issue when migrating from 5.7
Francisco

2005-09-01, 3:24 am

Could somebody tell me where to look for the old CancelButton, Okbutton, etc.. classes that we al used in 5.7 forms now in 2.5?

I'm doing the converting process with Conv1632.cc and everything, but my old forms used all this controls and now when I run those converted forms in 2.5 I got an err message stating that all those classes do not exist.

Is there any document posted explaining how to deal with this?

Thanks
Frank
Ken Mayer [dBVIPS]

2005-09-01, 9:23 am

Francisco wrote:
> Could somebody tell me where to look for the old CancelButton, Okbutton, etc.. classes that we al used in 5.7 forms now in 2.5?
>
> I'm doing the converting process with Conv1632.cc and everything, but my old forms used all this controls and now when I run those converted forms in 2.5 I got an err message stating that all those classes do not exist.
>
> Is there any document posted explaining how to deal with this?


Have you looked at the User Guide that came with dBASE Plus? There's a
printed manual, and one of the chapters there discusses upgrading. The
same manual is also in the online help.

Ken

--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
Francisco

2005-09-02, 3:24 am

Ken Mayer [dBVIPS] Wrote:

> Francisco wrote:
>
> Have you looked at the User Guide that came with dBASE Plus? There's a
> printed manual, and one of the chapters there discusses upgrading. The
> same manual is also in the online help.
>
> Ken
>
> --
> /(Opinions expressed are purely my own, not those of dataBased
> Intelligence, Inc.)/
>
> *Ken Mayer* [dBVIPS]
> /Golden Stag Productions/
> dBASE at goldenstag dot net
> http://www.goldenstag.net/GSP
> http://www.goldenstag.net/dbase


Yes I did. Infact, what I did is described in that book, using Conv1632.cc, etc...

Now, such process does not port all classes available in 5.7

In 5.7, when you opened the form designer, the custom tab in the control pallete inmediatelly showed custom controls like OkButton, CancelButton, etc..., all of them described in Buttons.cc and derived from the Pushbutton class.

In 2.6, when you create a new for, equivalent custom controls are not available in the control pallete. Buttons.cc used to define custom classes derived from Pushbutton class, but if you try to use it in 2.6 you get an error message.

So, maybe I have to re-phrase my question to 'Where could I find pre-existing custom controls for an OkButton, CloseButton, CancelButton in 2.6? and for that, where can I find all those custom classes for 2.6 defined in Buttons.cc ?

Regards
Frank

Ken B

2005-09-02, 3:24 am

From the KnowledgeBase - Beginner Topics | Migrating Applications from
Visual dBASE 5.x to 7.x.

There are a few items to note before we proceed with the migration process.
If any of the controls on your forms to be migrated are subclassed from a
custom control file as "BUTTONS.CC", this library does not ship with Visual
dBASE 7. The button library can still be used with existing forms, however,
the library is superseded by the new version called "DATABUTTONS.CC". Forms
using BUTTONS.CC will produce a program alert due to an "invalid class
name". This is because BUTTONS.CC defines a class named ToolButton that is
now a native class in Visual dBASE 7. In order to continue using BUTTONS.CC,
open the library in the Source editor and rename ToolButton. When you call
the renamed ToolButton class, you'll also have to change your class pointers
to match the renamed ToolButton class. No further modification is necessary
on any of the other controls in this library.


Ken Mayer [dBVIPS]

2005-09-02, 9:24 am

Francisco wrote:
> Ken Mayer [dBVIPS] Wrote:
>
>
>
>
> Yes I did. Infact, what I did is described in that book, using Conv1632.cc, etc...
>
> Now, such process does not port all classes available in 5.7
>
> In 5.7, when you opened the form designer, the custom tab in the control pallete inmediatelly showed custom controls like OkButton, CancelButton, etc..., all of them described in Buttons.cc and derived from the Pushbutton class.
>
> In 2.6, when you create a new for, equivalent custom controls are not available in the control pallete. Buttons.cc used to define custom classes derived from Pushbutton class, but if you try to use it in 2.6 you get an error message.
>
> So, maybe I have to re-phrase my question to 'Where could I find pre-existing custom controls for an OkButton, CloseButton, CancelButton in 2.6? and for that, where can I find all those custom classes for 2.6 defined in Buttons.cc ?


In addition to Ken B's response, take a good look at the Component
Palette in dBASE Plus. The buttons you are looking for are there. They
are on a "Data Buttons" tab ...

Ken

--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
Francisco

2005-09-02, 1:23 pm

Ken Mayer [dBVIPS] Wrote:

> Francisco wrote:
>
> In addition to Ken B's response, take a good look at the Component
> Palette in dBASE Plus. The buttons you are looking for are there. They
> are on a "Data Buttons" tab ...
>
> Ken
>
> --
> /(Opinions expressed are purely my own, not those of dataBased
> Intelligence, Inc.)/
>
> *Ken Mayer* [dBVIPS]
> /Golden Stag Productions/
> dBASE at goldenstag dot net
> http://www.goldenstag.net/GSP
> http://www.goldenstag.net/dbase


I've read both answers which I trully appreciate, and I can tell you that right now I'm looking at that DataButtons tab, and the only control shown there are:
Pointer
Query
StoredProc
Database
Session
DataModRef

No OkButton, CancelButton, etc...

Could this mean that I missed something during dBase installation that forced the installer to skip those controls?

I even right-clicked in the Component Pallet, and it show that custom controls are comming from Databuttons.cc, Seeker.cc, Splitter.cc and Report.cc.

So Databuttons.cc is indeed included but no OkButton, CancelButton and all the remaining subclasess defined in Buttons.cc are shown in the component pallete.

Ken, why would you say they're not in the Data Buttons tab?

Regards
Frank


Ken Mayer [dBVIPS]

2005-09-02, 8:24 pm

Francisco wrote:

>
> I've read both answers which I trully appreciate, and I can tell you
> that right now I'm looking at that DataButtons tab, and the only
> control shown there are: Pointer Query StoredProc Database Session
> DataModRef


You're looking at the wrong tab. "Data Access" is not the same tab as
"Data Buttons".

If you do not see a "Data Buttons" tab, try scrolling the notebook on
the component palette, or widen the palette so you see all tabs. If you
still don't see it, go to the Command Window, and type:

set procedure to :FormControls:DataBu
ttons.cc

>
> No OkButton, CancelButton, etc...


Those may not be there. The "Data Buttons" are a limited set of buttons
specifically for working with data.

If you need more, you may want to download the dBASE Users' Function
Library (FREEWARE) code library:

http://www.goldenstag.net/dbase/index.htm#dUFLP

There are a ton of buttons in there, in the CustButt.cc file.

> So Databuttons.cc is indeed included but no OkButton, CancelButton
> and all the remaining subclasess defined in Buttons.cc are shown in
> the component pallete.
>
> Ken, why would you say they're not in the Data Buttons tab?


Er? I don't understand this question at all.

Ken
--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
FRancisco

2005-09-05, 1:33 pm

Ken Mayer [dBVIPS] Wrote:

> Francisco wrote:
>
>
> You're looking at the wrong tab. "Data Access" is not the same tab as
> "Data Buttons".
>
> If you do not see a "Data Buttons" tab, try scrolling the notebook on
> the component palette, or widen the palette so you see all tabs. If you
> still don't see it, go to the Command Window, and type:
>
> set procedure to :FormControls:DataBu
ttons.cc
>
>
> Those may not be there. The "Data Buttons" are a limited set of buttons
> specifically for working with data.
>
> If you need more, you may want to download the dBASE Users' Function
> Library (FREEWARE) code library:
>
> http://www.goldenstag.net/dbase/index.htm#dUFLP
>
> There are a ton of buttons in there, in the CustButt.cc file.
>
>
> Er? I don't understand this question at all.
>
> Ken
> --
> /(Opinions expressed are purely my own, not those of dataBased
> Intelligence, Inc.)/
>
> *Ken Mayer* [dBVIPS]
> /Golden Stag Productions/
> dBASE at goldenstag dot net
> http://www.goldenstag.net/GSP
> http://www.goldenstag.net/dbase


Sorry Ken, I should have said Data Access Buttons in fact. my dbase is in Spanish, and the tab I refered to is 'Acceso a Datos', I guess there's not even any Data Buttons tab at all.

I'll look for those buttons in the library you refered.
Thabks
Frank


Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com