List Info

Thread: How to control the version-number




How to control the version-number
country flaguser name
Germany
2007-10-03 14:36:31

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

__._,_.___
.

__,_._,___
Re: How to control the version-number
country flaguser name
United States
2007-10-03 14:52:30

--- In anthemion-devtools%40yahoogroups.com">anthemion-devtoolsyahoogroups.com, Andreas Goebel <a-
goebel...> wrote:
&gt;
> 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&quot;));
info.SetVersion(_(&quot;1.2.3 Beta"));
info.SetDescription(_("This program does something great.&quot;));
info.SetCopyright(_T("(C) 2007 Me < my%40email.addre.ss">myemail.addre.ss>&quot;));

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

<wx/aboutdlg.h>;

Is this not what you're talking about?

HTH:

thx,
Dave S.

__._,_.___
Recent Activity
Visit Your Group
SPONSORED LINKS
Yahoo! Finance

It's Now Personal

Guides, news,

advice & more.

Find Enlightenment

Yoga groups and

resources on

Yahoo! Groups.

Re: Re: How to control the version-number
country flaguser name
United States
2007-10-03 15:00:58

Dave,

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:
&gt;
> 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&#39;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&quot;));
info.SetVersion(_(&quot;1.2.3 Beta"));
info.SetDescription(_("This program does something great.&quot;));
info.SetCopyright(_T("(C) 2007 Me < my%40email.addre.ss" target="_blank">myemail.addre.ss>&quot;));

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

<wx/aboutdlg.h>;

Is this not what you're talking about?

HTH:

thx,
Dave S.


__._,_.___
.

__,_._,___
Re: How to control the version-number
country flaguser name
United States
2007-10-04 05:33:51

On Wednesday 03 October 2007 03:36:31 pm Andreas Goebel wrote:

> is there a nice wx- or DB way to automatically insert a version-number
> into the "about"-dialogue?

There was a program around called wxVersionator. The website that hosted
it is gone. I'll see if I can dig it out of my archives. I use the .exe on
Windows all of the time, see if I can find the source.

--
http://www.wearablesmartsensors.com/
http://www.softwaresafety.net/ http://www.designer-iii.com/
http://www.unusualresearch.com/

__._,_.___
.

__,_._,___
Re: How to control the version-number
country flaguser name
United States
2007-10-04 06:47:49

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.

__._,_.___
.

__,_._,___
[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )