473,473 Members | 2,155 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

VBA - User dialog - dialogfunc

Hi,

when using user dialogfs in VBA I do not realy understand the dialog
function actions. May anyone please explain me the actions 3 - 5?

Thanks, Marco

Function dialogfunc(DlgItem$, Action%, SuppValue%) _
As Boolean
Select Case Action%
Case 1 ' Dialog box initialization
...
Case 2 ' Value changing or button pressed
...
Case 3 ' TextBox or ComboBox text changed
...
Case 4 ' Focus changed
...
Case 5 ' Idle
...
Case 6 ' Function key
...
End Select
End Function
Jul 17 '05 #1
1 8550
Description A dialogfunc implements the dynamic dialog capabilities.

Parameter Description

DlgItem This string value is the name of the user dialog item's field.

Action This numeric value indicates what action the dialog function is

being asked to do.

SuppValue This numeric value provides additional information for some

actions.

Action Description

1 Dialog box initialization. DlgItem is a null string. SuppValue is

the dialog's window handle. Set dialogfunc = True to terminate

the dialog.

2 CheckBox, DropListBox, ListBox or OptionGroup:

DlgItem's value has changed. SuppValue is the new value.

CancelButton, OKButton or PushButton: DlgItem's button

was pushed. SuppValue is meaningless. Set dialogfunc =

True to prevent the dialog from closing.

AccuTerm 97 Scripting Language Reference 37

3 ComboBox or TextBox: DlgItem's text changed and losing

focus. SuppValue is the number of characters.

4 Item DlgItem is gaining focus. SuppValue is the item that is

losing focus. (The first item is 0, second is 1, etc.) Note: When

the first item receives the focus there is no item that is losing

focus. In that case SuppValue is -1.

5 Idle processing. DlgItem is a null string. SuppValue is zero.

Set dialogfunc = True to continue receiving idle actions.

6 Function key (F1-F24) was pressed. DlgItem has the focus.

SuppValue is the function key number and the shift/control/alt

key state.

Regular function keys range from 1 to 24.

Shift function keys have &H100 added.

Control function keys have &H200 added.

Alt function keys have &H400 added.

(Alt-F4 closes the dialog and is never passed to the Dialog

Function.)
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Frank Esser | last post by:
Hello, I have got a specific question on user authentication. My customers usually use their workstations all together as a kind of public terminal. This means one of the users in the team...
2
by: Shane Molton | last post by:
I have a few user controls and I don't want to add them to the main form. I simply want to be able to spawn them like pop-up windows I added them to my project and call show(), but nothing...
8
by: Joe | last post by:
I check for the NTLogin of a user by Page.User.Identity.Name, but when I put the app on the server the value for Page.User.Identity.Name is "" I had the <allow users="*/> attribute commented...
4
by: Zachary Hilbun | last post by:
I need to write an ASP that requires a user to give a User Name and Password to run it. Whenever I've used this on the Web it displays a standard dialog and then offers to save the User Name and...
4
by: Nathan Sokalski | last post by:
I want to give visitors to my site the option of downloading a generated ..txt file by clicking a button. I know how to generate text files, but how do I cause the browser to pop up one of those...
2
by: Samy | last post by:
Hi There, I have a user control with buttons on it which I use on a aspx page (parent page). On a button click, a modal dialog(aspx page) opens up and the user enters some info in the modal dialog...
0
by: Siv | last post by:
Hi, This is driving me nuts, I have created a custom print preview dialog, I have a toolbar at the top of the window that allows the user to select a page setup dialog and a printer dialog. All...
5
by: Martijn Saly | last post by:
I'd like to test in my script, if it's going to be possible to enable priviliges. If I use this... netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect") ....it presents a...
7
by: Sin Jeong-hun | last post by:
I have a dialog form which pops up from the main window using the ShowDialog() method. this dialog has no or button, and it has quite a lot of controls on it. Now, I want to close this dialog...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.