Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming.threads > #4588

WinMenus using wingraph version 1.0

From Sky89 <Sky89@sky68.com>
Newsgroups comp.programming.threads
Subject WinMenus using wingraph version 1.0
Date 2018-08-23 14:06 -0400
Organization A noiseless patient Spider
Message-ID <plmt2k$lld$2@dont-email.me> (permalink)

Show all headers | View raw


Hello,


I have implemented Winmenus using wingraph, this one is graphical, i 
have also included an Opengl demo and other demos , just execute the 
real3d1.exe executable inside the zipfile to see how it is powerful, i 
will soon enhance much more my Winmenus.

WinMenus using wingraph version 1.0

Author: Amine Moulay Ramdane

Description:

Drop-Down Menu widget using the Object Pascal wingraph unit , it 
supports keyboard and mouse. Please look at the real3d1.pas demo inside 
the zip file, i have included its 64 bit executable, please run it and 
see(please double click with the mouse on the items to execute  and 
click on the middle mouse to stop the demo, and press escape to exit 
from the demo).

And use the 'Up' and 'Down' and 'PageUp and 'PageDown' to scroll the menu..
And 'Enter' to select an item from the menu..
And the 'Esc' on the keyboard to exit from the menu..

and right arrow and left arrow to scroll on the left or on the right of 
the menu

Winmenus is event driven, i have to explain it more to you to understand 
more...

At first you have to create your Widget menu by executing something like 
this:

Menu1:=TMenu.create(5,5);

This will create a Widget menu at the coordinate (x,y) in characters = (5,5)

After that you have to set your callback function, cause my Winmenus is 
event driven, so you have to add an item with AddItem() and set the 
callback function at the same time, like this:

AddItem('First 3D opengl demo',test1);

test1 will be the callback function.

When you execute menu1.execute(false) with a parameter equal to false my 
Winmenus widget will draw your menu without waiting for your input and 
events, when you set the parameter of the execute() method to true it 
will wait for your input and events, if the parameter of the execute 
method is true and the returned value of the execute method ctExit that 
means you have pressed on the Escape key to exit.


You can download my Winmenus from:

https://sites.google.com/site/scalable68/winmenus-using-wingraph

Language: FPC Pascal v2.2.0+ / Delphi 7+: http://www.freepascal.org/

Operating Systems: Windows..

Required FPC switches: -O3 -Sd -dFPC -dFreePascal

-Sd for delphi mode....

Required Delphi switches: -DMSWINDOWS -$H+



Thank you,
Amine Moulay Ramdane.

Back to comp.programming.threads | Previous | Next | Find similar | Unroll thread


Thread

WinMenus using wingraph version 1.0 Sky89 <Sky89@sky68.com> - 2018-08-23 14:06 -0400

csiph-web