Mercurial > dwindows
comparison dwtestoo.cpp @ 2988:dfab2dfa9bc1
Check DW_FEATURE_HTML_MESSAGE to decide if the raw html widget
should have the javascript code or not. This prevents error popups
when clicking the "dwtest" text when using the IE HTML widget.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 04 Apr 2023 01:08:14 +0000 |
parents | ae4d6856b983 |
children | 392f0b3dd502 |
comparison
equal
deleted
inserted
replaced
2987:0e47ca67aab0 | 2988:dfab2dfa9bc1 |
---|---|
1621 { | 1621 { |
1622 this->app->MessageBox("Javascript Message", DW_MB_OK | DW_MB_INFORMATION, | 1622 this->app->MessageBox("Javascript Message", DW_MB_OK | DW_MB_INFORMATION, |
1623 "Name: " + name + " Message: " + message); | 1623 "Name: " + name + " Message: " + message); |
1624 return TRUE; | 1624 return TRUE; |
1625 }); | 1625 }); |
1626 rawhtml->Raw("<html><body><center><h1><a href=\"javascript:test('This is the message');\">dwtest</a></h1></center></body></html>"); | 1626 rawhtml->Raw(dw_feature_get(DW_FEATURE_HTML_MESSAGE) == DW_FEATURE_ENABLED ? |
1627 "<html><body><center><h1><a href=\"javascript:test('This is the message');\">dwtest</a></h1></center></body></html>" : | |
1628 "<html><body><center><h1>dwtest</h1></center></body></html>"); | |
1627 DW::HTML *html = new DW::HTML(); | 1629 DW::HTML *html = new DW::HTML(); |
1628 | 1630 |
1629 notebookbox->PackStart(hbox, 0, 0, TRUE, FALSE, 0); | 1631 notebookbox->PackStart(hbox, 0, 0, TRUE, FALSE, 0); |
1630 | 1632 |
1631 // Add navigation buttons | 1633 // Add navigation buttons |