License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…
2011-05-16
02:20 AM
- last edited on
2023-08-03
09:53 AM
by
Doreena Deng
2011-05-16 11:29 AM
Fern wrote:I'm not sure if you're asking how to make the button work, launch a URL, or both. This is potentially a big subject, so I don't want to describe solutions for problems you've already solved. For example, do you understand how the callback passed to
I'm very new in API add-on, I would like to create the simple button to browse to the website, eg. like the hyperlink in HTML. Would you guys please guide me which function I can use for the button on Modal Dialog?
2011-05-17 11:50 PM
2011-05-18 08:57 PM
Fern wrote:The callback is invoked for a variety of reasons, including the user clicking on a button. You need to detect which event has triggered the callback. When it's a click in the button, you can then request that a browser open the specified URL. I don't know of a function in the ArchiCAD API to open a URL, so you will probably have to use a function in the host OS API.
I knows a bit for the callback function in DGModalDialog, such as DGCALLBACK. Does ArchiCAD API have the callback function to open the web browser when user click on the button.