How to solve temperamental two list boxes stack each other in the user form? - excel

I make two List Box in a user form.
In the design mode, the smaller List Box is behind the larger one.
There is no code at all in the user form module.
But when I launch the user form, the smaller list box is in front of the larger one,
as seen in the animation below
and follow by another weird thing - when I go back to the VBA editor,
magically the smaller LB is in front of the larger LB which of course when I launch the user form, the result show the same (smaller LB is in front of the larger LB)
And the next thing when I come back again to the VBA editor, now the smaller LB magically is behind the larger LB, as seen in the image above.
Pulling my hair.
Maybe there is an explanation about this behavior from the experts here ?
I've tried bring forward, send backward, bring to front, send to back but still the same result. My Excel is Excel 2010.
Thank you in advanced.

Related

Running .model programs with open AI gym? [duplicate]

I am trying to extract the state space from Amidar in order to hard code an agent for some specific purposes. For example, I want the agent to go down whenever an enemy is 2 cells away or up until they hit a wall then go down again. However, I'm not quite sure how to extract the state space at a specific frame, or in general for that instance, and how to go about interpreting the output.
I have tried env.observation_space but that just returns the frame size (i.e: Box(250,160,3)). Anyone have an idea of how to go about doing this?
Thank you.

Extracting state-space from Atari games at specific frames and hard coding agents?

I am trying to extract the state space from Amidar in order to hard code an agent for some specific purposes. For example, I want the agent to go down whenever an enemy is 2 cells away or up until they hit a wall then go down again. However, I'm not quite sure how to extract the state space at a specific frame, or in general for that instance, and how to go about interpreting the output.
I have tried env.observation_space but that just returns the frame size (i.e: Box(250,160,3)). Anyone have an idea of how to go about doing this?
Thank you.

python3 tkinter: can I get ragged grids without aligned columns?

I'm writing a GUI in python, and using tkinter. I'm having trouble settling on an approach and need guidance.
Background: there's a server (not a webserver) that wants to present a lot of information to users, and let them edit some of it. It needs to send down information that a (relatvely) dumb python client uses to fill the window. Read only fields are Labels. The fields are generally single line Entry widgets, but some are multiline Text. There are some buttons, checkboxes and dropdowns. Asynchronously, the server can also update widgets, add them and remove them. In some cases, there are tables presented, to which the user needs to be able to add and remove rows.
The real problem is, the layout is dense and chaotic. The first row might contain 3 dropdown fields. The next might be 20 short Labels. The next might be a single long Entry field, and then I might want two tables (of different lengths) side by side,and then etc.. Based on user input of external factors, widgets, rows or entire tables might have to be dyamically added, or vanish.
I considered Grid, but it's unusable. A row with a single, long entry widgit in it, makes the first column wide and thereby pushes 12 of the 13 columns in the next row right off the window.
I considered Place, but this app will run on 3 different operating systems and users will be able to select their own fonts, so I'll never get the positions right. If there was some way to ask a widget how big it was, I'd happily use that to compute my own layouts in pixels, but it's apparently impossible to ask the size of a widget until AFTER it's been laid out by a geometry manager, which of course is too late.
So what I think I'm left with is Pack, where each row is its own frame, and some of those rows have tables (grids) in them. But I'm concerned that that means lots and lots of frames to render, and some of the users are on old, slow hardware. Plus... it looks just plain complex.
Am I missing a better way? Grid would be fine if I could convince it to stop trying to make columns line up. Place would be crunchy, but ok, if I could get the size of each widget in advance. Is placing within a lot of frames really the best I have?
Short answer, there's no better way; and the frame count isn't high enough to cause performance problems; so generating a frame per row is what works.

What is the name of the widget or design element that shows where you are in the process of filling out a form?

I am pretty sure it has a name other than a progress bar, which shows very fluidly amount loaded or percent complete. I am not interested in what shows percent complete. I am looking for the name of a thing that shows you, in named steps or page numbers, where you are in filling out a form.
I remember seeing somewhere a line of interlocking arrow-shaped buttons that accomplished this, but the specifics of the graphic representation is not so important to me. I will experiment with various ways to render this. But in order for me to research more,... what is this thing called by web developers?

heavy numerical data entry UI pattern?

Is there any UWP "pattern" or maybe just some tips for a data entry form that is geared towards allowing the user to enter a series of numerical fields quickly/efficiently? We are creating a tablet-only app (so WUP may not have been the best choice, but due to circumstances beyond our control we're committed). There's one form where the user will enter 10-12 numerical values in rapid succession.
Our users will likely use an external keyboard. I'm a newbie, but am inheriting a fairly functional incomplete application to finish. We've been throwing around ideas like a number-pad keyboard which is locked visible somehow and/or maybe tabbing through the controls? Not sure if any of this is possible via UWP. Would appreciate any guidance or reference sites! I'm sure we're not the only ones working this problem...at least I hope not!
TIA!
You could use a TextBox with InputScope set to Number to display a numeric on screen keyboard. If your numbers are of known number of digits - you could automatically switch focus once a proper number of digits is entered. You could also provide +/- buttons if the numbers are small. The NumericUpDown control in WinRT XAML Toolkit has the +/- buttons and can also change values by sliding up/down or left/right on the entry box. Since we're talking about sliding - the platform's Slider control allows you to select values by sliding a slider.

Resources