- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have a project where I am adding extra controls to an existing application. There seems to be space in the dialog box to accomodate that. However, I know in CVF there is a limit on the number of controls that can be added. Before I upgrade this application to IVF, wanted to know if it would have the ability to add the extra controls that I need. Is this a (IV/CV) Fortran limit or a MS Dev limit.
Thanks
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That's an MS limit on the number of child windows a window can have. Each control in a dialog box is one or more child windows.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My memory is vague, but I think that the limit in question existed only for Windows 9x and was 65535. Windows NT/2000/XP don't have that limit as far as I know.
Jugoslav
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
FWIW, I have a Dialog box in CVF6.6B / Windows XP where I came up against a limitfor the number of controls at 256 - it was very difficult to find where that was documented. However, the limit was only when using the Wizard, and I added extra controls by editing the resource file using Notebook, ending up with about 300.
HTH
Alan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Alan & Jugsoslav,
Alan, Can you clarify a little as to what you mean by editing the resource file using Notebook (Notepad sp?). I go to the dialog box in Design mode and click on a control to add it.
Do you mean that I can go to the resource.h and resource.fd file and add the 257th control as say IDC_EDIT257 and it will show up on the dialog and then I can position it where I want.
Thanks in advance for your help on this.
Regards,
Sumit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sumit,
Sorry - of course it was Notepad. It is the .rc file that you need to edit initially with Notepad, and then add the new control ID number(s) to the .h & .fd files. I worked by copying the type of controlthat I wanted from another part of the .rc file, changing its ID and normally also changing its position so that it could be grabbed separately from its original. When the Control IDs are in place so that the dialog box appears with the new control, it can be moved, resized & edited normally.
HTH
Alan

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page