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


Groups > comp.lang.clipper.visual-objects > #13485

Re: help

From "Wolfgang Riedmann" <wriedmann@gmail.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: help
Date 2021-11-28 14:38 +0100
Message-ID <j0hf24F4qh1U1@mid.individual.net> (permalink)
References <9b517af8-3f8a-4af4-a948-fbafd0b548b8n@googlegroups.com> <j0f6uoFm8ufU1@mid.individual.net> <2a24bf13-b6c7-407b-beae-605499e7c3b5n@googlegroups.com>

Show all headers | View raw


Hi Aurora,

> what does self:enddialog( IDOK) mean?
> The question refers to the word IDOK.
> Does it mean the name assigned to the window ?

the method EndDialog() of the dialogWindow class has one numeric
parameter.
This parameter is assigned to the :Result instance variable.

IDOK is a constant that has the value of 1, whereas IDCANCEL has the
value of 2.

This is a sample:

class MyDialog inherit DialogWindow

method OkButton() class MyDialog

	self:EndDialog( IDOK )

	return nil

method CancelButton() class MyDialog

	self:EndDialog( IDCANCEL )

	return nil

.....
local oDlg as MyDialog

oDlg := MyDialog{ self }
oDlg:Show()
if oDlg:Result == IDOK
  // do something because the dialog was closed with the OK button
endif

HTH

Wolfgang






-- 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

help aurora baccio <aurorabaccio@gmail.com> - 2021-11-26 07:38 -0800
  Re: help JohnMartens <martens@tennishulp.info> - 2021-11-26 16:56 +0100
    Re: help aurora baccio <aurorabaccio@gmail.com> - 2021-11-28 02:21 -0800
      Re: help JohnMartens <martens@tennishulp.info> - 2021-11-29 18:50 +0100
  Re: help "Wolfgang Riedmann" <wriedmann@gmail.com> - 2021-11-27 18:07 +0100
    Re: help aurora baccio <aurorabaccio@gmail.com> - 2021-11-28 02:25 -0800
      Re: help "Wolfgang Riedmann" <wriedmann@gmail.com> - 2021-11-28 14:38 +0100

csiph-web