Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Creating a scrollable window for runtime created controls

Reply
Thread Tools

Creating a scrollable window for runtime created controls

 
 
dfreas@gmail.com
Guest
Posts: n/a
 
      11-06-2005
I'm using Bloodshed Dev-C++ to write a program used to calculate orders
for my business. Until recently a command line program has been
sufficient but it is beginning to become cumbersome so I've switched to
writing a windows program and am learning the API as I go. If I use a
term wrong correct me - my experience in windows programming is
limited, I do however understand C++ fairly well as I've been using it
for about four years.

I want to be able to add controls at runtime to my main window - which
I have succesfully done. The number of controls is dependant on the
customer's order size. For small orders the program works fine. The
problem is for larger orders where the EDIT controls extend far beyond
the bottom of the window. I need to make the window scrollable.

Adding "WS_VSCROLL | WS_HSCROLL" did not work. It provided the window
with scrollbars but when the EDIT controls extend beyond the bottom of
the window I still cannot scroll down to see them.

Please let me know what I'm doing wrong and how to fix it. I assume I'm
leaving out an important step.

Thanks
-Daniel

 
Reply With Quote
 
 
 
 
John McCabe
Guest
Posts: n/a
 
      11-07-2005
wrote:

>I'm using Bloodshed Dev-C++ to write a program used to calculate orders
>for my business. Until recently a command line program has been
>sufficient but it is beginning to become cumbersome so I've switched to
>writing a windows program and am learning the API as I go. If I use a
>term wrong correct me - my experience in windows programming is
>limited, I do however understand C++ fairly well as I've been using it
>for about four years.
>
>I want to be able to add controls at runtime to my main window - which
>I have succesfully done. The number of controls is dependant on the
>customer's order size. For small orders the program works fine. The
>problem is for larger orders where the EDIT controls extend far beyond
>the bottom of the window. I need to make the window scrollable.


I don't know anything about Bloodshed Dev-C++, but can't you use
something like a list control (CListCtrl in MFC)?

 
Reply With Quote
 
 
 
 
Scott McPhillips [MVP]
Guest
Posts: n/a
 
      11-07-2005
wrote:
> I want to be able to add controls at runtime to my main window - which
> I have succesfully done. The number of controls is dependant on the
> customer's order size. For small orders the program works fine. The
> problem is for larger orders where the EDIT controls extend far beyond
> the bottom of the window. I need to make the window scrollable.


There are many controls that provide this capabiity. See the Grid
Controls section here...
http://www.codeguru.com/Cpp/controls/controls/

--
Scott McPhillips [VC++ MVP]

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a Scrollable Multi-Column List Nathan Sokalski ASP .Net Web Controls 2 08-17-2007 01:18 AM
Creating a Scrollable Multi-Column List Nathan Sokalski ASP .Net 3 08-17-2007 01:18 AM
Handling events of controls created at runtime Klaus Jensen ASP .Net 1 06-21-2007 11:23 PM
Creating a scrollable Frame in the same page success_ny@yahoo.com Javascript 1 12-08-2005 03:12 PM
Scrollable Datagrid : creating paging links dynamically outside the scroll bar RJN ASP .Net 1 10-26-2004 03:25 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57