Newbie needs windows GUI examples

Using (or providing) components based on the "Win32" framework
Post Reply
User avatar
woody
Posts: 146
Joined: Tue Dec 28, 2010 12:54 am
Location: Atlanta, Georgia USA
Contact:

Newbie needs windows GUI examples

Post by woody »

Greetings,

I'm diving into the wonderful world of Windows GUI programming using Dyalog APL (V17).

I have read the 2 PDFs ... and see a few basic examples of line by line GUI form creation and buttons and events...

But I still can not wrap my head around the Windows GUI developer interface.

Is there a document that can give more complete examples ?

Or some APL workspaces with more functional complete examples.

Like a finished FORM with buttons and a working model of the real GUI .. not just line by line examples ?

MY GOAL is to develop a simple CHAT tool that will run on Windows.

Any suggestions for the Newbie ?

Thanks!
Woodley Butler
Automatonics, Inc.
"Find your head in the APL Cloud"
http://www.APLcloud.com
Vince|Dyalog
Posts: 439
Joined: Wed Oct 01, 2008 9:39 am

Re: Newbie needs windows GUI examples

Post by Vince|Dyalog »

Hi Woody,

If you have not seen these already, please try these 2 workspaces. They have good examples of our ⎕WC GUI.

)load wtutor.dws

)load wtutor2.dws

)load lift.dws

This is an example of APL threads illustrated using our ⎕WC GUI.

)load arachnid

This is a card game written in APL.

Regards,

Vince
User avatar
woody
Posts: 146
Joined: Tue Dec 28, 2010 12:54 am
Location: Atlanta, Georgia USA
Contact:

Re: Newbie needs windows GUI examples

Post by woody »

Vince,

Thanks for the "leg up" with some good references to learn the APL GUI for Windows.

I got my first FORM created ... and I'm getting a hang for the structure of the GUI tools (Objects, Methods, Properties, Events) ...

Here's my 1st program ... that is a start toward building a Chat tool.

Cheers!

//W

Code: Select all

Pasted From Dyalog   ∇WOBCO1
[0]   WOBCO1
[1]   P S←(50 20)(20 60)
[2]   PROPS←P S('Style' 'Multi')('VScroll' ¯1)('WantsReturn' 1)
[3]   PROPS,←('Style' 'Multi')('Font' 'Arial' 40)
[4]
[5]   'W1'⎕WC'Form' 'WOBCO Test Form'(70 55)(25 40)
[6]   'W1.ED'⎕WC'Edit' '',PROPS
[7]   W1.ED.Text←''
[8]
[9]   ⍝ IF Form is  X   closed, then run APL FNS  SHOWDISP
[10]  ⍝ 'W1' ⎕WS 'Event' 'MouseUp' 'GETTEXT'
[11]  'W1.BUTTON'⎕WC'Button' 'Send'(5 20)(15 35)
[12]  W1.BUTTON.Event←'MouseUp' 'GETTEXT'
[13] UP:
[14]  R←⎕DQ'W1'
[15]  'Result from ⎕DQ: ',⍕R
[16]  →(0=⍴R)/END
[17]  DATA←W1.ED.Text
[18]  ⍝⍝ W1.ED.Text←''
[19]
[20]  →UP
[21] END:
[22]  'Done'
[23] ∇
Woodley Butler
Automatonics, Inc.
"Find your head in the APL Cloud"
http://www.APLcloud.com
User avatar
MikeHughes
Posts: 86
Joined: Thu Nov 26, 2009 9:03 am
Location: Market Harborough, Leicestershire, UK

Re: Newbie needs windows GUI examples

Post by MikeHughes »

You might also like to look at the video of the U15 presentation from the dyalog 18 user meeting. I am attempting to make the windows GUI available on Linux, Mac and over the internet (multi user).
User avatar
woody
Posts: 146
Joined: Tue Dec 28, 2010 12:54 am
Location: Atlanta, Georgia USA
Contact:

Re: Newbie needs windows GUI examples

Post by woody »

Thanks for the tips !

I also found some great APL Windows GUI documentation in the famous Mastering Dyalog APL document, Chapter P – Graphical User Interface

It would be helpful to have some sort of document or interactive tool that could be searched for a given GUI keyword ... (Searching the Mastering Dyalog APL PDF works well)

I'd like to see a complete list of all Dyalog APL system functions ⎕DQ, ⎕WS, ⎕WC ... etc. - with all GUI-specific options, properties, methods and events.

For example, if a GUI developer needed to know "How to make a GUI object Active" ... this might quickly show a section on using Active and Visible.

Active Specifies whether an object is active (1) or not (0).
Visible Specifies whether an object or a form is visible (1) or not (0).

Code: Select all

For example: 'XYZ' ⎕WS ('Visible' 1)('OnTop' 1)


I'd also like to see a hierarchical list of all GUI properties and options with short description for each.

Much like a Dyalog APL Windows GUI Programmer's Cheat Sheet

Anyway.. we're enjoying building Windows GUI apps with Dyalog APL !

Good stuff !

Thanks again,

//W
Woodley Butler
Automatonics, Inc.
"Find your head in the APL Cloud"
http://www.APLcloud.com
User avatar
woody
Posts: 146
Joined: Tue Dec 28, 2010 12:54 am
Location: Atlanta, Georgia USA
Contact:

Re: Newbie needs windows GUI examples

Post by woody »

UPDATE:

I just discovered
OBJ.PropList
OBJ.MethodList
OBJ.EventList

This really help the "newbie" ...

So, I'm looking for the description of each of these .. how to use them .. format for calling them, examples, etc.

I see several examples here and there .. and in the Master PDF ...

But would like to see a full summary in one place .. much like our Dyalog APL Reference Card .. but for GUI Interface.


Making progress...

Thanks!

//W
Woodley Butler
Automatonics, Inc.
"Find your head in the APL Cloud"
http://www.APLcloud.com
User avatar
MikeHughes
Posts: 86
Joined: Thu Nov 26, 2009 9:03 am
Location: Market Harborough, Leicestershire, UK

Re: Newbie needs windows GUI examples

Post by MikeHughes »

There is the dyalog object reference

not obviously windows fyi but everything is listed
User avatar
AndyS|Dyalog
Posts: 263
Joined: Tue May 12, 2009 6:06 pm

Re: Newbie needs windows GUI examples

Post by AndyS|Dyalog »

.. also known (at help.dyalog.com anyway ) as the Object Reference.

http://help.dyalog.com/17.0/Content/GUI ... orised.htm

(you might like to turn navigation back on when you've got there .. and one day we'll get to the point where the full URL appears on each page !)

The online help has the merit that for each object (well, almost every object!) there's a link to its Parent, Children, Properties, Methods and Events.
User avatar
woody
Posts: 146
Joined: Tue Dec 28, 2010 12:54 am
Location: Atlanta, Georgia USA
Contact:

Re: Newbie needs windows GUI examples

Post by woody »

Great !!

This is what I was looking for.

Sincere thanks!

//W
Woodley Butler
Automatonics, Inc.
"Find your head in the APL Cloud"
http://www.APLcloud.com
Post Reply