Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / scrollbar dll and functions?

Author
Message
stann65
21
Years of Service
User Offline
Joined: 3rd Feb 2004
Location: england
Posted: 4th May 2004 23:56
hi all,
after experimenting with dll and functions i could not get my scrollbar to show or work heres the code i already have but can someone please post the correct code or fix mine.



kenmo
22
Years of Service
User Offline
Joined: 7th Sep 2002
Location:
Posted: 5th May 2004 00:23 Edited at: 27th Jun 2012 06:13
Umm.

First of all, why in the world are you using 500x500 as the resolution? Is there any monitor in the world that supports that??? (in fullscreen)

Secondly, the printed letters are a waste of space...

Thirdly, why would you call a DLL like that inside a loop?

Fourthly, things like "hWnd,wSBflags,SB_CTL,SB_VERT,wArrows,ESB_ENABLE_BOTH" will never work, those are parameters and you actually have to set the variables to something, other wise you are saying 0,0,0,0,0...

Fifthly, Im assuming you would have to MAKE a scrollbar first before you can en/disable its buttons, or show it, or whatever. And before you do that you need an actual window gadget area, which DBP doesn't have. It only has a DirectX screen... so the only way I know of using Windows gadgets (ie a scrollbar) in DBP is with RobK's BlueGUI.

Sixthly (hmm?), you cannot have Windows gadgets in a fullscreen so I hope you are running it in windowed mode?

Sorry if that sounded offensive, I wasnt trying to insult you, trust me I made mistakes like those back in the day too.
stann65
21
Years of Service
User Offline
Joined: 3rd Feb 2004
Location: england
Posted: 5th May 2004 19:26
i can simply make it run in windows mode but is there any other alternative in DB for a scrollbar other then rob k's blue gui

Login to post a reply

Server time is: 2025-05-23 13:51:56
Your offset time is: 2025-05-23 13:51:56