Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2004-11

Win32 API - Inactive Scroll Bar

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

I am new to Windows programming so please bear with me if it is some trivial mistake. I am using FPC.

I have created a window with :
  hWindow := CreateWindow (AppName,'First Prog',ws_OverlappedWindow or WS_VScroll,
                         cw_UseDefault,cw_UseDefault,cw_UseDefault,
                         cw_UseDefault,0,0,system.MainInstance,Nil);

Now after I write some text on the window with TextOut function that goes beyond the window size. I get a scroll bar displayed on the window but the window do not scroll.

Please educate me - what is wrong?

Is there any good online tutorial or book available. All the material I could get my hand on is meant for Delphi :-(.

Regards,

Tux-Jsr

Marco van de Voort
to Unknown author
Show quoted text 13 lines
I am new to Windows programming so please bear with me if it is some trivial mistake. I am using FPC. I have created a window with : hWindow := CreateWindow (AppName,'First Prog',ws_OverlappedWindow or WS_VScroll, cw_UseDefault,cw_UseDefault,cw_UseDefault, cw_UseDefault,0,0,system.MainInstance,Nil); Now after I write some text on the window with TextOut function that goes beyond the window size. I get a scroll bar displayed on the window but the window do not scroll. Please educate me - what is wrong? Is there any good online tutorial or book available. All the material I could get my hand on is meant for Delphi :-(.

This is windows api, which is the same for FPC and Delphi.

However I would encourage you to use lazarus, it is way easier:

http://lazarus.freepascal.org