2011-09-12 02:59 PM - last edited on 2023-08-03 09:36 AM by Doreena Deng
2011-09-15 03:23 PM
frankito5 wrote:Have you tried making it a Palette? In the past, Modeless could crash because it wasn't correctly registered in ArchiCAD. I don't know if this has been corrected, but I would certainly try Palette instead.
'GDLG' 32540 Modeless 0 0 320 250 "Prueba"
2011-09-16 10:21 AM
Ralph wrote:Yes, i've tried and i just can see one difference. The outline of the Dialog seems diferent(exactly like modal dialog) but in few seconds the crash comes.frankito5 wrote:Have you tried making it a Palette? In the past, Modeless could crash because it wasn't correctly registered in ArchiCAD. I don't know if this has been corrected, but I would certainly try Palette instead.
'GDLG' 32540 Modeless 0 0 320 250 "Prueba"
2011-09-16 10:53 AM
2011-09-16 10:04 PM
Oleg wrote:Yes - that is probably the cause.
Your AddOn should be "keep in memory" if you use a modeless or palette.
Else it will unloaded and dialog handler will invalid.
2011-09-19 08:42 AM
I think, you need to use ACAPI_RegisterModelessWindow, so I think, API will keep your AddOn in memory automatically.Where i should call this function?
Or try for test ACAPI_KeepInMemory.I have used this function and i got my goal even i still can't manage it from a modeless dialog but now i can link objects with the dialog(THANK YOU ). Last thing, i would like to know something new. I have drawn my own objects from my API and i would like to modify some attributes from my API. Which is the structure i have to modify? I've tried element.objetct.x where 'x' is the attribute to modify. But the attributes which i would like to modify are recently created by myself and i don't know which and where is the structure i have to handle.
2011-09-19 01:56 PM
frankito5 wrote:From the documentation:
Where i should call ACAPI_RegisterModelessWindow?
call it from the DG_MSG_INIT section of your palette's callback
frankito5 wrote:Could you start this question on a new topic? Someone else might have the same question in future, and it will be much easier to find with under a specific title.
I have drawn my own objects from my API and i would like to modify some attributes from my API. Which is the structure i have to modify? I've tried element.objetct.x where 'x' is the attribute to modify. But the attributes which i would like to modify are recently created by myself and i don't know which and where is the structure i have to handle.
2011-09-20 02:02 PM