resize

Cannot reduce size of gtk window programatically

混江龙づ霸主 提交于 2020-01-30 10:47:40
问题 I seem to be facing a problem when resizing a gtk window programatically. The problem is that once I have increased the width and height of the window to 800x600, I cannot seem to reduce it back to its original size of 400x200. Below is the sample code. Has anyone faced such a problem? #include <gtk/gtk.h> static gboolean is_clicked = FALSE; static void Child_window_resize( GtkWidget *widget, GtkWidget *window) { if(!is_clicked) { g_print("Inside If block increase bool value %d\n",is_clicked)

Change width of scrollbars

大兔子大兔子 提交于 2020-01-28 02:12:17
问题 I am working on a program for touchscreens. I am using c# and Visual studio 2008. Is there any way to change the width of the scrollbars? I know that i can change in Display Properties of Windows. But i only want in my programm not in the complete system. Thanks for ya help! 回答1: Check this out: Winforms - Adjust width of vertical scrollbar on CheckedListBox Worth mentioning too: .NET Compact framework - make scrollbars wider More of the same, but this time with a better solution through the

Text resize according to button/label size

可紊 提交于 2020-01-25 08:43:11
问题 Apologies in advance if I'm not using the correct words/names/terminologies. I'm using Swing on NetBeans to create my gui. I was able to make all the buttons and labels stretch/shrink according to the window size thanks to layouts. However the text size of the buttons/labels don't change at all. How do I make the text size scale according to the buttons/labels size? PS: I haven't written any code so far. It was all made with that JFrame design thingy from NetBeans . 回答1: There's no easy way

Why size of controls are wrong before resize? [WPF]

[亡魂溺海] 提交于 2020-01-25 04:14:46
问题 Current custom window(base) is: <Window x:Class="Views.DialogWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:Views" xmlns:dialog="clr-namespace:ViewModels" mc:Ignorable="d" Title="DialogWindow" Height="450" Width="800" WindowStartupLocation="CenterScreen"

How to resize an image by adding extra pixels using matlab

a 夏天 提交于 2020-01-25 03:56:54
问题 I would like to resize a 512X512 image into 363X762 image which will be larger than the original image(of size 512X512). Those extra pixel values must be different values in the range of 0-255. I tried the following code: I=imread('photo.jpg'); %photo.jpg is a 512X512 image B=zeros(363,726); sizeOfMatrixB=size(B); display(sizeOfMatrixB); B(1:262144)=I(1:262144); imshow(B); B(262155:263538)=0; But I think this is a lengthy one and the output is also not as desired. Could anyone suggest me with

ImageView changes frame/bounds

耗尽温柔 提交于 2020-01-25 03:05:35
问题 I have been trying to find this issue here, but no topic seems to fit... I have a UINavigationController that pushes different kinds of UIViews containing images. When the controller pushes a new view, it the navigation bar is moved onto the screen and it appears that the image subsequently is being 'squelched' a bit - or it 'moves in from top' (I hope I described this sufficiently). Anyway, my image has the frame of 320x460 (because of the top bar). I couldnt find a proper setting, where the

ImageView changes frame/bounds

大兔子大兔子 提交于 2020-01-25 03:05:07
问题 I have been trying to find this issue here, but no topic seems to fit... I have a UINavigationController that pushes different kinds of UIViews containing images. When the controller pushes a new view, it the navigation bar is moved onto the screen and it appears that the image subsequently is being 'squelched' a bit - or it 'moves in from top' (I hope I described this sufficiently). Anyway, my image has the frame of 320x460 (because of the top bar). I couldnt find a proper setting, where the

SVG Fill Width to Child Elements

拈花ヽ惹草 提交于 2020-01-24 14:08:11
问题 I'd like my container SVG element to scale in order to fit its child group elements or for it to present scrollbars on overflow. I was wondering if there was a css property in order to do so. E.g. If the markup looks like the following: <div class="wrapper" style="width:500px; overflow-x:scroll;"> <svg class="main"> <g width="1000"></g> </svg> </div> How might I get the svg's width to fill to '1000' or present scrollbars if child elements exceed its width? The following css has no effect on

SVG Fill Width to Child Elements

一世执手 提交于 2020-01-24 14:06:07
问题 I'd like my container SVG element to scale in order to fit its child group elements or for it to present scrollbars on overflow. I was wondering if there was a css property in order to do so. E.g. If the markup looks like the following: <div class="wrapper" style="width:500px; overflow-x:scroll;"> <svg class="main"> <g width="1000"></g> </svg> </div> How might I get the svg's width to fill to '1000' or present scrollbars if child elements exceed its width? The following css has no effect on

How to auto adjust R figure axis labels to matrix size?

夙愿已清 提交于 2020-01-23 12:23:30
问题 I want to make the fontsize of the y-axis labels adjustable to the input data size on the y-axis like in Fig. 3, in contrast to the current situation in Fig. 1-2 where labels are not next to the corresponding lines. Code library("corrgram") # https://stackoverflow.com/a/40387233/54964 ids <- seq(1,18) x_at <- seq(0.075, 0.925, length.out = length(ids)) y_at <- seq(0.075, 0.91, length.out = length(ids)) createLabels <- function(xlab, ylab, x_labels, y_labels){ ids <- y_labels # assume here x