You are not logged in.

amitmarkel

Beginner

  • "amitmarkel" is male
  • "amitmarkel" started this thread

Posts: 17

Date of registration: Jul 17th 2009

  • Send private message

1

Saturday, July 18th 2009, 8:36pm

ZOrder, CTRL+A, TabIndex, Fonts

I opened an existing VB6 project, but there were three things that bugged me:
* I couldn't find the ZOrder property, this is an important property that really should be implemented!
* Also, CTRL+A doesn't select any controls.
* Moreover, clicking on controls while holding SHIFT or CTRL doesn't work: either to select more controls or to deselect these.
IMHO, these bullets are very important, especially ZOrder and selection\deselection.

Edit: In the project I used a control from Planetsourcecode - "FileDownloader". I have never used the following statement: "On Local Error GoTo somewhereelse", and is unfamiliar to Jabaco also. :D
Edit2: Also, when the focus is at the window while in design mode, pressing TAB does not select the different controls in order, nor did I find a TabIndex property also.
Edit3: I have just noticed that all fonts aren't anti-aliased. I think that all fonts should be anti-aliased according to the system's default setting, at default. If possible, it would be nice to control this behavior with a property, as with Line().

Amit

This post has been edited 3 times, last edit by "amitmarkel" (Jul 18th 2009, 9:00pm)


A1880

Intermediate

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

2

Saturday, July 18th 2009, 9:09pm

Hi,
you've raised valid points.

The ZOrder issue can be solved as discussed here.

Regards

A1880

amitmarkel

Beginner

  • "amitmarkel" is male
  • "amitmarkel" started this thread

Posts: 17

Date of registration: Jul 17th 2009

  • Send private message

3

Saturday, July 18th 2009, 9:18pm

Thanks.

So the only way to do it not at runtime is to cut-paste? Where in the case of many controls it is more difficult.. I would like to see the form as it will be displayed :D

Amit

A1880

Intermediate

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

4

Saturday, July 18th 2009, 9:55pm

Hi again,
you can select multiple controls by dragging a selection area across,
Deselection with shift click does not work (yet).

Well, Jabaco does not reach the full comfort and maturity of VB6 yet.
But it is for free. And it helps you to avoid the Java AWD complexity.
Do you know of any Java GUI IDE as simple and elegant as Jabaco/VB6?

Cheers!

A1880

amitmarkel

Beginner

  • "amitmarkel" is male
  • "amitmarkel" started this thread

Posts: 17

Date of registration: Jul 17th 2009

  • Send private message

5

Saturday, July 18th 2009, 10:06pm

I find Jabaco simply great! I just wanted to point out a few points I encountered, to help, that is all! :D
Now trying to run db2000 TXT2PDF, but it seems VB/JBGridEditor and VB/WinsockItem are missing, perhaps it was developed on a previous Jabaco version?

Jabaco says on this function highlighting String:

Jabaco Source

1
2
3
4
5
6
7
8
9
10
11
12
13
Private Function IntegerToString(nINT As Integer, nCHRs As Integer, fCHR As String) As String

   ' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   ' !! questo ? reso necessario perch? nella versione attuale di Jabaco la funzione 'Format' non ? disponibile !!
   ' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

   Dim xs As String
   
   xs = Trim(CStr(nINT))
   
   IntegerToString = Trim(String(nCHRs - Len(xs), fCHR)) & xs

End Function


Expected: Variable or Function

Amit

OlimilO

Intermediate

  • "OlimilO" is male

Posts: 277

Date of registration: Jan 18th 2009

Location: Germany

Occupation: software engineer

  • Send private message

6

Saturday, July 18th 2009, 11:19pm

Function String & Space

Hello Amit,



in VB6 there are two functions to create a String:

Space: returns a string variable with the given length of space-characters

String: returns a string variable with the given length of the given character

Jabaco Source

1
2
3
'VB6-Code
   MsgBox String(10, "#")
   MsgBox "#" & Space(10) & "#"


in Jabaco afair there is none of these. especially "String" is a special keyword that denotes the type of a variable. But if you alter it a little bit, you could very easily write it down like this:

Jabaco Source

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Public Function String_(nChars As Integer, aChar As Short) As String
   Dim sb As New java#lang#StringBuilder(nChars) 
   While nChars > 0: nChars = nChars -1
      sb.append(Chr(aChar))
   Wend 
   String_ = sb.toString
End Function
Public Function String_(nChars As Integer, aChar As String) As String
   Dim sb As New java#lang#StringBuilder(nChars) 
   While nChars > 0: nChars = nChars -1
      sb.append(aChar)
   Wend 
   String_ = sb.toString
End Function
Public Function Space(nChars As Integer) As String
   Dim sb As New java#lang#StringBuilder(nChars) 
   While nChars > 0: nChars = nChars -1
      sb.append(" ")
   Wend 
   Space = sb.toString
End Function




regards

OlimilO

Manuel

Administrator

  • "Manuel" is male

Posts: 256

Date of registration: Jul 16th 2008

Location: Erlangen, Germany

Occupation: Software Developer

Hobbies: Jabaco, game theory, text-mining

  • Send private message

7

Saturday, July 18th 2009, 11:37pm

Quoted

amitmarkel
* Also, CTRL+A doesn't select any controls.
* Moreover, clicking on controls while holding SHIFT or CTRL doesn't work
There are some more important tasks at the moment. But I'll improve the GUI-Editor in a later version...

Quoted

A1880
Well, Jabaco does not reach the full comfort and maturity of VB6 yet.
You mean the IDE? I'm working on. Let me know which features are important for you...

Quoted

OlimilO
in Jabaco afair there is none of these. especially "String" is a special keyword that denotes the type of a variable.
It's a bug in 1.4.2 - but will be fixed in the next version.

amitmarkel

Beginner

  • "amitmarkel" is male
  • "amitmarkel" started this thread

Posts: 17

Date of registration: Jul 17th 2009

  • Send private message

8

Sunday, July 19th 2009, 9:30am

Timers

OlimilO: Thanks for the example. Also, I always used the space() function, so I guess I just forgot about that string(,) function.

Manuel & Others: I posted another question not about the IDE's GUI, but about Timers and WinAPI. I guess the timer problem has already been noticed, but no one responded about it, and I think it is important. (Maybe it is a problem in my computer? I tried reinstalling... so it is either a code mistake or a bug).

Link

Cheers,

Amit

Rate this thread
WoltLab Burning Board