Questions tagged [oxygene]

Oxygene is a general-purpose object-oriented programming language based on Pascal. Oxygene can be compiled to the Microsoft Common Language Runtime (.NET and the Mono), Java & Android's Dalvik, as well as the Objective-C runtime.

Oxygene is a general-purpose object-oriented programming language based on Pascal. Oxygene can be compiled to the Microsoft Common Language Runtime (.NET and the Mono), Java & Android's Dalvik, as well as the Objective-C runtime.

106 questions
0
votes
1 answer

CheckBox is not accepting state change in the code

On a winform I have a three different checkboxes. They all won't accept any changes to their state programmatically but only by a mouse click. Why? Here is how I am setting their state in my code: if i=1 then ClientChk.Checked := true else …
ThN
  • 3,235
  • 3
  • 57
  • 115
0
votes
1 answer

What is the difference between control's bounds and setting X,Y,Width,Height of a control?

So, lets say I have a panel on a winform and I want it displayed at particular point and should have a specific width and height on the winform. Plus, I want to do it during run-time. So, what is the difference and the right way to move and set…
ThN
  • 3,235
  • 3
  • 57
  • 115
0
votes
1 answer

Delphi -> Delphi prism, how to use array of records?

I'm learning Delphi Prism, and i don't find how to write the following code with it : type TRapportItem = record Label : String; Value : Int16; AnomalieComment : String; end; type TRapportCategorie = record Label : String; …
user183867
0
votes
1 answer

Thread.Resume Obsolete or decprecated: How to resume a suspended thread without using System.Threading.Thread.Resume?

Here is how I resume a suspended thread. if SerialThread.ThreadState = ThreadState.Suspended then SerialThread.Resume; Although the above code doesn't raise compiler error or syntax error, it does however raise warning as follows;…
ThN
  • 3,235
  • 3
  • 57
  • 115
0
votes
0 answers

Can DataGridView control be used to display live or real-time data?

Well, I have been using DataGridView to display live and real-time data on the fly. So, the user can look at the data as they are being generated. Data displayed is updated in less than a second. Although it works great, I am noticing that anytime…
ThN
  • 3,235
  • 3
  • 57
  • 115
0
votes
1 answer

How to retain content page controls' viewstate when changing master page?

I'm using this code in my Global.asax to change master page: method Global.Application_PreRequestHandlerExecute(src: System.Object; e: EventArgs); begin var p: System.Web.UI.Page := System.Web.UI.Page(self.Context.Handler); if p <> nil then …
iMan Biglari
  • 4,674
  • 1
  • 38
  • 83
0
votes
2 answers

How to properly change a page's master page?

I have two master pages in my ASP.NET application. One for regular use, and another for printing. I use a session parameter to see if the application is currently in print mode or not: method Global.Application_PreRequestHandlerExecute(src:…
iMan Biglari
  • 4,674
  • 1
  • 38
  • 83
0
votes
1 answer

RemObjects: How to prevent UI from freezing when making unsuccessful TCP/IP connection?

I am testing my program TCP/IP connection which uses RemObjects TcpClient and TcpServer controls and running into an issue. If the host or remote server is not listening for connection, then client just simply freezes in trying to make remote…
ThN
  • 3,235
  • 3
  • 57
  • 115
0
votes
1 answer

Why timer (system.windows.forms.timer) won't start?

Within a user-defined class, I have a timer and it just won't start when I Timer.Enabled. User-Defined Class: TSerialIndicator = public class private method TxTimerEvent(Sender:System.Object; e:System.EventArgs); public …
ThN
  • 3,235
  • 3
  • 57
  • 115
0
votes
2 answers

How to import DLL in delphi-prism?

I am trying to import dll in my delphi-prism program and never done it before. So, after finding some answer online, I put something together as follows but doesn't work. MyUtils = public static class private [DllImport("winmm.dll", CharSet…
ThN
  • 3,235
  • 3
  • 57
  • 115
0
votes
1 answer

Cannot find property setter for "Chars"

I am trying to do the following expression, but I keep running into this exception, "Cannot find property setter for 'chars'." Here is the expression: xstr, str : string; for i := 1 to length(str) do begin if ((i mod 2)<>0) then begin …
ThN
  • 3,235
  • 3
  • 57
  • 115
0
votes
2 answers

Cannot override method with lower access than base method

I am almost done with migrating my software for .NET environment. Now I am going through all the warnings and cleaning them up. Then, I ran into this problem. Here is my class: TColorObj = class value:double; thecolor:Color; Constructor; …
ThN
  • 3,235
  • 3
  • 57
  • 115
0
votes
1 answer

Type mismatch, cannot assign System.Data.DataRowCollection to array of System.Data.DataRow

I want to be able to traverse through a list of DataRow using For each loop as follows. ArrayOfRows: Array of DataRow; ArrayOfRows := dbtable.Rows; for each therow in ArrayofRows do begin ITagList.Add(therow['TAGNAME'].ToString); …
ThN
  • 3,235
  • 3
  • 57
  • 115
0
votes
1 answer

How to insert and retrieve TIMESTAMP fields using SQL statement with SQLite?

I was able to insert TIMESTAMP as a string into my table, but when I read it out my program raises an error saying "String was not recognized as a valid DateTime." Here is how I insert my values into the table. sqlstr := 'INSERT INTO ALARMS…
ThN
  • 3,235
  • 3
  • 57
  • 115
0
votes
1 answer

How to advance to a newpage with printdocument in .NET?

Possible Duplicate: What does Hasmorepages PrintPageEventArgs property do exactly? I would like to advance my printing to a newpage without leaving the print event. So far, what I found out is that you can't and you have to leave print event.…
ThN
  • 3,235
  • 3
  • 57
  • 115