Hyperlink on Modal Dialog
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2011-05-16
02:20 AM
- last edited on
‎2023-08-03
09:53 AM
by
Doreena Deng
‎2011-05-16
02:20 AM
Hi there,
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?
Cheers
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?
Cheers
Labels:
- Labels:
-
Add-On (C++)
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2011-05-16 11:29 AM
‎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?
If you simply want to know how to launch the URL, I don't know of an ArchiCAD API function for this. I use the host OS API for this purpose.
Ralph Wessel BArch
Central Innovation
Central Innovation
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2011-05-17 11:50 PM
‎2011-05-17
11:50 PM
Thanks Ralph for your reply. I simply want a button that can launch to the URL like when we click the button, and it open the web browser and launch to that URL.
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.
Thanks in advance
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.
Thanks in advance
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2011-05-18 08:57 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.
Ralph Wessel BArch
Central Innovation
Central Innovation