Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Static RDE - Button Borders are invisible (Flat) Collapse All
Subject Author Date
Burak Petekkaya Jan 23, 2012 - 6:51 AM

Hi,


For all themes, our CExtButtons are shown as flat buttons without borders, as you can see on the following image.



The main executable is a .Net application, which doesn’t use ProfUIS.


ProfUIS is used in VS6 ActiveX control, statically linked as RDE.  (ProfUIS293ym-RDE).


The ActiveX control is also using a windows DLL which uses ProfUIS293m.dll.


How can we resolve this issue?

Technical Support Feb 2, 2012 - 12:48 AM

Please remove resources from the ...\Prof-UIS\Include\Resources\ResGeoControls folder. This folder contains big images. Then can remove resources of languages you don’t need in the ...\Prof-UIS\Include\Resources\resource.rc file by uncommenting lines like //#define __EXT_MFC_NO_RESOURCES_. Then you can remove unused resources of Office 2010 / 2007 folders for the unused themes. Then you can remove unused components from source code by uncommenting lines like //#define __EXT_MFC_NO_ in the ...\Prof-UIS\Include\Prof-UIS.h file. But, unfortunately, it’s not possible to create one RDE extension DLL for several RDE modules loaded in scope of one EXE process. So, you should use minimal version of static RDE library.

Burak Petekkaya Jan 24, 2012 - 4:54 AM

I found the problem, when linking statically, we have to include resource.rc in our project’s rc2 file. 


This solved the problem.


However, we have around 100 ActiveX projects where each of them statically links to ProfUIS.  And therefore file sizes increased around 5 x 100 = 500 MB.  Is there a workaround to reduce the size of the Prof library? I removed RIBBON related resources, since we don’t use ribbon in our ActiveX projects, but it did’nt have any effect on the file sizes.

Technical Support Jan 24, 2012 - 4:04 AM

This issue does not depend on whether the buttons created by ActiveX code or classic EXE code. Could you insert your dialog with flag buttons into a simplest possible dialog-based test project and send it to us?