|
|
Thx Greg.
Yes, win2_accountNoX was an effort to produce an alphanumeric spinner (I couldn't find one in fltk, I guess you could tell me if there is one). It did not display too well as you have noted but this morning I have re-coded that with win2_accountNo->color(0xE1E1E100); win2_accountNo->textcolor(0xE1E1E100);
which hides the the numeric value nicely.
having done that and moved a bit of code around I still have the issue with timing. It seems that without the 1,000,000 step loop it will now display "A" instead of "AAAAA" implying that it is still some sort of timing issue and it's not quite ready to redisplay. ??
Thx for your efforts.
On Friday, October 7, 2022 at 12:23:21 PM UTC+11 er...@seriss.com wrote:
On Friday, October 7, 2022 at
11:57:12 AM UTC+11 roger tunnicliffe wrote:
Thanks
for your effort (not sure your name)
I think you will struggle without the copy files so here
they are..
Yes, mainly I needed the definition of menu_items.
I was able to strip out all the other stuff and just use fake
values.
Since the issue seems to be focused on the "account no"
widget(s)
not displaying properly, I focused on those.
Hmm, it looks like there's two widgets.. a spinner and an output
widget,
but based on their x,y positions.. they're in the same position?
win2_accountNo = new
Fl_Spinner(x+50,y+25,60,20,"Account No...:");
win2_accountNoX = new
Fl_Output(x+50,y+25,46,20);
Widgets really shouldn't overlap unless for sure one is set to
hide()
while the other is set to show(). But I think both are being
shown
at the same time, which would surely lead to drawing problems.
Note that deactivate() and hide() are not the same things;
deactivate() just "grays out" the widget and makes it ignore
events
such as clicks and keyboard input, whereas hide() makes the
widget
not draw at all, and is not involved in event handling at all.
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/82acdc5b-3eb6-4507-afe8-f8fe035cbd58n%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |