element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Autodesk EAGLE
  • Products
  • More
Autodesk EAGLE
EAGLE Support (Deutsch) Dialog Darstellungsprobleme
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Autodesk EAGLE to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 5 replies
  • Subscribers 180 subscribers
  • Views 530 views
  • Users 0 members are here
Related

Dialog Darstellungsprobleme

shangxi
shangxi over 12 years ago

Hallo!

 

Ich bringe es nicht hin, dass der Dialog so aussieht wie ich es will, d.h. 

dass ich nicht jedes Mal die Größe anpassen muss.

Geht das nicht oder habe ich einen Fehler im Code?

 

Anbei soll- und ist- screenshot...

 

Hier der Code:

 

void EditDatabaseEntry() {

 

     //PartPackage, PartHeadline, PartDescription, PackageDescription, 

PartFullDescription

     // sort(NumParts, Index, PartKey, PartValue, PartDevice, PartName, 

PartAttributes);

     if (Selected) {

 

         int zeilennr = zeile[Selected]; // index of selected unsorted 

array, e.g. for PackageDescription

         string Header[];

         string Data[];

         int Fields = strsplit(Header, Lines[0], DatabaseSeparator);

         strsplit(Data, Lines[Selected], DatabaseSeparator);

         int result = dlgDialog("Edit Component") {

             dlgGridLayout {

                 dlgCell(0, 0) {

                     dlgGridLayout {

                         for (int f = 0; f < Fields; f++) {

                             dlgCell(f, 0) dlgLabel(Header[f]);

                             dlgCell(f, 1) if (f) { dlgStringEdit(Data[f]); 

} else { dlgLabel(Data[f]); };

                         }

                     }

                 }

                 dlgCell(0, 1) {

                     dlgGridLayout {

                         dlgCell(0, 2) dlgLabel("Package Description");

                         dlgCell(1, 2) 

dlgTextView(PackageDescription[zeilennr]);

                         dlgCell(2, 2) dlgLabel("Device Description ");

                         dlgCell(3, 2) 

dlgTextView(PartFullDescription[zeilennr]);

                     }

                 }

             }

             dlgHBoxLayout {

                 dlgStretch(1);

                 dlgPushButton("+OK") dlgAccept();

                 dlgPushButton("-Cancel") dlgReject();

             }

         };

         if (result) {

             for (int f = 0; f < Fields; f++)

                 Data[f] = StripWhiteSpace(Data[f]);

             Lines[Selected] = strjoin(Data, DatabaseSeparator);

             DatabaseModified = 1;

         }

     }

     else

         dlgMessageBox("Please select a list entry first!");

}

 

Danke,

Zoran

Attachments:
image
image
  • Sign in to reply
  • Cancel
  • shangxi
    shangxi over 12 years ago

    Hallo!

     

    Hat jemand eine Idee?

     

    Am 17.09.2013, 14:51 Uhr, schrieb Zoran Stojkovic

    <z.stojkovic@embed-it.com>:

     

    Hallo!

     

    Ich bringe es nicht hin, dass der Dialog so aussieht wie ich es will, 

    d.h.

    dass ich nicht jedes Mal die Größe anpassen muss.

    Geht das nicht oder habe ich einen Fehler im Code?

     

    Anbei soll- und ist- screenshot...

     

    Hier der Code:

     

    void EditDatabaseEntry() {

     

         //PartPackage, PartHeadline, PartDescription, PackageDescription,

    PartFullDescription

         // sort(NumParts, Index, PartKey, PartValue, PartDevice, PartName,

    PartAttributes);

         if (Selected) {

     

             int zeilennr = zeile[Selected]; // index of selected unsorted

    array, e.g. for PackageDescription

             string Header[];

             string Data[];

             int Fields = strsplit(Header, Lines[0], DatabaseSeparator);

             strsplit(Data, Lines[Selected], DatabaseSeparator);

             int result = dlgDialog("Edit Component") {

                 dlgGridLayout {

                     dlgCell(0, 0) {

                         dlgGridLayout {

                             for (int f = 0; f < Fields; f++) {

                                 dlgCell(f, 0) dlgLabel(Header[f]);

                                 dlgCell(f, 1) if (f) { 

    dlgStringEdit(Data[f]);

    } else { dlgLabel(Data[f]); };

                             }

                         }

                     }

                     dlgCell(0, 1) {

                         dlgGridLayout {

                             dlgCell(0, 2) dlgLabel("Package Description");

                             dlgCell(1, 2)

    dlgTextView(PackageDescription[zeilennr]);

                             dlgCell(2, 2) dlgLabel("Device Description ");

                             dlgCell(3, 2)

    dlgTextView(PartFullDescription[zeilennr]);

                         }

                     }

                 }

                 dlgHBoxLayout {

                     dlgStretch(1);

                     dlgPushButton("+OK") dlgAccept();

                     dlgPushButton("-Cancel") dlgReject();

                 }

             };

             if (result) {

                 for (int f = 0; f < Fields; f++)

                     Data[f] = StripWhiteSpace(Data[f]);

                 Lines[Selected] = strjoin(Data, DatabaseSeparator);

                 DatabaseModified = 1;

             }

         }

         else

             dlgMessageBox("Please select a list entry first!");

    }

     

    Danke,

    Zoran

     

     

    --

    Erstellt mit Operas E-Mail-Modul: http://www.opera.com/mail/

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • autodeskguest
    autodeskguest over 12 years ago in reply to shangxi

    Zoran Stojkovic wrote:

    Hat jemand eine Idee?

     

    Am 17.09.2013, 14:51 Uhr, schrieb Zoran Stojkovic

    <z.stojkovic@embed-it.com>:

     

    Hallo!

     

    Ich bringe es nicht hin, dass der Dialog so aussieht wie ich es will, 

    d.h.

    dass ich nicht jedes Mal die Größe anpassen muss.

    Geht das nicht oder habe ich einen Fehler im Code?

     

    schau mal nach dlgSpacing und/oder dlgStretch

    --

     

    Lorenz

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • shangxi
    shangxi over 12 years ago in reply to autodeskguest

    Am 10.10.2013, 13:16 Uhr, schrieb Lorenz <lorenznl@yahoo.com>:

     

    Zoran Stojkovic wrote:

    Hat jemand eine Idee?

     

    Am 17.09.2013, 14:51 Uhr, schrieb Zoran Stojkovic

    <z.stojkovic@embed-it.com>:

     

    Hallo!

     

    Ich bringe es nicht hin, dass der Dialog so aussieht wie ich es will,

    d.h.

    dass ich nicht jedes Mal die Größe anpassen muss.

    Geht das nicht oder habe ich einen Fehler im Code?

     

    schau mal nach dlgSpacing und/oder dlgStretch

     

    Hallo!

    Habe alle möglichen Varianten probiert, aber leider ohne Erfolg.

    Das erste Feld ist immer zu groß.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to shangxi

    Am 11.10.2013 14:26, schrieb Zoran Stojkovic:

    Am 10.10.2013, 13:16 Uhr, schrieb Lorenz <lorenznl@yahoo.com>:

     

    Zoran Stojkovic wrote:

    Hat jemand eine Idee?

     

    Am 17.09.2013, 14:51 Uhr, schrieb Zoran Stojkovic

    <z.stojkovic@embed-it.com>:

     

    Hallo!

     

    Ich bringe es nicht hin, dass der Dialog so aussieht wie ich es will,

    d.h.

    dass ich nicht jedes Mal die Größe anpassen muss.

    Geht das nicht oder habe ich einen Fehler im Code?

     

    schau mal nach dlgSpacing und/oder dlgStretch

     

    Hallo!

    Habe alle möglichen Varianten probiert, aber leider ohne Erfolg.

    Das erste Feld ist immer zu groß.

     

    Senden Sie mir doch mal das ULP.

     

     

    ***

    Um das Original zu lesen, und auch zuverlässig angehängte Dateien

    bereitstellen zu können, benutzen Sie news.cadsoft.de und einen

    funktionierenden News-Reader wie Thunderbird!

    ***

     

    Mit freundlichen Grüßen / Best regards

     

    Alfred Zaffran

    --

    ______________________________________________________________

    Alfred Zaffran              Support

    CadSoft Computer GmbH       Hotline:   08635-698930

    Pleidolfweg 15              FAX:       08635-698940

    84568 Pleiskirchen          eMail: <alf@cadsoft.de>

                                 Web:   <www.cadsoft.de>

    Registergericht: Amtsgericht Traunstein HRB 5573

    Geschäftsführer: Thomas Liratsch

    ______________________________________________________________

    EAGLE V6.4 availabe now!

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • shangxi
    shangxi over 12 years ago in reply to Former Member

    Am 14.10.2013, 10:42 Uhr, schrieb A. Zaffran <alf@cadsoft.de>:

     

    Am 11.10.2013 14:26, schrieb Zoran Stojkovic:

    Am 10.10.2013, 13:16 Uhr, schrieb Lorenz <lorenznl@yahoo.com>:

     

    Zoran Stojkovic wrote:

    Hat jemand eine Idee?

     

    Am 17.09.2013, 14:51 Uhr, schrieb Zoran Stojkovic

    <z.stojkovic@embed-it.com>:

     

    Hallo!

     

    Ich bringe es nicht hin, dass der Dialog so aussieht wie ich es will,

    d.h.

    dass ich nicht jedes Mal die Größe anpassen muss.

    Geht das nicht oder habe ich einen Fehler im Code?

     

    schau mal nach dlgSpacing und/oder dlgStretch

     

    Hallo!

    Habe alle möglichen Varianten probiert, aber leider ohne Erfolg.

    Das erste Feld ist immer zu groß.

     

    Senden Sie mir doch mal das ULP.

     

     

    ***

    Um das Original zu lesen, und auch zuverlässig angehängte Dateien

    bereitstellen zu können, benutzen Sie news.cadsoft.de und einen

    funktionierenden News-Reader wie Thunderbird!

    ***

     

    Mit freundlichen Grüßen / Best regards

     

    Alfred Zaffran

     

    Hallo!

     

    Anbei die ulp.

    Kann ich be der username und passwortabfrage auch irgendwie einstellen, 

    dass das Fenster

    so breit wird wie der längse Text?

     

    Danke,

    Zoran

    Attachments:
    bom_embedit_xml.ulp.zip
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube