[CS3] How to add multiple panels in a single FR
Fellow Developers,
I have tried every other way to try adding a 2nd panel definition to a single fr - no luck. Here is what I did.
//================================================================================
// PanelList definition.
//================================================================================
resource PanelList (kSDKDefPanelResourceID)
// 1st panel in the list
kSDKDefPanelResourceID,
kGINPluginID,
isResizable,
kGINPanelWidgetActionID,
kGINPanelTitleKey,
"",item in a second place
0.0,
0,0,
c_Panel,
// 2nd panel in the list
kGINDocPanelPanelWidgetResourceID,
kGINPluginID,
notResizable,
kGINDocPanelPanelWidgetActionID,
kGINDocPanelPanelTitleKey,
0.0,
0,0,
c_Panel
resource GINPanelWidget(kSDKDefPanelResourceID + index_enUS)
resource GINDocPanelPanelWidget(kGINDocPanelPanelWidgetResourceID + index_enUS)
In ID.h
#define kGINDocPanelPanelWidgetResourceID 720 // random number
Code builds but I get an assert complaining about missing resource with id = 720.
All the included samples in SDK illustrate single panels.
Appreciate any help. Thanks
CG
You are trying to merge two panel resource with SDK PanelList. Instead create a separate panelist for each panel resource -
resource PanelList (kGINDocPanelPanelWidgetResourceID)
// 2nd panel in the list
kGINDocPanelPanelWidgetResourceID,
kGINPluginID,
notResizable,
kGINDocPanelPanelWidgetActionID,
kGINDocPanelPanelTitleKey,
0.0,
0,0,
c_Panel
Hope this helps !!
- Amit Gupta
MetaDesign Solutions
Similar Messages
-
Does anyone know how to add multiple pictures to a single frame in iMovie?
Does anyone know how to add multiple pictures to a single frame in iMovie?
Maybe you would be better off posting this in the iPhoto or iDVD categories of the forums.
http://discussions.apple.com/category.jspa?categoryID=143
http://discussions.apple.com/category.jspa?categoryID=128
The answer to your question depends on what you ant to do with the DVD.
Do you want a DVD menu, slide show etc.
iPhoto will allow you to burn straight to a DVD. Just select the album you want to burn then go to share in the tool bar and select Burn. -
Urgent ! How to add multiple JToolBars in a single JFrame
How to implement multiple JToolBars in a single JFrame
or what is the concept behind floating toolBars.If anybody can help me ,Thisis very urgentIf you insist on multiple toolbars, use the following code:
JToolBar tb1 = new JToolBar();
//add stuff
JToolBar tb2 = new JToolBar();
//add stuff
//put the toolbars on the top of the window
JPanel toolbars = new JPanel(new BorderLayout());
toolbars.add(tb1, BorderLayout.NORTH);
toolbars.add(tb2, BorderLayout.CENTER);
getContentPane().add(toolbars, BorderLayout.NORTH);Stephen -
How to add multiple databases for a single frontend
We have a project based on distributed databases and we have to workout on .Net framework.I want to know some information of connecting multiple databases for a single frontend and how can we access them.
If so we have connected 2 databases for a single frontend in future if I want add one more database to it how it will be possible to do it without disturbing the current connectivity.
Please help me in resolving this problem.
Thanks......hi,
what do you mean by connecting 2 databases? can you explain further?
using entityframework you can connect to different databases
public class CustomerContext : DbContext
public ReportContext()
: base("DefaultConnection")
public DbSet<Customers> Customers { get; set; }
and your connectionstring (config file)
<connectionStrings>
<add name="DefaultConnection" connectionString="Data Source=(LocalDB)\v11.0;AttachDbFilename=D:\\Database\Project.mdf;Integrated Security=True" providerName="System.Data.SqlClient" />
</connectionStrings>
you can add more connection strings on it.
https://msdn.microsoft.com/en-us/library/vstudio/cc716756(v=vs.100).aspx
https://msdn.microsoft.com/en-us/library/ms254978(v=vs.110).aspx
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
FW CS3 - how to export multiple panel headers?
Hi,
I have typical web diesign issue but it seems that it is
difficult or even
imposible to achieve with FW CS3. Maybe somebody can help me.
I have to create 2 sets of headers (title + background) for 2
graphic
panels. First set of headers (for first panel) cosist of 6
variants. Second
set contains only 2 variants. It is important to keep
position of both
groups of headers becouse background underneath them is
different and
headers are semi-transparent. Each of variant of headers is
kept on separate
frame. In this case, if 6 frames is created then 6*2=12 files
will be
exported but I need only 8. Of course I could remove
unexpected files by
hand but real project is large and number of unexpected files
is about
100!!! It is almost impossible to keep in mind what files
should be
removed.
Is any way to create as many files as I need?
Regards,
MarekHi Marek:
As I said in solution one, you must create a WEB sub layer.
You cannot
share a main web layer to other pages, but you can share a
web sub layer
to other pages. Select the web layer on a page and then
create a new
sublayer OF the web layer. Then choose Share Layer to Pages
from the
Layer options menu. Add your slices to that web sub layer.
Then the one
set of slices become common to all pages you choose to share
the web sub
layer with.
If you need different slice dimensions on each page, that
won't work,
and you will have to have independent slices on each page, as
you
probably do now.
As for the other risk, well, you will just have to be careful
of what
you do. Sounds a bit trite, I know, but that's all I can
think of, other
than using a new folder for those exports.
If you do accidentally export to many graphics, yuo can
always sort by
time and delete them, then re export and ensure the proper
options are
selected or deselected.
Marek wrote:
>> 1) you want to resize a slice across multiple pages
>
> Not necessarily - generarlly I would like to have access
to slice editing.
> It is hard to fit slices across pages because I can't
show on one page
> posiotion of slices placed on another one (excluding
master page slices
> which are unusefull because produces files on each page
- even on those
> which don't contain graphics for use on web page).
>
>> 2) You want to have a different number of
frames/states for certain slices
>> on different pages.
>
> The only thing I would like to achieve is to have
possibility of creation of
> unpredictable number of panel headers (customers can
request more headers in
> later time). I can't use separate slices for each
version of panel header
> because all headers looks good only particular place in
graphic design. Note
> that I want to avoid producing unusefull files which
would be generated when
> frames are used.
>
>> Solution for # 1: Put your slices on a web SUB LAYER
and share that layer
>> across the pages you want to have common slicing
for. This layer only
>> needs to be created once. Then, when you resize the
slice, it will resize
>> on all pages sharing the web sublayer.
>
> It could be solution but I can't see any option allowing
to share or not
> sublayer. Do you mean to use master page to share
slice(s) among pages?
>
>> Solution for # 2: Add your frames/states to the
pages you need them.
>> Select a slice and right-click on the slice. Choose
Export Selected Slice.
>> Deselect Current Frame only (and possibly Current
page)in the export menu.
>> Export your slices.
>
> Hmmm... this is also solution but very risky. Notice
that state of option
> "current frame only" is not remembered and I'm afraid
that one careless
> export can produce hundreds of files hard to select and
remove, especially
> when destination folder contains many other files.
>
>> This works fine in CS4 and CS3 with one notable
exception; in both
>> applications, the original slice name is ignored,
and Fireworks exports
>> the frames/states based on the page name.
>>
>> Example:
>>
>> original slice name: panel_top
>> final graphic name(s): page 1.gif, page 1_f2.gif,
page 1_f3.gif etc . ..
>>
>> I have not had time yet to try out exporting
multiple selected slices to
>> see what happens to the file names. Will try to make
time to do that
>> tonight.
>
> No no ... it works fine. The slice names are used.
>
>
Jim Babbage - .:Community MX:. & .:Adobe Community
Expert:.
http://www.communityMX.com/
CommunityMX - Free Resources:
http://www.communitymx.com/free.cfm
.:Adobe Community Expert for Fireworks:.
Adobe Community Expert
http://tinyurl.com/2a7dyp
.:Author:.
Lynda.com -
http://movielibrary.lynda.com/authors/author/?aid=188
Peachpit Press -
http://www.peachpit.com/authors/bio.aspx?a=d98ed798-5ef0-45a8-a70d-4b35fa14c9a4
Layers Magazine -
http://www.layersmagazine.com/author/jim-babbage -
How to add multiple users on a single phone
Hello
I'm having trouble finding documentation on how I might add a second person on a phone. In other words, how do I get multiple extentions to go to different lines on the same phone? I'm using a UC 560.
Many thanks.Hi Monte,
You can achieve this by assigning a secondary extension to another button, but this might not be what you want, so if you can elaborate a little further as to what you want exactly I can help you with putting together a solution
Cheers,
David Trad.
**When you rate a persons post, you are indicating a thank you or that it helped, but at the same time you are also helping to maintain the community spirit - You don't have to rate posts and you wont be looked down upon :) ** -
How to add multiple groups in a single user in ldap
I have problem with ldap ,Please clarify the following problem.
My request is --> send the multiple groups at a time with single user.
My code contain single user and single group is working.
Please see the source file ,please solve my problem. i tried , but i did not get.
package com.ldap;
import java.util.Hashtable;
import javax.naming.AuthenticationException;
import javax.naming.Context;
import javax.naming.NameAlreadyBoundException;
import javax.naming.NamingException;
import javax.naming.directory.Attribute;
import javax.naming.directory.Attributes;
import javax.naming.directory.BasicAttribute;
import javax.naming.directory.BasicAttributes;
import javax.naming.directory.DirContext;
import javax.naming.directory.InitialDirContext;
* This class provides methods for the user management
* @author sudhakar
public class LdapUserMgr {
public final static String USER_ID = "uid";
public final static String COMMONNAME = "cn";
public final static String SURNAME = "sn";
public final static String MEMBEROF = "wlsMemberOf";
public final static String MEMBEROF1 = "wlsMemberOf";
public final static String PASSWORD = "userpassword";
public final static String EMAIL = "mail";
* This method creates new user in the embedded ldap registry
* @return
* @throws Exception
public void createUser() throws Exception {
DirContext ctx = getLDAPConnection();
String userId="sudhakar";
String userName="sudhakar";
String userRole="Assessor";
String password="sudhakar123";
String email="[email protected]";
try{
Attributes attrNew = new BasicAttributes(true);
Attribute objclass = new BasicAttribute("objectclass");
String group = "ou=groups,ou=myrealm,dc=sudhakar_domain";
String people = "ou=people,ou=myrealm,dc=sudhakar_domain";
// add all the object classes required for the user profile
objclass.add("top");
objclass.add("person");
objclass.add("organizationalPerson");
objclass.add("inetOrgPerson");
objclass.add("wlsUser");
// put all the attributes required as part of the user profile
// add object classes
attrNew.put(objclass);
// add user Id
attrNew.put(USER_ID, userId);
// add user common name
attrNew.put(COMMONNAME, userName);
// add user surname
attrNew.put(SURNAME, userName);
// prepare the group path for the user
String role = COMMONNAME + "=" + userRole + "," + group;
// add user to a group
attrNew.put(MEMBEROF,role);
System.out.println("user role is "+role);
// i want to pass multiple user roles at a time
// add user password
attrNew.put(PASSWORD, password);
// add user mail Id
attrNew.put(EMAIL, email);
// Prepare the query string to add the user to the embedded ldap
String query = USER_ID + "=" + userId+ "," + people;
System.out.println("user query is "+query);
// add the user to the LDAP directory
ctx.createSubcontext( query, attrNew );
System.out.println("user" + userId+ "created");
catch ( NameAlreadyBoundException nabe ){
System.out.println(nabe.getMessage());
throw new NameAlreadyBoundException("User by this name already exits");
catch (NamingException namEx) {
System.out.println(namEx.getMessage());
catch(Exception ex){
System.out.println(ex.getMessage());
finally{
closeLDAPConnection(ctx);
public DirContext getLDAPConnection() throws Exception{
DirContext ctx = null;
try{
Hashtable<String,String> env = new Hashtable<String,String>();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, "ldap://192.168.100.84:7030/");
env.put(Context.SECURITY_AUTHENTICATION, "simple");
env.put(Context.SECURITY_PRINCIPAL, "cn=Admin");
env.put(Context.SECURITY_CREDENTIALS,"admin");
// Create the initial directory context
ctx = new InitialDirContext(env);
return ctx;
catch (AuthenticationException authEx){
System.out.println(authEx.getMessage());
throw new AuthenticationException("Authentication failed");
catch (NamingException namEx) {
System.out.println(namEx.getMessage());
throw new NamingException("Naming Exception");
catch(Exception ex){
System.out.println(ex.getMessage());
throw new Exception("Exception Occured");
* This method closes the LDAP connection
* @param ctx
public void closeLDAPConnection(DirContext ctx){
try{
ctx.close();
catch(NamingException nex){
System.out.println(nex.getMessage());
catch(Exception ex){
System.out.println(ex.getMessage());
public static void main(String s[])throws Exception{
LdapUserMgr ldapUserMgr = new LdapUserMgr();
ldapUserMgr.createUser();
Edited by: sudhakar_kavuru on Jun 16, 2009 1:58 AMHi Sudhakar,
try some thing like this.Here I have enclosed the code snippet.
String query = USER_ID + "=" + user.getUserId()+ "," + people;
// add the user to the LDAP directory
// ctx.createSubcontext( query, attrNew );
Attribute att1 = new BasicAttribute(MEMBEROF);
String roleName=user.getUserRoleList().get(0);
String role1 = COMMONNAME + "="+roleName+"," + group;
att1.add(role1);
attrNew.put(att1);
DirContext dirContext =ctx.createSubcontext( query, attrNew );
for (int i = 1; i < user.getUserRoleList().size(); i++) {
Attributes att2 = new BasicAttributes();
String roleNameStr=user.getUserRoleList().get(i);
log.debug("roleNameStr--->"+roleNameStr);
String role2 = COMMONNAME + "="+roleNameStr+"," + group;
log.debug("role2-->"+role2);
att2.put(MEMBEROF,role2);
dirContext.modifyAttributes("", DirContext.ADD_ATTRIBUTE, att2);
} -
How to add muliple panels to a single frame?
How can i place my diff panels on a same frame at same location/place?
what i need is on double clicking on each leaf node of my tree.. i need corresponding panel on frame.
the problem is can place each panel in diff place(ie east/west/north/south in BorderLayout)
but i cannot place 2 panels in same place.thanks got correct..
-
How to add multiple users to a role in ECC 6.0
How to add multiple users (say 1000) to a role in ECC 6.0?
Hi
You can actually add multiple users to a role using transaction SU01. From SU01, use the menu Environment->Mass Changes.
Here you can manually add the users, select them by address or authorisation data. Once you have your user list, you can then add or remove roles and/or profiles.
Secondly , You can use SU10 to do mass changes to multiple users including role assignments per logical systems
Also check the following link:
http://www.sap-img.com/bc021.htm
I hope this should do it
regards
Chen -
How to add multiple table when creating add on using b1de
Hi all,
Plz help me
How to add multiple table when creating add on using b1de.
ThanksHi dns_sap,
Can you explain a little better what you are trying to accomplish? Is it to create UserTables and UserFields in the database, when the addon runs the first time?
If so, you can use the following code
Add User Table
Try
Dim lRetCode As Long
Dim oUDT As SAPbobsCOM.UserTablesMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
oUDT.TableName = TableName
oUDT.TableDescription = TableDescription
oUDT.TableType = TableType
lRetCode = oUDT.Add
'// Check for error when adding the Table: if lRetCode = 0 the table was created; if lRetCode = -2035 the table already exisits
If lRetCode <> 0 Then
oApplication.MessageBox("Error: " & lRetCode.ToString & ", " & oCompany.GetLastErrorDescription)
End If
Catch ex As Exception
oApplication.MessageBox(oCompany.GetLastErrorDescription)
Finally
System.Runtime.InteropServices.Marshal.ReleaseComObject(oUDT)
oUDT = Nothing
lRetCode = Nothing
GC.Collect()
End Try
Add User Field
Try
Dim lRetCode As Long
Dim oUDF As SAPbobsCOM.UserFieldsMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
oUDF.TableName = TableName
oUDF.Name = FieldName
oUDF.Description = FieldDescription
oUDF.Type = FieldType
lRetCode = oUDF.Add
'// Check for error when adding the field: if lRetCode = 0 the field was created; if lRetCode = -2035, the field already exists
If lRetCode <> 0 Then
oApplication.MessageBox("Error: " & oCompany.GetLastErrorCode & ", " & oCompany.GetLastErrorDescription)
End If
Catch ex As Exception
oApplication.MessageBox(oCompany.GetLastErrorDescription)
Finally
System.Runtime.InteropServices.Marshal.ReleaseComObject(oUDF)
oUDF = Nothing
lRetCode = Nothing
GC.Collect()
End Try
Regards,
Vítor Vieira -
How to add multiple namespaces in XSD ?
Can anyone tell me how to add multiple namespaces inside an XSD. Or how to import XSD into another XSD ??
Thanks<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://xml.ibridge.nl/nl/rsg/domein/3/company" xmlns:alg="http://mynamespace/generic" targetNamespace="http://xml.ibridge.nl/nl/rsg/domein/3/company" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.1">
<xs:import namespace="http://mynamespace/generic" schemaLocation="algemeen.xsd"/>
you define xmlns:alg with a namespace
and after that use the namespace itself to import a xsd for it -
How to add multiple columns?
Using designer API, how to add multiple columns to the repository tables? I want to add number of columns at a time instead of adding column by column.
Thanks in advance.Can you use sqlplus?
ALTER TABLE table_name ADD (column_name data_type), (Column_name datatype),...
Check the SQL Reference 11-9.
Hope this helps.
Bill Swanson -
How to add multiple button/choices in button choice
HI all ,
How to add multiple button/choices in button choice ?Initialize a cluster array (CrsrList type) with as many cursors as you think you would ever need. Setup your cursors dynamically, then delete the unused cursors (array elements) and then update your CursorList property.
Message Edited by vt92 on 03-20-2009 04:04 PM
"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
Attachments:
cursors.PNG 5 KB -
How to add multiple images in jinternalframe
Hi all,
how to add multiple images to the jinternalframe, at specified location of the pane and resizing the images with specified height and width.
code examples are highly appreciated.
Thanks & Regards,
AbelThanks, it works perfectly. It's a really smart way of fixing the problem too :)
I also found your toggle button icon classes which is something I've also had a problem with.
Thanks. -
How to add multiple audio transitions
I know how to add multiple video transitions to a whole series of clips, but I want to add a cross fade to every audio clip in the sequence....how can I do this if at all, or is it not possible? Thanks
I'm suspecting that you don't have the destination tabs set correctly when you drag the audio clips to the canvas overlays.
Destination & Source tabs are the tabs located at the left side of the timeline. When you want to add audio cross fades to your audio clips, do the following:
1. Set the played at the beginning of the sequence.
2. Click the video source tab to disconnect it from the video track.
3. Verify that the audio source tabs are connected to the audio tracks that you want the audio edited to.
4. Select your audio clips.
5. Drag the selected audio clips to the Overwrite with Transition overlay in the canvas.
Maybe you are looking for
-
In EBS document not get auto clear Algorithms 11
In Electronic bank statment document not get clear automatically while batch run. I update check no to payment document. even though it is not get auto clear. in OT51 assign Interpretation Algorithms 11 011:(Outgoing check: Check number not identi
-
Issue after Oracle database patch upgrade 10.2.0.4
Hello, After database patch application 10.2.0.4, we are getting error in starting database from 'startsap' script from sidadm user. We are getting this error in all the systems. FYI...Once Oracle start explicitly, then there is no problem for starti
-
Hi, I have changed the plant address in SPRO. This has updation in T001W & ADRC But still while creating PO, Old address is being displayed in Delivery address Tab. Checked the Table T001W, took the Address number ADRNR. When I give the address numbe
-
i've had my 160 for a little over a year now and i just started having problems w/ it. it will randomly skip to the next song after only playing 10 sec of a song. when i connect it to my itunes it won't synch. it will start but after a minute or so e
-
How do I view .gif files?
I used to be able to view .gif files just fine on my ipad 3, but now whenever I try to view one, it asks me which program I want to open the file with (Evernote, Dropbox, or GroupMe). Anyone know how to fix this? They used to just automatically load