160 views
in System Integration by
Hi,

I have 2 properties in the Application::DeviceClass that I'd like to be able to update their resource reference.

One is a string, the other an image. The new string and image both exist already in the GUI and have their generator set to true. I want to pass in the resource identifier, not the raw content.

Is it possibly to pass in a different value to a property from the device layer?

A method along the lines of:

void UpdateImage( arg Resources::Bitmap NewImage )

{

    pure ExistingImage =  NewImage;

}

1 Answer

0 votes
by

Hi,

maybe I did not fully get your question (what you tried or what is not working).

Anyway, let me express another thought:

A Device Class (and its corresponding Device Driver) is the interface between the GUI application and a certain software API (= your middleware, your business logic).

Resources and string constants are aspects of the GUI application and should be handled GUI internally. From an interface perspective, a middleware should report only a certain system state to the GUI application and should not assign bitmap resources.

Maybe it is better to introduce some system states and let the GUI react accordingly. See also the chapter Implementing a Device Interface.

Does this help?

Best regards,

Manfred.

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...