|
List Info
Thread: Re: Using DB to set the Title
|
|
| Re: Using DB to set the Title |
  United States |
2007-03-29 15:33:45 |
|
>-- On Thu, 29 Mar 2007 08:41:37 -0700 Ian Simpson wrote --
> Here is a simple main dialog I am working on with DB3.15. How do I
> get the title at the top of the dialog to say "CONIND" rather than
> Dialog? I am not sure if I am being dumb or misunderstanding
> something. In the editor view of the dialog, I set Title to CONIND,
> but it still comes up as Dialog even though the xrc view shows
> CONIND
>
> ..pjd is attached.
>
> Ian
>
Hi!
Well, I had to do some clean up to get a build. It would appear that you had a
bit of a trial and error learning curve in setting up VC++ Project parameters,
i.e., the compiler version. This is where the clean up came in, I needed to
delete the .dsp and makefile.vc from the Sources in the project. Also, I don't
have my 7.1 installed anymore, so I use 8, but that shouldn't matter a great
deal.
Anyway, bottom line is/was that your DB code is fine, it was the Visual Studio
that was getting confused. You had set everything correctly to have CONIND
appear in the title of the dialog frame. It shows up properly in Test Window
(right click the CONIND dialog in the Project view and select "Test Window").
And, with the cleanup, the built application is the same.
BTW, in future, include the .rc file as DB only generates this at startup of a
project, that is, it does not regenerate. I had to cut'n'paste from an existing.
Putting the whole thing in a zip would be nice, too, saves bandwidth.
If you're new to DB and wxWidgets and are working on a Windows platform, may I
suggest you check out wxMS_developers? There are tutorials there that make it a
snap to get a feel for using DB with Visual Studio. Try the Data Converter
tutorial in the Links section (or get it directly from http://www.wxCodex.net).
I'm attaching a zip of the modified .pjd and the .rc I used. NOTE: you need to
change the Compiler version in Configurations before doing _anything_ else. And,
I'd delete all files in your project directory (or move them elsewhere, if
you're paranoid, but really, the .pjd is the dictator, so you lose nothing)
before unzipping into it, then:
1) open the .pjd with DialogBlocks
2) Go to Build>Configuration... in the menu
3) Change the Compiler version in both configurations of VC++ Project (Debug and
Release)
4) Open the dialog in the Project tree (click on it to have it expand, this
regenerates the source files)
5) Build>Generate Makefile (actually, this generates the project, .vcproj, file)
6) Build>Build Project
HTH:
thx,
Dave S.
On receiving honorary Doctorate from University of Glasgow in 2001:
"I'm now a Doctor of Letters. Most of them Fs and Bs."
"Before you judge a man, walk a mile in his shoes. After that who cares?... He's
a mile away and you've got his shoes!"
"In Scotland, there is no such thing as bad weather - only the wrong clothes."
"There are two seasons in Scotland - Winter and July."
Personal quotes from Scotsman Musician/Comedian/Actor Billy Connolly
wxMS_developers · Development with wxWidgets on MSWindows
http://tech.groups.yahoo.com/group/wxMS_developers/
wxWidgets Code Exchange
http://wxcodex.net/
__._,_.___
.
__,_._,___
|
|
| Re: Using DB to set the Title |
  United States |
2007-03-31 13:52:00 |
|
Thank you very much Dave.
I am a new user of DB and have a bit of a learning curve to get through,
but I am making some progress and your comments have helped a lot.
(Also, I should have zipped up the file I sent out)
I did already find that I had set the Visual C++ version to 6 instead of
7.1, which has cleared up a lot of problems I was having.
I did work through the tutorial before, which is a very good way to
understand DB. I recommend others who are new to DB try working through
the tutorial too. You deserve a vote of appreciation for putting it
together.
Thanks again,
Ian
Dave Silvia wrote:
>
> >-- On Thu, 29 Mar 2007 08:41:37 -0700 Ian Simpson wrote --
> > Here is a simple main dialog I am working on with DB3.15. How do I
> > get the title at the top of the dialog to say "CONIND" rather than
> > Dialog? I am not sure if I am being dumb or misunderstanding
> > something. In the editor view of the dialog, I set Title to CONIND,
> > but it still comes up as Dialog even though the xrc view shows
> > CONIND
> >
> > ..pjd is attached.
> >
> > Ian
> >
> Hi!
>
> Well, I had to do some clean up to get a build. It would appear that
> you had a
> bit of a trial and error learning curve in setting up VC++ Project
> parameters,
> i.e., the compiler version. This is where the clean up came in, I
> needed to
> delete the .dsp and makefile.vc from the Sources in the project. Also,
> I don't
> have my 7.1 installed anymore, so I use 8, but that shouldn't matter a
> great
> deal.
>
> Anyway, bottom line is/was that your DB code is fine, it was the
> Visual Studio
> that was getting confused. You had set everything correctly to have
> CONIND
> appear in the title of the dialog frame. It shows up properly in Test
> Window
> (right click the CONIND dialog in the Project view and select "Test
> Window").
> And, with the cleanup, the built application is the same.
>
> BTW, in future, include the .rc file as DB only generates this at
> startup of a
> project, that is, it does not regenerate. I had to cut'n'paste from an
> existing.
> Putting the whole thing in a zip would be nice, too, saves bandwidth.
>
> If you're new to DB and wxWidgets and are working on a Windows
> platform, may I
> suggest you check out wxMS_developers? There are tutorials there that
> make it a
> snap to get a feel for using DB with Visual Studio. Try the Data
> Converter
> tutorial in the Links section (or get it directly from
> http://www.wxCodex.net <http://www.wxCodex.net>).
>
> I'm attaching a zip of the modified .pjd and the .rc I used. NOTE: you
> need to
> change the Compiler version in Configurations before doing _anything_
> else. And,
> I'd delete all files in your project directory (or move them
> elsewhere, if
> you're paranoid, but really, the .pjd is the dictator, so you lose
> nothing)
> before unzipping into it, then:
>
> 1) open the .pjd with DialogBlocks
> 2) Go to Build>Configuration... in the menu
> 3) Change the Compiler version in both configurations of VC++ Project
> (Debug and
> Release)
> 4) Open the dialog in the Project tree (click on it to have it expand,
> this
> regenerates the source files)
> 5) Build>Generate Makefile (actually, this generates the project,
> .vcproj, file)
> 6) Build>Build Project
>
> HTH:
>
> thx,
> Dave S.
>
__._,_.___
.
__,_._,___
|
[1-2]
|
|