ask answer dialog icon not shown on windows
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
ask answer dialog icon not shown on windows
I have been attempting to display custom icons for ask answer dialogs in a standalone application.
After extensive testing, using different formats for the icon, I have come to the conclusion that the windows standalone will not display an icon.
The MAC version shows the correct ask answer icons along with the dialog text, however the windows version shows only the text.
I was hoping that someone else might have encountered this issue when building a standalone.
I did notice that in the standalone application settings, there is a selection in the MAC OSX tab that allows the setting of specific icons for ask answer dialog.
However as noted above this does not seem to carry over to the windows standalone.
Has anyone else seen this behavior and were you able to find a work around and or fix for this issue.
Thanks in advance for any suggestions.
After extensive testing, using different formats for the icon, I have come to the conclusion that the windows standalone will not display an icon.
The MAC version shows the correct ask answer icons along with the dialog text, however the windows version shows only the text.
I was hoping that someone else might have encountered this issue when building a standalone.
I did notice that in the standalone application settings, there is a selection in the MAC OSX tab that allows the setting of specific icons for ask answer dialog.
However as noted above this does not seem to carry over to the windows standalone.
Has anyone else seen this behavior and were you able to find a work around and or fix for this issue.
Thanks in advance for any suggestions.
ask/answer icons
I have had the same experience that the Mac standalone displays the icon in ask/answer dialog boxes but the Windows version does not. Since the Windows tab in Standalone Settings doesn't give the options that the Mac OSX tab does regarding these icons, I assume that it can't be done with Windows.
I would hope that would not be the case as one the the reasons that you would use an icon is for branding.
I have researched the matter completely and have found no reason why it should not work, however as you say it actually does not work as it should.
I was wondering if it could be solved as simply as adding the same options to the windows tab as is used in the mac osx tab, adding that option to the engine would seem to be a simple task.
Anyone else seem this behavior when working with standalone apps???
I have researched the matter completely and have found no reason why it should not work, however as you say it actually does not work as it should.
I was wondering if it could be solved as simply as adding the same options to the windows tab as is used in the mac osx tab, adding that option to the engine would seem to be a simple task.
Anyone else seem this behavior when working with standalone apps???
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
The 'custom application icon' in dialog boxes - where the application icon is shown when using the plain style of dialog, or the small application icon is combined with the 'information'/'question'/... icon - is a Mac-specific human interface guideline thing - there's no equivalent in the Windows user interface styleguide.
That being said, are you seeing no icons at all, even when you're using one of the iconTypes 'information'/'question'/'error'/'warning' ? Then you should verify that the following image ID's are present in your standalone:
Jan Schenkel.
That being said, are you seeing no icons at all, even when you're using one of the iconTypes 'information'/'question'/'error'/'warning' ? Then you should verify that the following image ID's are present in your standalone:
- 210008 (= information)
- 210010 (= error)
- 210006 (= warning)
- 210010 (= question)
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com
I am not sure I follow your post.Janschenkel wrote:The 'custom application icon' in dialog boxes - where the application icon is shown when using the plain style of dialog, or the small application icon is combined with the 'information'/'question'/... icon - is a Mac-specific human interface guideline thing - there's no equivalent in the Windows user interface styleguide.
That being said, are you seeing no icons at all, even when you're using one of the iconTypes 'information'/'question'/'error'/'warning' ? Then you should verify that the following image ID's are present in your standalone:HTH,
- 210008 (= information)
- 210010 (= error)
- 210006 (= warning)
- 210010 (= question)
Jan Schenkel.
I see the image numbers are available in the image library however no icon at all shows in a dialog in the standalone for windows.
The only thing that appears is the actual text of a dialog but not an icon of any type at all.
If I try or on my system (Win XP, Rev Studio 3.0.0 build 750) I get the dialogue boxes shown with the right icons.
I don't believe it is possible to make any "custom" icon to use in the ask/answer dialogues. On Windows I think you are restricted to the standard "information", "error", "warning" or "question" icons, as offered by Microsoft.
Code: Select all
answer warning "This is a warning message"
Code: Select all
ask question "Who are you?"
I don't believe it is possible to make any "custom" icon to use in the ask/answer dialogues. On Windows I think you are restricted to the standard "information", "error", "warning" or "question" icons, as offered by Microsoft.
Or you could make your own custom dialogues, as the ask and answer dialogues (the simple ones, not the ones pertaining to files and folders), are just modal stacks prepared by Rev.
look in the dictionary for:
style property
modal command
go command (using "as modal" or better "as sheet")
dialogData property
Note that Mac OS X users expect certain dialogues to be sheets, so ideally you'd use that form with the "go" command, if you're doing cross platform work. Also note that images in dialogues are supposed to be of a certain style for Mac OS X (and I think for Vista too), so read the GUI guides. Of course your button ordering would be wrong for Mac OS X, unless you shuffle them around.
As you might tell, making your own dialogues cross platform compatible is not very easy, so simply targeting for "at least it works" considering dialogues might be a good way to abstain from going insane.
look in the dictionary for:
style property
modal command
go command (using "as modal" or better "as sheet")
dialogData property
Note that Mac OS X users expect certain dialogues to be sheets, so ideally you'd use that form with the "go" command, if you're doing cross platform work. Also note that images in dialogues are supposed to be of a certain style for Mac OS X (and I think for Vista too), so read the GUI guides. Of course your button ordering would be wrong for Mac OS X, unless you shuffle them around.
As you might tell, making your own dialogues cross platform compatible is not very easy, so simply targeting for "at least it works" considering dialogues might be a good way to abstain from going insane.
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
Thanks BvG I will take a look at those for a solution.
It would be nice to have a custom dialog instead of just the plain dialogs what is interesting to me is that there seems to be a disconnect in that when you specify an icon in the MAC OSX tab, in the windows SA, no icon appears, however if you do not specify an icon the standard icon appears in windows
So then in order to have your custom icon appear you need to build twice once for MAC and once for Win, which is really a shame because it sort of defeats the code once deploy everywhere mantra.
I did read some where about being able to design a custom dialog, I will test and see if this creates a disparity between platforms.
It would be nice if it just worked,
(you know, I really see no reason that this cannot be worked into the engine build)
Thanks again for the suggestion, I will check it out and see if I can find a work around will post here if such occurs.
Tim
It would be nice to have a custom dialog instead of just the plain dialogs what is interesting to me is that there seems to be a disconnect in that when you specify an icon in the MAC OSX tab, in the windows SA, no icon appears, however if you do not specify an icon the standard icon appears in windows
So then in order to have your custom icon appear you need to build twice once for MAC and once for Win, which is really a shame because it sort of defeats the code once deploy everywhere mantra.
I did read some where about being able to design a custom dialog, I will test and see if this creates a disparity between platforms.
It would be nice if it just worked,
(you know, I really see no reason that this cannot be worked into the engine build)
Thanks again for the suggestion, I will check it out and see if I can find a work around will post here if such occurs.
Tim
Hi guys,
why not set the icon(s) manually? I do this all the time
There are global properties which manages the icon in "ask/Answer Dialogs":
"gRevAppIcon" and "gRevSmallAppIcon" check the docs.
Set it/them once when your stack(s) start or everytime you open these dialogs if you want to show different icons.
Best
Klaus
why not set the icon(s) manually? I do this all the time

There are global properties which manages the icon in "ask/Answer Dialogs":
"gRevAppIcon" and "gRevSmallAppIcon" check the docs.
Set it/them once when your stack(s) start or everytime you open these dialogs if you want to show different icons.
Best
Klaus
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
Let's see if we can make this perfectly clear.
1. If you use the following commands on Windows, do you see an icon at all?
If you still want to display such icons in your dialog boxes, you will have to create your own dialog boxes and routines. Or you can submit an enhancement request in the Revolution Quality Center - as this is not a bug.
Jan Schenkel.
1. If you use the following commands on Windows, do you see an icon at all?
- answer error "test"
- answer information "test"
- answer question "test"
- answer warning "test"
- answer "test"
- answer error "test"
- answer information "test"
- answer question "test"
- answer warning "test"
If you still want to display such icons in your dialog boxes, you will have to create your own dialog boxes and routines. Or you can submit an enhancement request in the Revolution Quality Center - as this is not a bug.
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com
Thanks Jan, yes it would appear that your synopsis is correct, I tested two versions of two different builds,Janschenkel wrote:Let's see if we can make this perfectly clear.
1. If you use the following commands on Windows, do you see an icon at all?2. If these do show, is your issue that the following command on Windows does not contain the 'large Application icon' as it does on MacOSX...
- answer error "test"
- answer information "test"
- answer question "test"
- answer warning "test"
...and that the following commands do not show the 'small Application icon' as they do on MacOSX?
- answer "test"
If the answer to both questions is 'yes' then nothing is wrong. Showing the application icon is a MacOSX specific user interface feature, and there is no equivalent in the standard Windows UI guidelines. Period.
- answer error "test"
- answer information "test"
- answer question "test"
- answer warning "test"
If you still want to display such icons in your dialog boxes, you will have to create your own dialog boxes and routines. Or you can submit an enhancement request in the Revolution Quality Center - as this is not a bug.
Jan Schenkel.
With the exclusion of a warning,
Icon does not exist:/Applications/Revolution Enterprise/3.0.0-dp-8/Runtime/Windows/x86-32/Support/Sample Icons/genericapp.ico
The dialogs work as you suggest they should.
Just for clarification on the error for the build, I did check to see that the ICO file was present, as well the application build shows the genericapp.ico is in fact present and does show visible in the build.
Of course that is a different situation entirely, thanks for your post, I believe I see the situation much more clearly.
coming from Delphi, it is interesting to me that you cannot specify an application icon for dialogs, as this is a standard feature in many other IDE type applications.
perhaps an enhancement would be a good thing.
Thanks again for your post.
Tim
Hi, Klaus, yes, I was looking at your hint and was slogging through the docs to see what I could learn about it, and or find a way to set a custom ICON as you pointed out.Klaus wrote:Hi Tim,
my hint from 10:39 (gRevAppIcon) DOES also work on Windows!
Best
Klaus
It would seem that these ICONS are after all just an image that is copied to the standalone, so one could change the default icons or at least it would appear so.
I was attempting to see the easiest way to accomplish this, I would think that you could create a custom default ICON, I wonder if you could create a default, answer icon,
Then the docs in the dictionary need to be updated. Here's what is stated:
Has anyone sent this in as a doc bug report?
Code: Select all
Summary:
A special global variable that specifies the application icon to be used on OS X systems with the ask, ask password, and answer commands.
Klaus wrote:Hi Tim,
my hint from 10:39 (gRevAppIcon) DOES also work on Windows!
Best
Klaus