Jump to content

Recommended Posts

Posted

Hi everybody,

at newer version of UniGui 0.99.X.XXXX tunitreeview supports only 16x16 images. Is there a way to overcome this problem?

 

Thanks in advance

Posted

Hi,

 

to anyone that matters,

 

finally, for solving that problem I used a not so sophisticated solution, I've modified css .x-tree-icon value.

 

Thanks

  • Upvote 1
Posted

Of course I'll explain.

The folder that css files exists is C:\Program Files (x86)\FMSoft\Framework\uniGUI\ext-4.2.2.1144\resources

there you should see a list of folders, now according the template that you use, select the correct folder, then you should edit the css file, search for .x-tree-icon and the it is straighforward what you change (width and height to the correct pixel size).

Posted

hello !

I found the same problem in my previous post  http://forums.unigui.com/index.php?/topic/5272-images-16x16-are-clipped-in-unitreeview/

I am not expert about web and html; could you explain me what modify (css?) and where ?

 

many thanks

 

Hi,

 

Also you can without changing the files css, try adding this code:

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  // for example, for 32x32  
  UniSession.AddJS('Ext.util.CSS.createStyleSheet(".x-tree-icon { height: 36px; width: 32px; }")')
end;

It certainly is not a complete solution, still need to analyze the 

.x-tree-elbow-img

Try, Best regards.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...