Use of StdCmds in programs

From: Michel Kuhne <"Michel>
Date: Mon, 12 Feb 2001 23:50:47 +0100

Hello dear BB-MailingList,
I encounter two problems in using StdCmds in programs (under 1.3.3 version).

FIRST PROBLEM
The execution of

  PROCEDURE WinWidth*;
  BEGIN
    StdCmds.layout.wType := 2; StdCmds.SetLayout
  END WinWidth;

makes the job but also produces an error mesg ("cannot close a dirty
window"), because the StdCmds.CloseDialog is in the code of
StdCmds.SetLayout and not in the ok-button link (as it should be, shouldn't
it ?).

SECOND PROBLEM
The execution of

  PROCEDURE IncSize*;
  BEGIN (*IncSize*)
    StdCmds.InitSizeDialog; INC(StdCmds.size.size); StdCmds.SetSize
  END IncSize;

makes the job : current size increases by 1, as it can be observed with
Attributes -> Size...

BUT, if you execute it twice, size doesn't increase by 2, as if the
StdCmds.size.size got by the menu weren't the same as the one got by the
program... ???

So, dear BB-MailingList, may I have :
1° An explanation of this phenomenon
2° A solution for my little size-problem

Merci d'avance !

Michel Kuhne, genève

--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy
Received on Mon Feb 12 2001 - 22:50:47 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:27:44 UTC