I'm attempting to add a box (for design purposes) around the threadlist but for whatever reason, it seems to be closing early and I cant for the life of me figure out whats causing it.
http://fantasy-bomb.com/forumdisplay.php?2-Fantasy-Football-Talk
(The theme to use is "Testing")
Its very ugly atm, notice the black rectangle that slightly hides behind the "title/threadstarter" text... It should be covering the entire threadlist and viewing it in firebug shows everything closed properply. I'm at a loss for why its happening.
Related
I would like to write a very simple text editor with a custom widget for drawing the text. I use GTK3. So far, I've come up with something like this:
Window -> Vertical Box -> Scrolled Window -> Drawing Area
The scrolled window fits the main window, as it is inside a vertical box. Depending on the size of the drawing area, the scrolled window shows the scroll bar. So far so good.
Now, there are several things I don't understand:
When the text doesn't fit the drawing area, how do I go about resizing the drawing area?
What is the best way of approaching the resizing when the text changes? One way I can think of is to simply handle key presses and count lines, but that doesn't seem right and probably won't work when lines wrap.
What events do I have to handle (and possibly propagate) for this to work?
I've tried searching the GTK docs, but they are very unhelpful in this regard. gtk3-demo doesn't really help, too. I know that there is https://developer.gnome.org/gtk3/stable/ch01s05.html, which describes the custom drawing a bit, but doesn't solve what I'm trying to do.
Update:
I figured out a lot by reading gedit, gtksourceview and gtk sources, which I wanted to avoid, but there seems to be no way around it.
I am making a form in ms-Access and needed buttons. A problem I am sure lots of you got is the flickering of certain button when going over them. I have searched around and found the same problem multiple time and never found the right answer.
People suggested things like changing labels to disabled textbox but it didn't work. I also tested it without anything else but buttons and it still does it. One of the first suggestion i actually found was disabling the theme, but still nothing. The latest tested suggestion was a pop-up window of the form and it still fail to fix the problem.
If you want to test it, just create a blank form and but multiple button. To see the effect more clearly, disable them all. Then go over them with your mouse multiple time and you'll eventually see the visual-glitch.
Is there reasons why those glitch happen? It seems to have been there for around 10 years. If you got a workaround, i would really appreciate it.
On opening a standard VCL form from our application, several controls are moved or resized slightly. e.g. a few pixels shorter or a few pixels to the left. Saving the form obviously commits these changes. Anyone know what causes this and how I can stop it?
Our application was developed in Delphi 7 and I think this issue has started since we recently moved it to XE7. Having made various code changes to various forms we've started noticing that controls had moved/sized a bit and thought they were mistakes. But today I've noticed that it happens when the form is opened. The form was previously saved in XE7 (it's not just the first open of a D7 form).
The controls seem to be mostly losing a couple of pixels off the Height, Width or Left property. I've not seen any of these values increasing, only decreasing. Not all controls on the form, just a few. The problem isn't limited to a single form. The Form.Scaled property is false.
Is something getting rounded/recalculated? There are 2 developers working on the application - could a problem be caused by developing on different resolutions or something?
Thanks a lot for any ideas =)
EDIT! Viewing a diff of the changes that were applied, I think poss all of the controls adjusted have non-default anchor settings. e.g. a button moved 2 pixels left is anchored [akTop, akRight]. It's on a panel that is anchored [akLeft, akTop]. Another control that lost 2 pixels from Width and Height is anchored [akLeft, akTop, akRight, akBottom]. I have just reverted the changes, changed the anchoring by editing the dfm and opened the form again: The control that moved previously didn't move. I'm certain it is related to anchoring.
EDIT2! Easy to repeat! It is related to the anchor of the control and the BorderStyle of it's parent control (TPanel). Add a form with a TPanel and add a TLabel within the panel. Set the TLabel to anchor [akTop, akRight]. Set the TPanel to have no bevel, CTRL3d=False, BorderStyle=bsSingle and BorderWidth=1. Note the Left property of the TLabel. Save the form. Open it again. Look at the TLabel's Left property. It has moved 2 pixels left. Keep on opening, saving and closing the form and watch the label move from right to left. Here's a pic of my example form
I have a very busy GUI - lots of textboxes - the end result needs to be 21 columns with 24 text boxes in each column (1 text box for each hour of the day) I am over half way there.
I am getting frustrated with things moving on me as I add a text box or as I adjusted an existing box or title or label.
Is there a way to "lock down" things once I am happy with the look so that I know they can't move and then continue adding pieces?
Is there something I am missing with this problem. I am using (right-click) same size and align (left to column) functions to help. These help some. But I still run into the magic text box that when dropped in things move all around on me.
I am using NetBeans 7.3.1
Thanks
I have had similar problems and issues.
Two suggestions: 1) I have found that if I skip the order I place the textboxes helps with things moving. Meaning - if I had a column of boxes, i would place every other one then go back and fill in. It seemed to behave.
2) you might check into using the swing layout - check the Oracle site.
good luck
While wanting modalPopupExtender to show from code-behind, everything works well except
the opacity and alpha(filter) properties of the CSS are not applied meaning i get a modal popup with the color i set in my BackgroundCSSClass and hence cannot see my original controls in the background.
anyone facing this weird behavior and have a solution for this?
B.t.w, Everything works well when the TargetControlID is not hidden.
I battled this same issue for most of the day today. I have 3 pages with this identical code in them. two of the pages worked as expected, with transparent background, one did not. In that one, the background was always 100% opaque.
Finally, I realised i had accidentally deleted the < !DOCTYPE html > line in that page. Adding that one line back into the page fixed the problem instantly. Simple. and a little unexpected. HTH