Pelles C forum

Pelles C => Add-ins => Topic started by: sergey on June 27, 2009, 10:10:36 PM

Title: Converter_RC-to-C preferable for TabControls
Post by: sergey on June 27, 2009, 10:10:36 PM
Hi All!
The program for converting *.RC file in *.C file.
Initial *.RC file we receive "drawing" of the interface in GUI (for example PellesC).
The program is written on Basic-lang for speed of reception of result.

I have not found short and distinct (for me) a code on creation of working element TabStrip ("SysTabControl32").
Though such element is present at all GUI which I saw.
Even in MS VB to create working element TabStrip, not using TABCTL32.OCX, is uneasy.

Mr. David MacDermot has kindly given the variant of creation and work TabPages.
I study its work, but the program for WinCE as a result is necessary to me and it would be desirable to reduce quantity of a code and functions.
It at me while, unfortunately it is impossible.

Therefore as a variant I used a code from interesting development VISG. Author Alexander Karpov http://mrhx.clan.su/
Its program uses only Win-API and allows "to draw" GUI-interface and to compile a file in C ++, Delfi, Basic.
Unfortunately, it is the program does not create resource-file, all interface in one C-file.
To add/move elements of interface it is necessary to write anew them in Code.

Possibly I "have invented a bicycle" - one more and with curve wheels, but it is more convenient to me "to draw" interface in GUI PellesC.
If somebody will prompt me how to connect already created *.RC file with TabStrip to the empty project in PellesC so that it worked, I shall be grateful.

For now here this my "bicycle":
In the program (ConvertRC-to-C.exe) it is necessary to specify initial *.RC file and target *.LOG file.
Then to press the button " Write LOG ", it will be as a result written down *.LOG file, it is actually ready *.C file.
It it is possible it (is necessary) to connect to empty C-project and to fill events-code.

Sergey.
Title: Re: Converter_RC-to-C preferable for TabControls
Post by: sergey on June 28, 2009, 08:46:21 PM
There were some corrections.
Properties the most used controls are substituted in a cycle.
Refresh became better, but not up to the end.
Look attachment.

Sergey.
Title: Re: Converter_RC-to-C preferable for TabControls
Post by: sergey on July 08, 2009, 01:25:28 PM
For those who collects a mosaic from MFC it does not represent any interest.

Work in progress, but mayby need stop.
Now program has full refresh of Tab's on start.
Sample in attachment.

Sergey.
Title: Re: Converter_RC-to-C preferable for TabControls
Post by: DMac on July 08, 2009, 06:04:05 PM
Hello Sergey,

It is possible to contact offline from the Code Project.

The next time you look at the bottom of a message post you should see several options:

[Reply]·[Email]·[View Thread]·[PermaLink]·[Bookmark]

Click [Email] to send message off-line and I can reply to it.

In Pelles C forum you can do the same by clicking the envelope icon beneath a posters Id to the left of the message text.

Regards,
David MacDermot
Title: Re: Posted by: DMac
Post by: sergey on July 10, 2009, 05:04:51 PM
Thanks, David!
I shall necessarily take advantage of such opportunities.
I am simply poorly informed in opportunities Internet of dialogue.

Now I know, who such "DMac".
I with greater interest read your messages at this forum.

Sergey.
Title: Converter_RC-to-C preferable for TabControls
Post by: sergey on July 10, 2009, 05:10:59 PM
Here one more variant of use TabControl in connection with a usual main dialogue window.
And also some explanatories and reasonings.
Read  ReadMeSecond.txt in attachment.

Sergey.