2011-08-05 01:29 PM - last edited on 2023-08-03 09:42 AM by Doreena Deng
2011-08-09 11:24 AM
2011-08-09 11:50 AM
frankito5 wrote:ArchiCAD automatically stores the previous size and position of dialogs, and retrieves them the next time the dialog is displayed. To override this, you can obtain and apply the correct dialog size during the initialisation phase of the dialog. Refer to
i am "playing" with the GUI and i've found a problem. I have created a Modal dialog with 4 edit text and two buttons. But, i dont know when i try to change the size(208px) in the GRC file, it does not change in the API and i do not know why!
2011-08-09 12:33 PM
2011-08-09 02:31 PM
frankito5 wrote:You could add it to the dialog callback, when it is called for the dialog initialisation (DG_MSG_INIT).
1. Where i have to include this call function?
frankito5 wrote:
2. Should i have to modify the size from the GRC file?
frankito5 wrote:That's the right call, but you shouldn't cast an integer value as a pointer. You want to retrieve the size of the dialog, so you should pass the addresses of integer variables to the function, e.g.:
3. Is this call correct?
void DGGetDialogSize (short dialId,short rectType,short* hSize,short* vSize);
DGGetDialogSize (Dialogo_prueba_GDLGID, DG_CLIENT, (short*)306, (short*)408);
short dialogWide = 0; short dialogDeep = 0; DGGetDialogSize (Dialogo_prueba_GDLGID, DG_ORIGFRAME, &dialogWide, &dialogDeep);Then set the dialog size with those values using
2011-08-10 12:33 PM
2011-08-10 04:55 PM
frankito5 wrote:I can't see where you use
Could you tell me if i have made any error or if i have forgotten something?
2011-08-11 10:36 AM
2011-08-11 11:19 AM
frankito5 wrote:I get the impression you haven't done much C/C++ development to date. If you write the following:
1. I want to read from a .TXT file 52 fields. The problem is when i try to open the file, because it does not open. Where i have to include this .TXT file?
ifstream prov("provincias.txt", ifstream::in);...you haven't stated where the file should be found, so it will assume a default directory for your file, probably
frankito5 wrote:Set the ArchiCAD application as the target for debugging.
2. How to debug the API in VS2005 to check errors?
frankito5 wrote:Unfortunately not.
3. There is one way to update the archiCAD without open&close each time i want to see the changes in the API?
2011-08-11 11:39 AM
Set the ArchiCAD application as the target for debugging.How to do it?
2011-08-11 02:22 PM