Adam's Lair Forum

game development and casual madness
It is currently 2020/02/25, 04:24

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 2015/02/19, 12:19 
Forum Addict
Forum Addict
User avatar

Joined: 2013/09/19, 14:31
Posts: 883
Location: Italy
Role: Hobbyist
Maybe the choice of words is not the best one, but bear with me :D
what is the usual / suggested / default way to inform the user that there is something wrong with the object / resource in the Object Inspector?

I would like to alert the user that a Skin doesn't have an associated Material, because this would generate an exception within the Skin Editor (catched by the editor, with log message and error noise). I would prefer to avoid showing a popup message because there is nothing in the editor like that..

Suggestions?

_________________
Come on Duality's Discord channel. We have cookies! :mrgreen:


Top
 Profile  
 
PostPosted: 2015/02/19, 20:31 
Site Admin
Site Admin
User avatar

Joined: 2013/05/11, 22:30
Posts: 2073
Location: Germany
Role: Professional
There is no "official" way to do this, but the Inspectors job is not really to validate data, but to allow displaying and editing it within certain restrictions (ranges, types, ...). My take on this would be to instead let the Skin Editor check for its requirements as a precondition, and if they are not met, "deactivate" / "grey out" itself and tell the user what's wrong in a status text, Advisor info, error label or similar.

_________________
Blog | GitHub | Twitter (@Adams_Lair)


Top
 Profile  
 
PostPosted: 2015/02/19, 20:51 
Forum Addict
Forum Addict
User avatar

Joined: 2013/09/19, 14:31
Posts: 883
Location: Italy
Role: Hobbyist
Yes, my bad.. at start I was thinking of something like the "flashing" alert where it will highlight a Resource in the Project view.

In the end I simply put a warning in the log error and don't open the Form.

Adam wrote:
tell the user what's wrong in Advisor info.

This part is interesting.. can I just send a text to the Advisor? how to do that?

_________________
Come on Duality's Discord channel. We have cookies! :mrgreen:


Top
 Profile  
 
PostPosted: 2015/02/20, 01:35 
Site Admin
Site Admin
User avatar

Joined: 2013/05/11, 22:30
Posts: 2073
Location: Germany
Role: Professional
SirePi wrote:
Adam wrote:
tell the user what's wrong in Advisor info.

This part is interesting.. can I just send a text to the Advisor? how to do that?


Implement IHelpProvider in any kind of custom Control and the help system will display what it has to say when hovering the mouse cursor on it. ^^ There is also a special case for menus and toolstrip icons of the main window where each menu entry can provide its own HelpInfo object via its Tag property.

That said, the help system is not something you can push to. It will pull from you instead when you have the user's attention / the mouse cursor hovering.

_________________
Blog | GitHub | Twitter (@Adams_Lair)


Top
 Profile  
 
PostPosted: 2015/02/20, 08:21 
Forum Addict
Forum Addict
User avatar

Joined: 2013/09/19, 14:31
Posts: 883
Location: Italy
Role: Hobbyist
Ah, there is one catch.. I changed my form to be fired on double click instead of from the context menu, so I guess there is nothing to "hover" until I start the form. No luck then? :mrgreen:

That's ok, in case I can stay with my error message :) or I could just show the message popup with the explanation.. anyway the desired outcome would be to "open a window".. :troubled:

_________________
Come on Duality's Discord channel. We have cookies! :mrgreen:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group