In this example browse the first column is centered, both data and header. But in java only the data is centered, the header is left justified.
QuickWindow WINDOW('Pregled vrsti transakcija '),AT(,,319,195),FONT('Tahoma',8,,FONT:regular,CHARSET:EASTEUROPE),CENTER,IMM,HLP('BrwVT'),SYSTEM,GRAY,RESIZE,MDI
LIST,AT(8,22,306,154),USE(?Browse:1),IMM,HVSCROLL,MSG('Browsing the vrsta_transakcije file'),FORMAT('72C(2)|M~vrsta transakcije~C(0)@s2@80L(2)|M~opis~@s200@'),FROM(Queue:Browse:1)
SHEET,AT(1,6,317,170),USE(?CurrentTab)
TAB,USE(?Tab:2)
END
END
PROMPT('Filtriraj po opisu:'),AT(49,5),USE(?OpisFilter:Prompt)
Let me say that this tool is brilliant. I have spent some 3 days on JNI integration and inital c2j learning and all is working very well, thinking of the complexity of the problem. The last thing i have to do in pure java is the socket communication with my clarion win32 application. After that I will just do c2j and i will do it faster than my manager would think of:)
Btw, i now see that i have not included the ico file in c2j designed folder. I will check if this is maybe the problem.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Currently, justification property for headers is being ignored by clarion2java. c2j parses this but it does not do anything with it. Let me know if this is a key issue and I will look into it.
There are a few areas where c2j is not 100% perfect. For example, currently dragging columns apart with the mouse does not update the property Prop.COLWIDTH. I have a customer complaining about this, (original clarion code would memorize and reuse col widths, but doesn't work in c2j). So plan to fix this in the next week, will address some of the things you have been raising too.
Re networking, I originally wrote some code that simulated the way clarion does TCP/IP networking, but I've slowly moved my code away from using this technique and instead I just do it in 100% java. I can share the original code with you if this is of use, but I recommend doing it in java.
If you need to access a web resource, you can use c2j already. Opening an ASCII file with a filename like http://foo.com/bar.php?baz=bing has exactly the effect you would expect; the ascii file reads the web page exactly like a local file system file.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The justification problem is not important. I wanted just to let you know, in the case you did not notice. I thought to do TcpIp in pure java;thanks i will do it myself. I do not want to bother you with this. For now i do not need web resource.
Nenad
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In this example browse the first column is centered, both data and header. But in java only the data is centered, the header is left justified.
QuickWindow WINDOW('Pregled vrsti transakcija '),AT(,,319,195),FONT('Tahoma',8,,FONT:regular,CHARSET:EASTEUROPE),CENTER,IMM,HLP('BrwVT'),SYSTEM,GRAY,RESIZE,MDI
LIST,AT(8,22,306,154),USE(?Browse:1),IMM,HVSCROLL,MSG('Browsing the vrsta_transakcije file'),FORMAT('72C(2)|M~vrsta transakcije~C(0)@s2@80L(2)|M~opis~@s200@'),FROM(Queue:Browse:1)
SHEET,AT(1,6,317,170),USE(?CurrentTab)
TAB,USE(?Tab:2)
END
END
PROMPT('Filtriraj po opisu:'),AT(49,5),USE(?OpisFilter:Prompt)
ENTRY(@s200),AT(105,5,144,10),USE(OpisFilter),LEFT(2)
BUTTON('&Close'),AT(268,180,49,14),USE(?Close),LEFT,MSG('Close Window'),TIP('Close Window'),ICON('WACLOSE.ICO')
END
Let me say that this tool is brilliant. I have spent some 3 days on JNI integration and inital c2j learning and all is working very well, thinking of the complexity of the problem. The last thing i have to do in pure java is the socket communication with my clarion win32 application. After that I will just do c2j and i will do it faster than my manager would think of:)
Btw, i now see that i have not included the ico file in c2j designed folder. I will check if this is maybe the problem.
Hi
Currently, justification property for headers is being ignored by clarion2java. c2j parses this but it does not do anything with it. Let me know if this is a key issue and I will look into it.
There are a few areas where c2j is not 100% perfect. For example, currently dragging columns apart with the mouse does not update the property Prop.COLWIDTH. I have a customer complaining about this, (original clarion code would memorize and reuse col widths, but doesn't work in c2j). So plan to fix this in the next week, will address some of the things you have been raising too.
Re networking, I originally wrote some code that simulated the way clarion does TCP/IP networking, but I've slowly moved my code away from using this technique and instead I just do it in 100% java. I can share the original code with you if this is of use, but I recommend doing it in java.
If you need to access a web resource, you can use c2j already. Opening an ASCII file with a filename like http://foo.com/bar.php?baz=bing has exactly the effect you would expect; the ascii file reads the web page exactly like a local file system file.
The justification problem is not important. I wanted just to let you know, in the case you did not notice. I thought to do TcpIp in pure java;thanks i will do it myself. I do not want to bother you with this. For now i do not need web resource.
Nenad