Learn Basic Programming by example - A Simple Image Processor - Part 04

preview_player
Показать описание
Learn how to program in PureBasic. Follow the development step by step of a simple image processing application.

In this episode, I add scroll bars around the image gadget so that, an image larger than the window can be explored completely.

Рекомендации по теме
Комментарии
Автор

I just bumped into this and it might warrant mention in this series: With the advent of (ultra) high def. computer monitors, such as QHD & 4K UHD, most users will set the desktop scaling to 125% (as Windows itself suggests) or higher in order to be able to read things on the screen.

If they do, your code will not work as intended. In particular, the scrollbar sizing will not work as expected - it will be necessary to deploy the DesktopUnscaledX() and DesktopUnscaledY() functions.

SetGadgetAttribute(ScrollArea, #PB_ScrollArea_InnerHeight,
SetGadgetAttribute(ScrollArea, #PB_ScrollArea_InnerWidth,

Awesome work - you obviously invest a lot of time & effort - this will hopefully further the spread of this powerful, but not well known language. I see that Nick A. of Rebol/Red fame has found it, too!

tua
Автор

Great introduction series! Deeper dives into business type apps would be a great direction. Also a series about 3D would be fantastic...

merchantsvillage
visit shbcf.ru