comp.lang.ada
 help / color / mirror / Atom feed
* ObjectAda & Menus
@ 1997-04-23  0:00 Marin David Condic, 561.796.8997, M/S 731-93
  1997-04-24  0:00 ` Mark & Zurima McKinney
  0 siblings, 1 reply; 4+ messages in thread
From: Marin David Condic, 561.796.8997, M/S 731-93 @ 1997-04-23  0:00 UTC (permalink / raw)



    Is there anyone out there with experience in using the ObjectAda
    GUI-Builder to build a program with menus in it?

    I have worked through the example GUI-Builder app provided in the
    documentation and successfully built a small app which has a
    button which when pressed, changes the color of the screen. So
    far, so good. But then I go in and use the menu builder to add
    some options to the menu bar for the same app. Inside the
    GUI-builder, you can see the menus just fine. I attach some null
    code to the procedures connected to the menu options. Still fine.
    Compile, link & run and there are no menus - just the button left
    over from the previous example. Some menu code is embedded in the
    app, but I don't know enough about Windows programming to tell if
    there's something missing or wrong with the procedure calls being
    made.

    Either A) I am doing something fundamentally wrong, missing a
    step, failing to specify an option or otherwise just plain not
    getting it right. Or B) ObjectAda has a defect in the GUI-Builder
    that keeps it from properly building menus. The documentation is a
    little thin regarding the GUI-Builder and how it should be used,
    so I'm at a bit of a loss. If the situation is "A" I'd like to
    find someone who could send me some step-by-step instructions on
    how to get menus to build into the app. If the situation is "B" it
    would help to know that what I'm attempting is in fact impossible
    with the current release & I can then shelve my evaluation/app
    until I can find a GUI-Builder that will do what I need.

    Any help in this would be appreciated.

    MDC

Marin David Condic, Senior Computer Engineer    ATT:        561.796.8997
Pratt & Whitney, GESP                           Fax:        561.796.4669
West Palm Beach, FL                             Internet:   CONDICMA@PWFL.COM
===============================================================================
    "A verbal contract isn't worth the paper it's written on."

        --  Samuel Goldwyn
===============================================================================




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ObjectAda & Menus
  1997-04-23  0:00 ObjectAda & Menus Marin David Condic, 561.796.8997, M/S 731-93
@ 1997-04-24  0:00 ` Mark & Zurima McKinney
  1997-04-29  0:00   ` Philip Johnson
  0 siblings, 1 reply; 4+ messages in thread
From: Mark & Zurima McKinney @ 1997-04-24  0:00 UTC (permalink / raw)
  To: Marin David Condic, 561.796.8997, M/S 731-93


Marin David Condic, 561.796.8997, M/S 731-93 wrote:
> 
>     Is there anyone out there with experience in using the ObjectAda
>     GUI-Builder to build a program with menus in it?
> 
>     I have worked through the example GUI-Builder app provided in the
>     documentation and successfully built a small app which has a
>     button which when pressed, changes the color of the screen. So
>     far, so good. But then I go in and use the menu builder to add
>     some options to the menu bar for the same app. Inside the
>     GUI-builder, you can see the menus just fine. I attach some null
>     code to the procedures connected to the menu options. Still fine.
>     Compile, link & run and there are no menus - just the button left
>     over from the previous example. Some menu code is embedded in the
>     app, but I don't know enough about Windows programming to tell if
>     there's something missing or wrong with the procedure calls being
>     made.

When I checked out ObjectAda I noticed that most of the graphical
objects 
are in the generated code from the gui builder. However the menus were
not.
They were in the resource file along with a few other things. The
resource 
file is used to store data that describes dialog boxes menus etc ..
There is 
an external tool called a resource compiler that converts this into a
linkable 
file with the extension of .rbj. Somewhere in the linker options, (I'm
sorry I 
can't be more specific I was transfered right after I evaluated it.) you
can add
the resource file. Check the sample windows program files to see where
to add 
the option. 

Hopefully this limited information will help.
MArk D. McKinney.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ObjectAda & Menus
  1997-04-24  0:00 ` Mark & Zurima McKinney
@ 1997-04-29  0:00   ` Philip Johnson
  1997-04-29  0:00     ` Michael Quinn
  0 siblings, 1 reply; 4+ messages in thread
From: Philip Johnson @ 1997-04-29  0:00 UTC (permalink / raw)





--------------13678E811C3D981990325AAE
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Mark & Zurima McKinney wrote:

> Marin David Condic, 561.796.8997, M/S 731-93 wrote:
> >     Is there anyone out there with experience in using the
> ObjectAda
> >     GUI-Builder to build a program with menus in it?
> When I checked out ObjectAda I noticed that most of the graphical
> objects
> are in the generated code from the gui builder. However the menus
> were not.
> They were in the resource file along with a few other things. The
> resource
> file is used to store data that describes dialog boxes menus etc.
> There is
> an external tool called a resource compiler that converts this into
> a linkable
> file with the extension of .rbj. Somewhere in the linker options,
> (I'm sorry I
> can't be more specific I was transfered right after I evaluated it.)
> you can add
> the resource file. Check the sample windows program files to see
> where to add
> the option.
> Hopefully this limited information will help.
> MArk D. McKinney.

David,

Mark is correct.  You must compile the menu resource file with the
resource compiler
(rc) found in the ObjectAda\bin directory.  There is an RC.hlp file
located there also
that will give you all the rc info you need.  If I remember the
GUIbuilder tutorial does
mention the need to compile menues with the resource compiler.
Unfortunately,  the
GUIbuilder help page did not have this included.  I hope this oversight
will be corrected
in the 7.1 release.

Phil
----
 ________________________________________________
|
|
|               Ceilidh [Kay Lee] gaelic: A gathering of
friends            |
|
|
|Philip Johnson                                      Telco: (205)
830-9663   |
|Sr. Software Engineer                      email:philipj@HIWAAY.net|
|Ceilidh Systems
Inc.                                                                   |

|Madison, AL
35758                                                                  |

 -----------------------------------------------------------------

--------------13678E811C3D981990325AAE
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<HTML><BODY>
Mark &amp; Zurima McKinney wrote:

<BLOCKQUOTE TYPE=CITE>Marin David Condic, 561.796.8997, M/S 731-93 wrote:
<BR><I>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Is there anyone out there with experience
in using the ObjectAda</I>
<BR><I>&gt;&nbsp;&nbsp;&nbsp;&nbsp; GUI-Builder to build a program with menus
in it?</I>
<BR>When I checked out ObjectAda I noticed that most of the graphical objects
<BR>are in the generated code from the gui builder. However the menus were
not.
<BR>They were in the resource file along with a few other things. The resource
<BR>file is used to store data that describes dialog boxes menus etc.&nbsp;
There is
<BR>an external tool called a resource compiler that converts this into a linkable
<BR>file with the extension of .rbj. Somewhere in the linker options, (I'm
sorry I
<BR>can't be more specific I was transfered right after I evaluated it.) you
can add
<BR>the resource file. Check the sample windows program files to see where
to add
<BR>the option.
<BR>Hopefully this limited information will help.
<BR>MArk D. McKinney.
</BLOCKQUOTE>
David,
<BR>
<BR>Mark is correct.&nbsp; You must compile the menu resource file with the
resource compiler
<BR>(rc) found in the ObjectAda\bin directory.&nbsp; There is an RC.hlp file
located there also
<BR>that will give you all the rc info you need.&nbsp; If I remember the GUIbuilder
tutorial does
<BR>mention the need to compile menues with the resource compiler.&nbsp; Unfortunately,&nbsp;
the
<BR>GUIbuilder help page did not have this included.&nbsp; I hope this oversight
will be corrected
<BR>in the 7.1 release.
<BR>
<BR>
<BR>Phil
<BR>----
<BR>&nbsp;________________________________________________&nbsp;
<BR>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
<BR>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Ceilidh [Kay Lee] gaelic: A gathering of friends&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
<BR>|&nbsp;&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sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
<BR>|Madison, AL&nbsp; 35758&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
<BR>&nbsp;-----------------------------------------------------------------&nbsp;

</BODY>
</HTML>

--------------13678E811C3D981990325AAE--





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ObjectAda & Menus
  1997-04-29  0:00   ` Philip Johnson
@ 1997-04-29  0:00     ` Michael Quinn
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Quinn @ 1997-04-29  0:00 UTC (permalink / raw)




I have used the GUI builder tool to generate a menus.   You probably failed
to pass the name of your resource file to the linker.  In ObjectAda IDE see
Projects/Settings - LINK tab.    

Try the following example:

Open a new GUI project.  
Click on the menu editor.

In Caption enter "File"
In Name enter "m_file"
Level should = 0
Click on Next

In Caption enter "Open"
In Name enter "m_open"
set Level = 1
Click on Next

In Caption enter "Help"
In Name enter "m_help"
set Level = 0
Click on Next


In Caption enter "About"
In Name enter "m_about"
set Level = 1
Click on OK

File and Help should now appear on your GUI Form.

Click on "File" and the "Open" item appears.  Click on Open  and the GUI
builder editor appears with the code stub for m_open_Selected.  Add a
msgbox call to the method.

procedure m_open_Selected is
begin
  MsgBox("Open - Selected")
end m_open_selected;

Back at your GUI form click on "Help" and your "About" menu item.  Add
another message box to the procedure stub.

Save your GUI project and Create an ObjectAda project.  Include the
following files in your objectAda project file list.   

public.ada, window1.ada, 

When you save your GUI project the GUI builder creates a file: Project1.RES
 (default name, named after project.)

YOU MUST LET THE LINKER KNOW THAT PROJECT1.RES EXISTS.  

In ObjectAda IDE go to Project/Settings and go to the LINK tab.  In the
"Pass to Linker" field enter "e:\<your project path>\project1.res".  

The menu will not appear if you fail to pass the resource name to the
linker.


Michael Quinn d.b.a Caitisys
mtquinn@hom.net


Philip Johnson <philipj@hiway.net> wrote in article
<336628FF.39F39EB7@hiway.net>...
> Mark & Zurima McKinney wrote:
> 
> > Marin David Condic, 561.796.8997, M/S 731-93 wrote:
> > >     Is there anyone out there with experience in using the
> > ObjectAda
> > >     GUI-Builder to build a program with menus in it?
> > When I checked out ObjectAda I noticed that most of the graphical
> > objects
> > are in the generated code from the gui builder. However the menus
> > were not.
> > They were in the resource file along with a few other things. The
> > resource
> > file is used to store data that describes dialog boxes menus etc.
> > There is
> > an external tool called a resource compiler that converts this into
> > a linkable
> > file with the extension of .rbj. Somewhere in the linker options,
> > (I'm sorry I
> > can't be more specific I was transfered right after I evaluated it.)
> > you can add
> > the resource file. Check the sample windows program files to see
> > where to add
> > the option.
> > Hopefully this limited information will help.
> > MArk D. McKinney.
> 
> David,
> 
> Mark is correct.  You must compile the menu resource file with the
> resource compiler
> (rc) found in the ObjectAda\bin directory.  There is an RC.hlp file
> located there also
> that will give you all the rc info you need.  If I remember the
> GUIbuilder tutorial does
> mention the need to compile menues with the resource compiler.
> Unfortunately,  the
> GUIbuilder help page did not have this included.  I hope this oversight
> will be corrected
> in the 7.1 release.
> 
> Phil
> ----
>  ________________________________________________
> |
> |
> |               Ceilidh [Kay Lee] gaelic: A gathering of
> friends            |
> |
> |
> |Philip Johnson                                      Telco: (205)
> 830-9663   |
> |Sr. Software Engineer                      email:philipj@HIWAAY.net|
> |Ceilidh Systems
> Inc.                                                                   |
> 
> |Madison, AL
> 35758                                                                  |
> 
>  -----------------------------------------------------------------
> 




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1997-04-29  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-04-23  0:00 ObjectAda & Menus Marin David Condic, 561.796.8997, M/S 731-93
1997-04-24  0:00 ` Mark & Zurima McKinney
1997-04-29  0:00   ` Philip Johnson
1997-04-29  0:00     ` Michael Quinn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox