Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting up objrexx tab control

Status
Not open for further replies.

bez999

Programmer
Oct 3, 2003
99
GB
Hello
I am running Object Rexx on Windows XP and I need to set up a GUI interface that has a tab control. IBM supplies a Resource Workshop where I have created a dialog but apart from adding a tab control to my dialog there is no indication in the help of how to add pages and their controls.
If anybody can point me in the right direction I'd be most grateful.
Thanks
Chris Bezant
 
I find it is best looking at the sample code for an indication - run the sample dialog's, work out what method suits you best, then look at the code in the sample directory. You can even put in a trace point or two.

I know this isn't particularily helpful, but it's been a while since I played with resources. I also recommend you use a numbering standard for dialog id numbers (especially if you're a cowboy like me and edit the generated code).
 
Thanks, Kiwi, that's what I have been doing since I posted the question. It looks like the control in the Resource Workshop just puts a control on the layout. To populate it I think I need to set up several dialogs with their controls then programatically display them. I foolishly thought that the workshop would help me set up a tab control and specify how many tabs etc. It's an IBM product; I should have known better.
Thanks for responding.
 
When you say 'TAB' do you mean the tab key, or those little tabs they have on the OS2 option display's? I ask because from memory the resource number id indicates the next tab-key field when there is a tab-able field turned on in the resource - I remember getting the tab-key order correct this way.

Other than that I know you can do the OS2 style display's (don't know the technical name), but I never tried because the site I worked at didn't use them.

As for Resource Workshop, I wasn't terribly impressed with it, especially the way it uses the resource id's - I think that if you delete a field it keeps the id define.
 
A tab control is the Windows name for an OS/2 notebook. The help says see the example code but doesn't explain it :eek:( I'm whittling away at it and it's nearly working.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top