User forums > Using Code::Blocks

wxSmith Tutorials Extended

(1/3) > >>

Grouch:
For my own use and that of associates, I have extended and slightly revised BYO's tutorials on using wxSmith and would be happy to share the result. The extensions cover techniques I needed to make practical use of wxSmith and, indeed, of wxWidgets. They include:
    Creating main menu items and responding to clicks on them
    Drawing graphs, displaying them on the screen and saving them as .png, .jpg or similar files.
    "Rescuing" printf by creating printg which works exactly like printf but sends output to a wxTextCtrl.
    Initializing variables on creation of a form
    Use of the Event Table
    Making and using a wxComboBox for user input.
    Converting between several types of strings,

Revisions cover removal of some obsolete material, clarification of some matters and touching up the English here and there for the comfort of native speakers.

Some of the techniques covered can be easily learned from the wxWidgets book by Smart and Hock, but many required hours of frustrating experiments to convert to workable code the hints given there and in the wxWidgets samples.

The revised document is available as a .odt file for LibreOffice or OpenOffice Writer and as a .pdf.

How can I best (a) get BYO to have a look at it and (b) share it with other users and would-be users of Code::Blocks and wxSmith?

stefanos_:
As far as I am aware of, Byo has other responsibilities right now (he got married therefore you know the "consequences") and if I am remembering correctly, he stopped maintaining himself.

He has passed the development to CodeBlocks's team, therefore ask them and they will gladly going to help you.

Cheers.

MortenMacFly:

--- Quote from: Grouch on February 27, 2012, 09:39:33 pm ---The revised document is available as a .odt file for LibreOffice or OpenOffice Writer and as a .pdf.
[...]
How can I best (a) get BYO to have a look at it and (b) share it with other users and would-be users of Code::Blocks and wxSmith?

--- End quote ---
Well you could start post it here (zipped).

Alternatively feel free to enhance the appropriate section(s) in the WiKi and/or (if you know LaTeX) you can enhance the documentation available (as source via SVN) here:
http://svn.berlios.de/svnroot/repos/codeblocks/docs

Grouch:
Thanks for these suggestions.

By posting it "here" I presumed you meant to add it as an attachment to a post. I zipped it up and tried to attach it, but the site would accept no files larger than 192 kilobytes, while mine was 792. But did you perhaps have something else in mind?

I then turned to editing the Wiki and made it through the Introduction, which had no image files. But in Tutorial 1, I encountered a number of image files, some of which need to be changed. In the source file, the references to the images look like this:
[[Image:wxs_tut01_004.png]]
I understand that this is a reference to an image somewhere, but where and how do I get my images into that place? I search the help files but without finding anything. Any help would be appreciated.

Also, I found that I was being logged out while editing a tutorial. Then when I went to Save, I could not do so, and -- worse still-- could not get back to work I had done. Any advice?

MortenMacFly:

--- Quote from: Grouch on February 29, 2012, 06:04:19 am ---By posting it "here" I presumed you meant to add it as an attachment to a post. I zipped it up and tried to attach it, but the site would accept no files larger than 192 kilobytes, while mine was 792. But did you perhaps have something else in mind?

--- End quote ---
You can and should use a file sharing service for that purpose.


--- Quote from: Grouch on February 29, 2012, 06:04:19 am ---I understand that this is a reference to an image somewhere, but where and how do I get my images into that place?

--- End quote ---
On the left side (if you are logged in) you see a toolbox like this:
Toolbox

    What links here
    Related changes
    Upload file
    Special pages

Notice the "Upload file" button - which is thee to upload resources like images., Please don't overdue it, the images should have a "normal" size, thee is no need to put extra-large and huge images (both: in file size and pixel) there.


--- Quote from: Grouch on February 29, 2012, 06:04:19 am ---Also, I found that I was being logged out while editing a tutorial.

--- End quote ---
This shouldn't happen. There is an automatic log-out after a while when not being active (for security reasons), maybe that's what happened. Just save more often, you can also mark the page as "under re-construction" for others to see you are working on. Additionally, make sure you copied the content which you had just changed to the clipboard before you click "save". Then you can easily restore it after successful re-login.

Navigation

[0] Message Index

[#] Next page

Go to full version