how to apply style in a project using open edge into a form?

#1
Hi Team

I'm new to style, want to apply style into my project but it does nt load any of them. I have attached screen shot, what am I missing here. Please help
 

Attachments

Osborne

Active Member
#2
Are you missing a line similar to this?:
Code:
appStylistRuntime1:LoadFromStyleManager().
or is the problem that the style is just not being found? If the latter, confirm it can be found before loading:
Code:
vStyle = SEARCH("Office2007Blue.isl").
IF vStyle <> ? THEN
   Infragistics.Win.AppStyling.StyleManager:Load(vStyle).
/* or */
FILE-INFORMATION:FILE-NAME = "Office2007Blue.isl".
IF FILE-INFORMATION:FULL-PATHNAME > "" THEN
   Infragistics.Win.AppStyling.StyleManager:Load(FILE-INFORMATION:FULL-PATHNAME).
 
#3
Hi Osborne yes on my project directory under style i do have infragistics styles. What i did after this post manage to work around my exisitng code. By doing the following steps;

1. created method under constructor. eg setStyle("C:\WorkSpace\Folder Name for IDE\OEProject\Styles-Folder\Pear.isl").
2. Create function called METHOD PUBLIC VOID setAppStyle(vStyle AS CHARACTER):
Infragistics.Win.AppStyling.StyleManager.Load(vStyle).
RETURN.
END METHOD..
3. This load themes and style when this logic had been applied, all the background color changed including buttons.

Thanks for the feedback
 
Top