Creating Graphical User Interfaces - The MathWorks - #401

/ 520


catalogue search
P. 401
P. 402
P. 403
P. 404
P. 405
P. 406
P. 407
P. 408
P. 409
P. 410
P. 411
P. 412
P. 413
P. 414
P. 415
P. 416
P. 417
P. 418
P. 419
P. 420
P. 421
P. 422
P. 423
P. 424
P. 425
P. 426
P. 427
P. 428
P. 429
P. 430
P. 431
P. 432
P. 433
P. 434
P. 435
P. 436
P. 437
P. 438
P. 439
P. 440
P. 441
P. 442
P. 443
P. 444
P. 445
P. 446
P. 447
P. 448
P. 449
P. 450


See other catalogues for The MathWorks

Text version of the page
Designing for Cross-Platform Compatibility
Using a Specific Font Name
You can specify an actual font name (such as Times or Courier) for the FontName property. However, doing so may cause your GUI to appear differently than you intended when run on a different computer. If the target computer does not have the specified font, it substitutes another font that may not look good in your GUI or may not be the standard font used for GUIs on that system. Also, different versions of the same named font may have different size requirements for a given set of characters.
Standard Background Color
MATLAB software uses the standard system background color of the system on which the GUI is running as the default component background color. This color varies on different computer systems, e.g., the standard shade of gray on the PC differs from that on UNIX® system, and may not match the default GUI background color.
You can make the GUI background color match the default component background color. The following statements retrieve the default component background color and assign it to the figure.
defaultBackground = get(0,'defaultUicontrolBackgroundColor'); set(figurehandle,'Color',defaultBackground)
The figure Color property specifies the figure's background color.
11-63

pageCatalog pdf di En 2012-06-22-01