vertical scroll bars..

This is a discussion on vertical scroll bars.. within the Windows Programming forums, part of the Platform Specific Boards category; Hey all, OK, so I'm programming for a handheld unit with Embedded tools, as I've stated before in other threads... ...

  1. #1
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429

    vertical scroll bars..

    Hey all,

    OK, so I'm programming for a handheld unit with Embedded tools, as I've stated before in other threads... and I want to make the form longer than the screen... is this possible, and if so, how can I embed a vertical scroll bar to move down to the other material?

    THANKS!!

  2. #2
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    why not? I do it in windows all the time...what handheld unit is it, out of curiosity?

    for a V scroll just add this to the rest of your createwindow code (after WS_CHILD or WS_OVERLAPPEDWINDOW or whatever): WS_VSCROLL . that's it. so you'd just have "WS_OVERLAPPEDWINDOW | WS_VSCROLL" or whatever as your attributes.

  3. #3
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    The handheld is a Compaq iPAQ... I love this thing. It runs WinCE 3.0.

    OK, can you explain what you said? I'm a real newbie to this type of programming...

    I'm trying to do it the cheap way and put a scrollbar directly on the form, not within a control like a frame or a text box or something. I don't even know if it's possible.

    As of right now, I've split the form and created a second form that is just linked, but I'd love to try to do it the other way if possible.

  4. #4
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    hmm...not sure. Are you using MFC? if you are, I can't help you...

  5. #5
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    OK, explain to me what MFC and API mean.. I've seen that stuff floating around here but have yet to understand it.

    I'm using the eMBedded tools, which is basically Visual Basic for Windows CE.

  6. #6
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    then wyh are you asking on a C board? lol.

  7. #7
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    well, I know this is a C board, but I've asked VB questions on here before, since it DOES say Windows Programming... which I figured all languages could be asked about...

    I dunno... shoot me.

  8. #8
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    >>> explain to me what MFC and API mean

    API stands for Application Programmers Interface, (or similar). It is usually a series of functions you use to control something. In the case of Windows, you use the Win32 API.

    MFC is a class library. It is a series of thin wrappers around the Win32 API which make certain types of application easier to code up by not terribly technical programmers. Anything you can do with MFC, you can do with the API.

    It is definitely possible to do what you want to do on a WinCE 3.0 box. We use these things all the time, however we use embedded C++, and hence we can use the API call as described by -KEN-.

    Visual Basic is a bit like programming with MFC in that everything is wrapped up in classes. You'll need to talk to a VB person to find out the details. I suspect there is a way of instantiating your form which enables this functionality. Try the VB board at www.programmersheaven.com.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  9. #9
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    *twitches eye at mention of VB - cocking back pistol* just say when..

  10. #10
    Registered User
    Join Date
    Sep 2001
    Posts
    14
    Planet Source code, http://www.planet-source-code.com, has some good VB resources, C & C++, and web programming. I go there sometimes to look for code samples. Visual Basic does have its uses, especially when doing database front-end programming & VB Script for ASP web pages. I'm not saying it's necessarily better. I'm just saying it can be useful sometimes.

  11. #11
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    VBScript can be useful, I'll give it that, but I do VB at school 1st period - I have a right to hate it.

  12. #12
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    Thanks guys.. that's all a lot of help. I think I just need more resources... Thanks again.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Scroll Bars Are Scrolling Me Crazy
    By Iyouboushi in forum C# Programming
    Replies: 6
    Last Post: 03-03-2006, 12:43 PM
  2. Edit Box Scroll Bars
    By willc0de4food in forum Windows Programming
    Replies: 9
    Last Post: 10-19-2005, 12:12 PM
  3. Scroll Bars and Focus
    By Thantos in forum Windows Programming
    Replies: 1
    Last Post: 08-21-2003, 11:57 AM
  4. Horizontal Scroll Bars with CListBox
    By Malek in forum Windows Programming
    Replies: 1
    Last Post: 04-10-2003, 09:58 PM
  5. Scroll Bars
    By bc17 in forum Windows Programming
    Replies: 2
    Last Post: 02-21-2003, 02:15 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21