IS THERE A NICE WX- OR DB WAY TO AUTOMATICALLY INSERT A VERSION-NUMBER
INTO THE "ABOUT"-DIALOGUE? LIKE ITīS DONE IN DIALOGBLOCKS, FOR INSTANCE?
REGARDS,
--- In anthemion-devtools%40yahoogroups.com">anthemion-devtoolsyahoogroups.com, Andreas Goebel <a-
goebel...> wrote:
>
> Hi,
>
> is there a nice wx- or DB way to automatically insert a version-
number
> into the "about"-dialogue? Like itÂīs done in DialogBlocks, for
instance?
>
> Regards,
>
> Andreas >
Hi!
I'm not just exactly sure of what you're meaning. The wxAboutBox
dialog uses a wxAboutDialogInfo class that has a version function:
::wxAboutBox
void wxAboutBox(const wxAboutDialogInfo& info)
This function shows the standard about dialog containing the
information specified in info. If the current platform has a native
about dialog which is capable of showing all the fields in info, the
native dialog is used, otherwise the function falls back to the
generic wxWidgets version of the dialog, i.e. does the same thing as
wxGenericAboutBox().
Here is an example of how this function may be used:
void MyFrame::ShowSimpleAboutDialog(wxCommandEvent& WXUNUSED(event))
{
wxAboutDialogInfo info;
info.SetName(_("My Program"));
info.SetVersion(_("1.2.3 Beta"));
info.SetDescription(_("This program does something great."));
info.SetCopyright(_T("(C) 2007 Me < my%40email.addre.ss">myemail.addre.ss>"));
wxAboutBox(info);
}
Please see the dialogs sample for more examples of using this
function and wxAboutDialogInfo for the description of the information
which can be shown in the about dialog. Include files
I believe the question Andreas was asking is how to externalize that property so that you can control it from a makefile or some other build event, if you will...
Not sure if that helps or not.
John
On 10/3/07, ddotedotsdot < dsilviamchsi.com">dsilviamchsi.com> wrote:
--- In anthemion-devtools%40yahoogroups.com" target="_blank">anthemion-devtoolsyahoogroups.com, Andreas Goebel <a-
goebel...> wrote:
>
> Hi,
>
> is there a nice wx- or DB way to automatically insert a version-
number
> into the "about"-dialogue? Like itīs done in DialogBlocks, for
instance?
>
> Regards,
>
> Andreas >
Hi!
I39;m not just exactly sure of what you're meaning. The wxAboutBox
dialog uses a wxAboutDialogInfo class that has a version function:
::wxAboutBox
void wxAboutBox(const wxAboutDialogInfo& info)
This function shows the standard about dialog containing the
information specified in info. If the current platform has a native
about dialog which is capable of showing all the fields in info, the
native dialog is used, otherwise the function falls back to the
generic wxWidgets version of the dialog, i.e. does the same thing as
wxGenericAboutBox().
Here is an example of how this function may be used:
void MyFrame::ShowSimpleAboutDialog(wxCommandEvent& WXUNUSED(event))
{
wxAboutDialogInfo info;
info.SetName(_("My Program"));
info.SetVersion(_("1.2.3 Beta"));
info.SetDescription(_("This program does something great."));
info.SetCopyright(_T("(C) 2007 Me < my%40email.addre.ss" target="_blank">myemail.addre.ss>"));
wxAboutBox(info);
}
Please see the dialogs sample for more examples of using this
function and wxAboutDialogInfo for the description of the information
which can be shown in the about dialog. Include files
which version-control system do you use ? cvs/svn have macros for this.
On 10/3/07, Andreas Goebel < a-goebelgmx.de">a-goebelgmx.de
> wrote:
Hi,
is there a nice wx- or DB way to automatically insert a version-number
into the "about"-dialogue? Like itīs done in DialogBlocks, for instance?
Regards,
Andreas
-- We are Pentium of Borg. Division is futile. You will be approximated.