PC SOFT
ONLINE REPOSITORY
FOR WINDEVWEBDEV AND WINDEV MOBILE

Home |  | Sign in | English US
TUTOR GDImage 64-bit
Published by Patrice TERRIER
in the category Graphics
New features
In the "TUTOR_05" window, the audio volume X thumb location is not updated correctly when the main window is resized.

To solve this problem replace the code from the "ResizeGDImageCtrl" procedure with the code below:

[code]
PROCEDURE ResizeGDImageCtrl()
IF IsWindow(gP.hGDImage) THEN
MoveWindow(gP.hGDImage, GDImage_Template..X, GDImage_Template..Y, GDImage_Template..Width, GDImage_Template..Height, True)

// We must compute the correct thumb x location
x, y, w, h is int
ZD_GetObjectBound(ID_PROGRESS_HORZ, w, h)
ZD_GetObjectXY(ID_PROGRESS_HORZ, x, y); x += w
ZD_GetObjectXY(ID_THUMB_HORZ, h, y)
ZD_GetObjectBound(ID_THUMB_HORZ, w, h); x -= w / 2
ZD_SetObjectXY(ID_THUMB_HORZ, x, y, True) // Update the X coordinate
END
[/code]

Description
TUTOR 1 to 5

This project uses 5 windows to illustrate step by step the use of GDImage in a WINDEV application.
The code is compatible WD17+, but indeed GDImage64.dll works with all the WINDEV versions.
Because the procedural native code is much faster than any IL or p-code, it is able tp perform real time processing (see the oscilloscope in TUTOR_05).
To navigate from TUTOR_01 to TUTOR_05, you will have to change the "first window" in the project tree view.
Illustrations, screen shots
none
none
User reviews
(To evaluate this resource, click 'Write a review')
No review or comment? Be the first one!
ABOUT
RATING:
00No rating
DOWNLOADS:
57
UPDATED:
March 28, 2020
VERSION:
CONCERNS:
WINDEV
Minimum version: WD17+
SIZE:
12.2 MB
OF SAME DEVELOPER