grid

Windows phone 8 drag and drop grid in grid by user

前提是你 提交于 2019-12-13 02:07:09
问题 I have a app which has a large grid with a stack-panel and stack-viewer. Inside there are multiply grids which go down the page. Is it possible for the user to be able to drag and drop these grids so they are in a different location. They should be able to move the grid up or down a grid or multiply grids. Should there be a button in the top right corner of every grid which when the user holds down they can move that grid up or down in the stackpanel, stackviewer. Thank you for any help :)

Uniform grid collision detection between circles in 2d

守給你的承諾、 提交于 2019-12-13 02:01:44
问题 I am working on a 2d arcade game where I have 5 types of circles with different sizes: The ship, the missiles, and 3 types of monsters. This is what it looks like: Currently I'm using brute force collision detection where I check every missile vs. every monster without taking probability of collision into account. Sadly, this makes the process REALLY slow. This here is my Grid class, but it's incomplete. I'd greatly appreciate your help. public class Grid { int rows; int cols; double

Python: how to create a submatrix discretizing a circle?

喜欢而已 提交于 2019-12-13 01:43:32
问题 In a 2D square grid (matrix) full of zeros , I need to create a submatrix full of ones , with the shape of this submatrix being as close as possible to a circle. I know a circle cannot be precisely represented when you work with cells or pixels, therefore I aim at a discretized circle. The best thing I could come up with was this code, which produces square submatrices (the blue square in the image below): from __future__ import division import numpy import matplotlib.pyplot as plt import

Lua OOP grid class with event

我的未来我决定 提交于 2019-12-13 01:27:24
问题 I'm learning lua and i'm trying the OOP approach. To start, I'm trying to make a grid class, but I think i'm still lacking some knowledge to make it do what I want it to do. This is my code so far: local screen = require( 'data.screen') Grid = {} Grid_mt = { __index = Grid } --- Constructs a new Grid object. function Grid:new( params ) local self = {} local function try( self, event ) print(self.empty) end for i = 1, screen.tilesAcross do if not self[i] then self[i] = {}; end for j = 1,

How to expand row in a grid using rowexpander plugin Extjs 4.1.1

最后都变了- 提交于 2019-12-13 00:35:06
问题 How to expand row in a grid using rowexpander plugin? I am using the following code in my controller 'editbasicinfotitlegrid gridview' : { afterrender:this.expandAll } expandAll: function(){ var titlesGrid = Ext.getCmp('editBasicInfoTitleGrid'); var expander = titlesGrid.getPlugin('myRowExpander'); console.log(titlesGrid.plugins[0]); expander.toggleRow(0); } But this code gives me the following error Uncaught TypeError: Cannot call method 'down' of null 回答1: So I have found its solution.The

CorePlot axisLine and gridLine length too long

断了今生、忘了曾经 提交于 2019-12-13 00:29:53
问题 I'm using CorePlot for my current project and its amazing. The only problem I came across is the length of the axis and grids. I'm only using a positiv coordinate system with labels on the left and bottom side. And my problem is the length of the axis and grids in direction to my labels. I tried to use: axisSet.xAxis.orthogonalCoordinateDecimal = CPTDecimalFromString(@"-value"); axisSet.yAxis.orthogonalCoordinateDecimal = CPTDecimalFromString(@"-value"); or x.labelOffset = value; y

Bootstrap 4 - On screen 3 images in row with 80% height of screen

我们两清 提交于 2019-12-13 00:24:14
问题 I have couple of questions about site, which I'm making with help of Bootstrap 4. I would like to make simple page just using on screen space (no scroll except mobile version) with logo in the upper middle of the page, full width navbar and then 2 rows of 3 full width images, which would be cropped as resolution allows. Here is the sketch. I made some HTML/CSS proposals, but they didn't work properly. Do you have some ideas how to make it? :/ Thanks a lot! <!DOCTYPE html> <html lang ="cs">

What is the best way to create a list from the rows of a grid

与世无争的帅哥 提交于 2019-12-12 22:50:33
问题 In my app there are two drag and drop grid. To create a list, you drag rows from the first to the second grid. What is the best way to send this list of rows (second grid) for the server to then be displayed in another grid? I tried to sync and setDirty (true), but "Ext.data.Model # setDirty" is deprecated. var grid = this.lookupReference('gridRef'); var store = grid.getStore(); store.each(function(record){ record.setDirty(true); }); store.sync(); I tried, unsuccessfully: var grid = this

How to add a triangle marker to any cell corner of SpreadsheetGear grid?

断了今生、忘了曾经 提交于 2019-12-12 19:55:53
问题 This is a SpreadsheetGear Grid specific question. I know you can add a comment to a cell and the cell gets red triangle marker at the top right corner automatically. But I have a need to add a small triangle (different color) to any cell corner to indicate something special. Is it possible to do it? UPATE: This is what I got for adding a triangle to any corner of the cell based on Daniel's suggestion. public void AddTriangleShapeToCorner(IWorksheet worksheet, int row, int col, CellCorners

WPF Button inside a button Click issue

拈花ヽ惹草 提交于 2019-12-12 18:43:16
问题 I have the following structure (very simplified) in my WPF project: Button newProduct = new Button(); Grid newGrid = new Grid(); Button modify = new Button(); Button remove = new Button(); newGrid.Children.add(modify); newGrid.Children.add(remove); newProduct.Content = newGrid; Each button has its own click event. There are textblocks inside the button as well. NewProduct highlights its content, modify changes the textblocks info and remove deletes the main button from the view. My problem is