GUI reference documentation
7 posts
• Page 1 of 1
GUI reference documentation
Where can I find reference documentation of the GUI library that comes with Dyalog APL. More specifically, I would like to know if there is a way to set a character limit for an Edit control, so in this case I would like to see a list of all attributes applicable to Edit controls.
- augustk
- Posts: 27
- Joined: Tue Feb 05, 2019 11:54 am
Re: GUI reference documentation
I found the answer myself: In the F1 help window, select the Index tab and search for "Properties". When a widget type is selected in the list under Properties, e.g. Edit, all applicable properties are listed on the right.
- augustk
- Posts: 27
- Joined: Tue Feb 05, 2019 11:54 am
Re: GUI reference documentation
Hi. The information you're looking for is in the Dyalog for Microsoft Windows Object Reference Guide (see http://docs.dyalog.com/17.0/Dyalog%20for%20Microsoft%20Windows%20Object%20Reference%20Guide.pdf) – if you go to the Documentation Centre (https://www.dyalog.com/documentation_170.htm) there's a list of all the documents that are available with a brief summary of each one so that you can see what it's about and a link to its PDF. Offline versions of these documents can also be found from your Dyalog Session by selecting Help > Documentation Centre in the menu bar (the online versions of the documents get updated during the lifecycle of the release, so these are likely to be more up-to-date than the offline versions).
-
Fiona|Dyalog - Posts: 68
- Joined: Mon Apr 22, 2013 12:59 pm
Re: GUI reference documentation
Hi augustk,
You can use ⎕NA and the win32 API to set a limit of characters in an edit control.
The message EM_SETLIMITTEXT is 197.
The following will set a limit of 10 characters to my edit field:
Regards,
Vince
You can use ⎕NA and the win32 API to set a limit of characters in an edit control.
The message EM_SETLIMITTEXT is 197.
The following will set a limit of 10 characters to my edit field:
'f' ⎕wc 'form'
'f.e' ⎕wc 'edit'
'sendmsg' ⎕NA'I4 USER32|SendMessage* P U4 P P'
sendmsg f.e.Handle 197 10 0
Regards,
Vince
- Vince|Dyalog
- Posts: 408
- Joined: Wed Oct 01, 2008 9:39 am
Re: GUI reference documentation
Hmm.. What's wrong with
?
-Veli-Matti
'f'⎕WC'Form'⋄'f.e'⎕WC'Edit'('MaxLength' 10)
?
-Veli-Matti
- Veli-Matti
- Posts: 93
- Joined: Sat Nov 28, 2009 3:12 pm
Re: GUI reference documentation
The other thing to try is to create an instance of the object in question and then to look at its PropList. You'll see from the output that there's also EventList, MethodList and ChildList - the output of which you can in general hit F1 on to bring up the relevent help page.
-
AndyS|Dyalog - Posts: 257
- Joined: Tue May 12, 2009 6:06 pm
Re: GUI reference documentation
Hi Veli-Matti,
You're right! I should have tried it.
MaxLength works for both single-line and multi-line edit fields.
Our documentation for MaxLength says that it does not apply to Style Multi edit fields, but it does seem to. I have logged a docs issue for this.
Regards,
Vince
You're right! I should have tried it.
MaxLength works for both single-line and multi-line edit fields.
Our documentation for MaxLength says that it does not apply to Style Multi edit fields, but it does seem to. I have logged a docs issue for this.
'f' ⎕wc 'form'
'f.e'⎕WC'edit'('style' 'multi')
f.e.MaxLength←5
Regards,
Vince
- Vince|Dyalog
- Posts: 408
- Joined: Wed Oct 01, 2008 9:39 am
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group