FLTK logo

STR #2801

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 #2801

Application:FLTK Library
Status:1 - Closed w/Resolution
Priority:4 - High, e.g. key functionality not working
Scope:3 - Applies to all machines and operating systems
Subsystem:Core Library
Summary:When a widget (buttons with or without a image in this case) is deactivated and then activated again, the widget does not draw the contents as active .
Version:3.0
Created By:Prime_8
Assigned To:manolo
Fix Version:3.0 (SVN: v9317)
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:


Name/Time/Date Filename/Size  
 
#1 Prime_8
15:26 Jan 24, 2012
bitmap.exe
0.6M
 
     

Trouble Report Comments:


Name/Time/Date Text  
 
#1 Prime_8
15:25 Jan 24, 2012
When a widget (buttons with or without a image in this case) is deactivated and then activated again, the widget does not draw the contents as active . ( was in the last few weekly updates i tested for 3.0, fltk-3.0.x-r9232 )

it shows in the stock bitmap.exe , every time you click something that calls deactivate() on a fltk3::Button , its contents will progressively get lighter & never return, activate() only returns the box style .

text and any bitmap will simply fade away .

exe is result of default source code as compiled by MYSY make on W7 64 bit.

( FWIW, i had to #undef JPG lib to get FLTK to compile  )


potential work around , edited the source .

void button_cb(fltk3::Widget *,void *) {
  int i = 0;
  if (leftb->value()) i |= fltk3::ALIGN_LEFT;
  if (rightb->value()) i |= fltk3::ALIGN_RIGHT;
  if (topb->value()) i |= fltk3::ALIGN_TOP;
  if (bottomb->value()) i |= fltk3::ALIGN_BOTTOM;
  if (insideb->value()) i |= fltk3::ALIGN_INSIDE;
  if (overb->value()) i |= fltk3::ALIGN_TEXT_OVER_IMAGE;
  b->align(i);
  if (inactb->value())
  {
      b->deactivate();
      inactb->value(0); // without this  every other button will trigger this effect
      // while inactb is 1 .
  }
  else
  {
      b->activate();
      b->labelcolor(0); // this seems to fix it for black lable , and bitmap
      // not sure if it would work on colord bitmaps , not tested
  }
  w->redraw();
}
 
 
#2 manolo
07:53 Apr 14, 2012
Fixed in Subversion repository.

Can the OP, please, confirm this bug is now fixed?
 
 
#3 Prime_8
04:58 Apr 15, 2012
I will check later . I don't use SVN(s) on this rig, and have reverted my project to an earlier older / FLTK version .

I'll grab and test on my main rig when i next get on it .
 
 
#4 manolo
00:48 Mar 07, 2018
Fixed in Subversion repository.  
     

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'.