Forum  General Visual ...  How do I...?  Local resources
Previous Previous
 
Next Next
New Post 9/26/2008 8:45 AM
  wjar
49 posts
No Ranking


Local resources 
Hi,
is there a way to assign a local resource to a control? I don't know if I'm clear...

in an aspx file in a Web Application, you can, for example use a label like this


then in its corresponding resx file
Code:

So that when you display it, the label text will read "Code:".

Is there a way to do this in VWG?
 
New Post 9/26/2008 8:49 AM
  wjar
49 posts
No Ranking


Re: Local resources 
ok, that didn't look the way it should. trying again...
Hi,
is there a way to assign a local resource to a control? I don't know if I'm clear...

in an aspx file in a Web Application, you can, for example use a label like this
<asp:Label ID="lblCode" Text="" runat="server" meta:resourcekey="lblCodeResource" />

then in its corresponding resx file
<data name="lblCodeResource.Text" xml:space="preserve"><value>Code:</value></data>

So that when you display it, the label text will read "Code:".

Is there a way to do this in VWG?
 
New Post 9/27/2008 5:16 PM
  palli
14334 posts
1st Level Poster




Re: Local resources 
You could always handle it on the Form.Load() event and just read the info from the resource file and assign the label text, right ?

Palli

Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 9/30/2008 11:39 AM
  wjar
49 posts
No Ranking


Re: Local resources 
Ok, I resolved it. I didn't know that switching the Localizable property in the form automatically populated the corresponding resx and manages it automatically from the designer.
What I observed is that it does this for every text-containing control except for ToolBarButton. I tried adding it manually to the resx and the designer and it worked, but every time I change anything it automatically deletes it. Is there any way for it to work with ToolBarButtons?
 
New Post 10/2/2008 8:06 AM
  ori.cohen
4401 posts
1st Level Poster




Re: Local resources 
Hello,

Welcome to Visual WebGui!

About the ToolBarButton, I opened a new issue and had Shlomi Bin fix it in VWG v6.2.0. You can view it here.

Regards,

Ori Cohen
The Visual WebGui team
 
Previous Previous
 
Next Next
  Forum  General Visual ...  How do I...?  Local resources
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS