Post 8 – Retro C IDE – Objects Part 1

I had a nice surprise this morning when I heard my project mentioned on Antic – The Atari 8-bit Podcast.  So this post will use examples compiled with the Atari as the target system.

Progress continues on the Retro C IDE with the addition of objects (think controls).  Labels, Text Box, Number Box and Buttons have been added, (Listboxes and Check Boxes to come.)

The Object Definition group has been added to the IDE, highlighted by the red box.  The way this part of the IDE works is that a Object type is selected in the listbox, and based on the object type selected the additional options are made visible to set.  Once all of the parameters are set simply clicking the add button adds the object to the application.   The example shown is for a number box (spinner) with allows setting the x,y position within the window, the width (size of the number) a min and max value.  The caption here is just for tracking, one can use a label object to put a description on the screen.  A default value can be entered in the Value field. Here is a short video to show how this works Retro C IDE Video

rci25

To add a Label only the x, y position and Caption are needed. The example show will place a Label at 6,1 within the window displaying “Today’s Favorite Podcast”.

rci26

Adding at Text box requires some additional information.  A text box allows the user to type in text and is available via the objects data property. Here the width of the text entry is needed and a default string can be added.

rci27.jpg

Buttons do use the Caption to know what to text to display on the button, which is shown on the screen as an inverse video block with the text includes within parenthesis “(Button)”.  Buttons also allow a callback function (as do menu items).  A callback function is called when the button is clicked (Hit Enter).  So far only a default quit function is allowed via the IDE.  Hand coded functions can be used but remember anytime the IDE is used to add to the application the C code is regenerated and any hand written code will not be saved.  The ability to call other functions/create functions is on the to do list as I go forward with the IDE, and/or linking functions in other source/object files as well.

rci28

Here’s a sample set of objects similar to what you’ll see in the video link above, and the compiled Atari program, without a menu.

rci29

rci30

 

I’m not exactly sure what the next post will cover, likely the addition of Listbox and checkbox in the Object Definition.  Also New/Save/Open projects and Button and Menu callback functions are on the list as well.

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s