
liquid8
Avatar/Signature-
Posts
31 -
Joined
-
Last visited
About liquid8
- Birthday 01/03/1978
Personal Information
-
Visual Studio .NET Version
Professional
-
.NET Preferred Language
VB.NET
liquid8's Achievements
Newbie (1/14)
0
Reputation
-
This one is throwing me off.. Finally learning some stuff in DirectX and can't get by this one. Let me say right away that this works on 2 of my machines with GeForce cards. The card in this machine is an S3 ProSavage DDR (not the best but it what i have to work with) There is another machine with this same card and it happens on there as well. I have the newest drivers (that they offer at least) The text shows the first few letters/numbers and then just gets scrambled, whether i move to a different line, or continue on the same one. The rectangle i am using to draw on is stretched far enough, and it's not a font issue, as I can change fonts and see the different font for the first few letters. My question is this: Is there something I can check for that this card is not capable of doing, or is this just a driver issue with this particular card? Here's the shots to explain, thanks for any help in advance, LiQuiD8 [woops.. should be in DirectX forum]
-
I am just learning D3D and I am having trouble getting the view matrix that I want. I have a mesh loaded at an X,Y,Z point. What I want to do is using a rotational view matrix that will rotate around the mesh. The rotation matrices (rotationX, rotationY, rotationZ) it seems only allow you to rotate from the camera angle, and not specify the rotational point. Any ideas what I am doing wrong? I did try adding a lookatLH matrix and a rotational matrix and it worked (sortof) but did some strange stuff to my model. LiQuiD8
-
changing property grid values based on another value
liquid8 replied to liquid8's topic in Windows Forms
In case anyone needs to know how I did this.... I was using a typeconverter and overriding GetStandardValues, but I needed to return a dynamic list of items based on another property value... Here's what I did: Public Overloads Overrides Function GetStandardValues(ByVal context As System.ComponentModel.ITypeDescriptorContext) As System.ComponentModel.TypeConverter.StandardValuesCollection Dim obj As Object = context.Instance Dim DataValues as new ArrayList If Typeof(obj) is Label Then DataValues.Add("Text: " & obj.Text) DataValues.Add("Left: " & obj.Left) DataValues.Add("Top: " & obj.Top) Elseif Typeof(obj) is Bitmap Then DataValues.Add("Image") DataValues.Add("Height: " & obj.Height) DataValues.Add("Width: " & obj.Width) End If Return New StandardValuesCollection(DataValues) End Function The important part is the context.Instance - this allows you to retrieve information about the object that contains the property associated with the TypeConverter. LiQuiD8 -
There may be a bit of math involved in this, or maybe there is an easier way... If I have a rotated string or a rotated picture with GDI, how can I determine the exact region of it.. normally if it isn't rotated you can just use: New Rectangle(me.left,me.top,me.height,me.width) I haven't dabbled with graphics paths yet.. would that make things easier? Thanks, LiQuiD8
-
changing property grid values based on another value
liquid8 replied to liquid8's topic in Windows Forms
I have been searching and am still having trouble with this one... I may not have explained this very well... I have 2 values on a property grid. One of them I am trying to create a typeconverter that will return a standardvaluescollection, but the values it returns need to be dependant upon the value of the other property. Is there a way I can somehow pass a value to a typeconverter to accomplish this? Thanks, LiQuiD8 -
Thanks for both of your suggestions.. both will come in handy.. LiQuiD8
-
Actually, I realized as soon as I posted that this would involve Reflection... but if someone could post an example that would be extremely helpful.. Thanks again, LiQuiD8
-
I want to loop through an objects properties to return their values, but the objects passed to the sub could be of different types. Isn't there a way that I loop through properties without actually knowing the properties, like: public sub LoopPropse(obj) If object.property.Count >= 1 Then For i = 1 to obj.property.count msgbox(object.property.item(1)) Next end function End If Maybe a poor example but hopefully you understand what I mean.. Thanks, LiQuiD8
-
I have 2 properties on a property grid.. depending on the first ones value, i want to return one of two different enums.. For instance, I have a multiple data types (file, image, etc) and then i have enumerations for each... for File: location, name, size for Image: height, width, size if you change the first property to file, the other property should be a dropdown list of the file enums, if it is changed to image, the other property should change to be a dropdown list of the image enums.. How can I do this? Thanks, LiQuiD8
-
you got it :) right now I just threw all the properties into the objects class, and used <category> Public Class BaseObject <Category("Appearance")> _ Public Property Opacity End Class but i would like to keep my appearance properties all in a seperate class LiQuiD8
-
I may not have explained this well enough for anyone to answer. I sort of solved the problem, but not the way I wanted to. Basically I have a BaseObject Class, and want to have a seperate class with properties for Appearance, Data, etc.. The way I am currently doing this is: Public Class BaseObject Public Appearance as New Appearance End Class Public Class Appearance Public Property Font() as Font Public Property Color as Color End Class In Code, I create a new instance of the BaseObject: Dim newObject as new BaseObject I can successfully set all the underlying Appearance properties from the code, such as newObject.Appearance.Font, but setting the property grid to newObject, does not allow me to access the Appearance properties. Right now I just put all the properties in the same class, and Categorized them, but I want to have seperate classes for different property types. Any help would be appreciated. Thanks, LiQuiD8
-
I am currently using a property grid to show the properties of a class Appearance. This has all the appearance properties of a BaseObject. I have an ObjectImage class that inherits BaseObject, and has its own Appearance class which shadows the BaseObject class. When I set up the property grid to show the properties for ObjectImage, it only shows me the BaseObject properties. What am I doing wrong? Thanks, LiQuiD8
-
I guess that would explain why the error i was getting was object ref. not set to an instance of an object... i couldn't find what object didn't have an instance.. so I guess it was like you said, the existing row couldn't be used, so that was a bit confusing! woohoo! found what I needed though... the ImportRow method of a DataTable lets you import a copy of an existing row. After that, all I had to do was this: Dim DR As DataRow For Each DR In NewRows CurrentData.Tables(0).ImportRow(DR) Next thanks for the help! LiQuiD8
-
The Select method looks like it will do great for what I need to do (just sort records alphabetically by a certain column, filter for specific records) I am having some trouble with getting that to work, my data goes into the datarow array fine if i use no filter query, but i am getting errors otherwise. The other problem I am having is putting the returned rows into a dataset. Shouldn't I be able to do something like this: Dim newDataset as dataset newDataset = myDataset.Clone Dim rows as DataRow() rows = myDataset.Tables("Table1").Select("","FirstName") For each DataRow in rows newDataset.Tables("Table1").Rows.Add(DataRow) Next Thanks for the help, LiQuiD8
-
I am currently reading data from an xml file into a dataset. In order to sort this data, would I just use a standard SQL statement or is there an easier way to sort/filter this data to return a sorted/filtered dataset? Could someone give a me quick example of using an SQL statement with a dataset if that is the way I should go about it? Thanks, LiQuiD8