Advice please - Forum

Forum Navigation
You need to log in to create posts and topics.

Advice please

Since the time I have been using Neobook, I think I have mastered it.
But there is one thing I never could solve ...
How to allow the end user to resize an object (picture) using handles.
If anyone knows, it would be my pleasure to know.
Thank you.

Feli.

Hello.

No one to put me on the track ...

 

 

@feli

I missed your initial post.

The only way I can think of doing it is with additional buttons (normally hidden from view) that allow you to adjust width/height in fixed increments/decrements ... i.e. no drag and drop method.

You would need a palette of buttons (incWidth, decWidth, incHeight, decHeight, allDone) and a TextEntry or Listbox to enable user to set/select number of pixels to be adjusted each time a button is clicked.

It would get more complicated if you also needed to ...

- move the object such that its center is maintained
- have the aspect ratio maintained with each width/height adjustment
- have special needs about objects rendered above/below adjacent ones as a result of the adjustments

Is this something you can live with in lieu of drag and drop ?

Thanks Gaev !

@feli

An ImageWindow is moveable but not sizable.

However, a CustomWindow can be Sizable (instead of as Dialog Box), and that is perhaps what you want. As another solution, each picture can be a book or separate pub that is sizable and moveable, without a title bar. You can insert code to instantly scale each picture's dimensions when its window is Resized - action. If you compile them as runtime packages (requiring NBPlay5.exe) they will be small in size. A master control pub can then control them with CloseApp and SendKeys actions, etc.