
Quote from Feli on April 21, 2020, 10:56 amSince 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.
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.

Quote from Gaev on May 16, 2020, 2:26 pm@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 adjustmentsIs this something you can live with in lieu of drag and drop ?
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 ?


Quote from fkapnist on December 1, 2020, 12:33 pm@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.
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.