FLTK logo

STR #2738

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | SVN ⇄ GIT ]

STR #2738

Application:FLTK Library
Status:2 - Closed w/o Resolution
Priority:3 - Moderate, e.g. unable to compile the software
Scope:3 - Applies to all machines and operating systems
Subsystem:Core Library
Summary:fltk-3 align anomaly
Version:3.0-feature
Created By:szukw000
Assigned To:matt
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

No files


Trouble Report Comments:


Name/Time/Date Text  
 
#1 szukw000
14:37 Oct 18, 2011
Archive: fltk-3.0.x-r9132

//margin(TOP,RIGHT,BOTTOM,LEFT)
//pixmap(32,32)

The code:
  fltk3::Box *b1 = new fltk3::Box(20,20,40,40);
  b1->align(fltk3::ALIGN_INSIDE | fltk3::ALIGN_LEFT);
  b1->image(pixmap1);
  b1->box(fltk3::FLAT_BOX);
  b1->color(fltk3::RED);

shows a margin(4,5,4,3).

The code:
  fltk3::Box *b1 = new fltk3::Box(20,20,40,40);
  b1->align(fltk3::ALIGN_INSIDE | fltk3::ALIGN_TOP);
  b1->image(pixmap1);
  b1->box(fltk3::FLAT_BOX);
  b1->color(fltk3::RED);

shows a margin(0,4,8,4):

The same holds for ALIGN_BOTTOM: no bottom margin.

ALIGN_LEFT and ALIGN_RIGHT are expected to have a
margin of 0 pixels like ALIGN_TOP and ALIGN_BOTTOM.

winfried

Note: 'Software Version:' offers 1.3-feature and 2.0-feature;
       but not 3.0-feature.
 
 
#2 AlbrechtS
06:37 Nov 27, 2014
Changed "Software Version" to 3.0-feature.  
     

Return to Bugs & Features ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.