User Profile

Collapse

Profile Sidebar

Collapse
Josh Argent
Josh Argent
Last Activity: Sep 20 '13, 04:34 PM
Joined: Dec 18 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Josh Argent
    started a topic Java wrap text to polygon
    in Java

    Java wrap text to polygon

    I am using Java Graphics2D to draw basic and complex polygons which will have text of varying lengths and fonts in it. What I'm trying to achieve is that the text drawn is perfectly wrapped and clipped to fit within the polygon.

    The code I have so far is this:

    Code:
    int[] xp = { x + width /2, x + width -1, x };
    int[] yp = { y, y + height - 1, y + height - 1 };
    g.setColor(fill.color1);
    g.fillPolygon(xp,
    ...
    See more | Go to post

  • Make a property have a multiline style editor

    Hi,

    I'm making this tooltip control. When the user adds it to the form I want the TooltipText property to have a large textbox editor (similar to the multiline property of the Textbox control).

    My code:
    Code:
    Private _tooltipText As String
            Public Property TooltipText As String
                Get
                    Return _tooltipText
                End Get
                Set(value
    ...
    See more | Go to post

  • Josh Argent
    replied to Draw string to region
    There's not really much code to show really. I'm using something like this:
    Code:
    g.DrawString("long text here", f, blueBrush, x, y, rectangle)
    That wraps the text to the rectangle but if the shape is anything else, like a cirlcle, the text runs out the edges. (Like on the image in the OP)
    See more | Go to post

    Leave a comment:


  • Josh Argent
    started a topic Draw string to region

    Draw string to region

    Hi,

    I'm wanting to draw a string to a region using the GDI+ classes. I currently have the text draw and then clipped however the text always 'seeps' out the edges of the shape:
    [IMGnothumb]http://s11.postimage.o rg/ww8xicr03/bubble.png[/IMGnothumb]

    As you can see the text is not wrapped properly in the circle and parts of the words are off the screen. I want the text to be able to wrap itself into the bounds of...
    See more | Go to post
    Last edited by zmbd; Feb 2 '13, 06:58 PM. Reason: [z{made image visible}]

  • Josh Argent
    started a topic [Maths] Drawing lines to shapes

    [Maths] Drawing lines to shapes

    Hi,

    I'm making a brainstorming program in VB.net and am struggling with drawing arrow lines. Currently I have lines that go all the way to the centre of a 'bubble' on the screen. This works very well but I want to implement lines with arrows to show flow.

    I need the lines to stop just before it gets to the bounds of the bubble otherwise the arrow head will be drawn under the shape.

    I've been trying for...
    See more | Go to post

  • Thanks, that seems to work quite well.
    See more | Go to post

    Leave a comment:


  • That's just about it really. I need it to walk quite slowly.
    See more | Go to post

    Leave a comment:


  • Josh Argent
    started a topic Make an object follow another object slowly
    in Java

    Make an object follow another object slowly

    Hi,

    I'm writing a little 2d java zombie apocalypse game where the player moves around the screen and shoots zombies that spawn. I have done most of the logic except for the zombie AI. I need them to follow the player slowly.

    Right now I am using the same code for bullets as they're similar really. They both have a start and end point.

    The current code is:
    Code:
    public void AdvanceWalkPhase()
    	{
    ...
    See more | Go to post
    Last edited by Josh Argent; Jan 19 '13, 02:15 PM. Reason: Updating code

  • Josh Argent
    replied to Scrolling Panel Issues
    I've fixed it:
    Code:
    Dim newl As Point = New Point(control.X + Panel1.HorizontalScroll.Value, control.Y + Panel1.VerticalScroll.Value)
    Use newl as the location of the control. Not it's normal location.
    See more | Go to post

    Leave a comment:


  • Josh Argent
    started a topic Scrolling Panel Issues

    Scrolling Panel Issues

    Hi,

    I'm making the second version of my brainstorming and mind mapping software, Open Mind. The way it works simply is that a bubble control is inside a panel and can be dragged around the panel and joined to other bubbles to make a mind map.

    This works pretty well however an on-going issue is that when working on a large mind map and the panel needs to scroll (With allowscroll set to true). This is fine but when it...
    See more | Go to post

  • Josh Argent
    started a topic Drawing lines in XNA or DirectX?
    in .NET

    Drawing lines in XNA or DirectX?

    Hi,
    I'm having quite a hard time trying to draw a simple line from one location to another in xna and directx. I've tried both but really can not get either to work. :(

    I've searched around a bit but everything seems really complicated. All I want to do is draw a line on a panel control.

    I've managed to do this in GDI+ but it is really glitchy so I was told to try directx and xna.

    Please can someone...
    See more | Go to post

  • Josh Argent
    started a topic Were can I share my software?

    Were can I share my software?

    Hi,
    I've recently made a mind mapping software in vb.net (http://openmindsoftware.webs.com) and I am struggling to find places to share it. I've added it to cnet and have uploaded an advert to youtube but thats it.

    I was wondering if anyone knows of any good places to share my work?

    Thanks in advance,
    Josh.
    See more | Go to post

  • How to upload a folder and subfolders to server via FTP in vb.net

    How do I upload a folder and all it's subfolders to an FTP server? I know theres no one line code to do it but could someone share a script or a link that will help me out?
    Thanks in advance, Josh
    See more | Go to post

  • Josh Argent
    started a topic Converting videos
    in .NET

    Converting videos

    Hi,
    I want to write a program that will convert videos to other video formats (eg avi to mp4). I've searched everywere and can not find and free dll librarys that will do this. :(
    I have tried something with ffmpeg and it will not work so if possible could we avoid that.

    So basically does anyone know of a good dll library that will help me convert videos? (My prefered language is VB.net BTW)

    Thanks in...
    See more | Go to post

  • Josh Argent
    started a topic Layer panels and other objects?

    Layer panels and other objects?

    Hi,
    I'm having a bit of trouble creating draggable panels that will stay on top of all the other panels and not 'hide' behind them. My code for dragging works fine, I just need to set the layer of a panel to the top of all the different controls :/ Can anyone help me here?
    Thanks in advance,
    Josh.
    See more | Go to post

  • Josh Argent
    started a topic Posting forms on another website...?
    in PHP

    Posting forms on another website...?

    Okay, I want to make a php script that will be able to access and post a form on another website and return the result pages value.
    For example, I want a user to be able to enter a password and username for facebook and then it will submit the login form and return their wall. Is this possible in php? I don't mind experimenting with any language. :D
    Thanks in advance.
    See more | Go to post

  • Why does the Process event - Exited close by its own?

    I'm getting some very strange errors with my code and I'm not sure what's causing it. :( Basically, I'm trying to make a program which will list all the running programs as well as getting the icon from it. I've got it working prety well but I need it to update when ever a program is closed. So I looked into it a bit and found the I could use p.Exited event. I tried it out (in the bellow code) and it sort of worked however on a MessageBox.Show ()...
    See more | Go to post

  • Josh Argent
    started a topic Making a real OS...?

    Making a real OS...?

    I want to have a go at making a real OS. I can program in C# well and would like to be able to use that knoledge to make the main interface for my OS. All I need (and struggling with) is some code or something that allows me to make a boot up program which will start running my main programs. Is that possible? Would it work? Thanks in advance.

    PS: I only have flash drives to boot from.
    See more | Go to post

  • Josh Argent
    started a topic Fixed 'tool windows' like in photoshop?

    Fixed 'tool windows' like in photoshop?

    I want to make my own mini tool windows like in photoshop that only minimize when the main application is minimized. Is this possible in .NET/C#? Thanks in advance :)
    See more | Go to post

  • Josh Argent
    replied to How do I 'navigate' to a path in C#?
    Thanks again bentleyw! :)
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...