Page 1 of 3 123>
Topic Options
#88368 - 2002-10-01 09:37 PM Kixforms - Version 2.1 (Build 35) Pre-Release Round Up
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
I'm aiming to release Kixforms 2.1 (Build 35) this weekend ... lots-o-new-stuff in the next release - the biggest being ListViews and Collections - along with some other surprises.

But I was concerned that maybe some "critical" items may have not made it into the build - some I have gathered and have already included (don't have the list with me) but was wondering if anyone had any outstanding issue or request for any new (small) feature, please post into this space. Will do my best to get it into the build for Saturday.

Top
#88369 - 2002-10-01 10:21 PM Re: Kixforms - Version 2.1 (Build 35) Pre-Release Round Up
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
How difficult would it be to change font attributes for 1 or more items in a listbox? Say, for example, I had a listbox of PCs in a domain and I wanted the NT PCs in green, 9x in red, etc.
Top
#88370 - 2002-10-01 11:26 PM Re: Kixforms - Version 2.1 (Build 35) Pre-Release Round Up
Fernando Madruga Offline
Starting to like KiXtart

Registered: 2002-08-21
Posts: 149
Loc: Coimbra.Portugal.Europe.Earth....
Reasonably dificult, I guess... [Smile]

You'd either need some way to accept feedback from the user program on a given display event for the list box, or supply a list with attributes on a per line basis or other, that the Shawn's code would have to use for it's own display callback routine.
_________________________
Later,   [b]Mad[/b]ruga

Top
#88371 - 2002-10-02 12:03 AM Re: Kixforms - Version 2.1 (Build 35) Pre-Release Round Up
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Well, each line in a listbox is added individually anyway so that shouldn't be a problem.

$listbox.Additem("Item")

The issue that I see would be if he could get various lines of a listbox to show the different colors.

Top
#88372 - 2002-10-02 12:58 AM Re: Kixforms - Version 2.1 (Build 35) Pre-Release Round Up
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
I think Madruga stated it perfectly: Reasonably difficult. Kixforms utilizes the standard windows ListBox control - and that control does not have multi-font support. However here's the "reasonably difficult" part ... Windows has a feature (most controls support it) called "OWNERDRAW". That means that as a developer, you can choose to assume the responsibility for drawing the contents (items) of a listbox. And that only comes at the expense of a whole lot of code and development cycles ...

Will look deeper into it though ... I might be able to score a custom listbox somewhere ... keep this on the stack. Im also looking into enhancing the ListView control quite a bit going forward ... the ListView is a very "deep" object [Wink] ... if we could get multi-font support there, would that be of interest ? Just create a single column ListView instead of a ListBox ?

[ 02. October 2002, 01:02: Message edited by: Shawn ]

Top
#88373 - 2002-10-02 01:05 AM Re: Kixforms - Version 2.1 (Build 35) Pre-Release Round Up
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Yeah, I thought it wouldn't be easy, but I tried. [Wink]

If you could get multifont support in the Listview object, well, that'd be awesome.

Top
#88374 - 2002-10-02 04:35 AM Re: Kixforms - Version 2.1 (Build 35) Pre-Release Round Up
krabourn Offline
Hey THIS is FUN
*****

Registered: 2000-12-11
Posts: 244
Loc: San Antonio, Texas, USA
I have run into something that I think was already mentioned somewhere, but I could not find it. I would like to set textboxes to to a state that they cannot be typed into but the scroll bar works and you can copy text out of it.

The .Enabled property totally disables the box. I am looking for something like .Editing so I can turn off the ability to change the .TextBox.

Forgive me, if I am going over something that was already discussed.

Thanks
_________________________
Kelly

Top
#88375 - 2002-10-02 06:52 AM Re: Kixforms - Version 2.1 (Build 35) Pre-Release Round Up
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
something like .locked?
 
_________________________
!

download KiXnet

Top
#88376 - 2002-10-02 02:48 PM Re: Kixforms - Version 2.1 (Build 35) Pre-Release Round Up
Schuliebug Offline
Hey THIS is FUN
*****

Registered: 2002-01-18
Posts: 379
Loc: Netherlands
I would like to possibility to add a tooltip to specific listbox items (to display exta info about lines the mouse is going over) [Roll Eyes]
_________________________
Kind regards,

Top
#88377 - 2002-10-02 03:08 PM Re: Kixforms - Version 2.1 (Build 35) Pre-Release Round Up
krabourn Offline
Hey THIS is FUN
*****

Registered: 2000-12-11
Posts: 244
Loc: San Antonio, Texas, USA
.Locked is fine with me.

I have also noticed that I cannot copy out of a .ListBox.
_________________________
Kelly

Top
#88378 - 2002-10-02 03:20 PM Re: Kixforms - Version 2.1 (Build 35) Pre-Release Round Up
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
krabourn, try with this:
code:
$=createobject("kixtart.form")
$.size= 200,200
$.center

$l=$.listbox(,,,190,140)
for $c=0 to 100
$l.additem("item #$c")
next

$b=$.button("click me")
$b.size=75,25
$b.center
$b.top=150
$b.onclick="$$l.caption"
$.show
while $.visible $nul=execute($.doevents) loop

_________________________
!

download KiXnet

Top
#88379 - 2002-10-02 03:29 PM Re: Kixforms - Version 2.1 (Build 35) Pre-Release Round Up
krabourn Offline
Hey THIS is FUN
*****

Registered: 2000-12-11
Posts: 244
Loc: San Antonio, Texas, USA
I am wanting to be able to either right click and get the standard windws menu to let me copy or be able to press + and copy the text to another program. What I am writing will be used by other people. I was not looking for how to do through programming.

I do appreciate the answer. If I have to script it in, This will help get me started.

I was just thinking this was something that Kixforms should have inside it.

Thanks
_________________________
Kelly

Top
#88380 - 2002-10-02 03:33 PM Re: Kixforms - Version 2.1 (Build 35) Pre-Release Round Up
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
oh, so you could catch the mouse,event and create that form. like you probably have seen there is no much "normal" functions happening automatically.
 
_________________________
!

download KiXnet

Top
#88381 - 2002-10-02 04:06 PM Re: Kixforms - Version 2.1 (Build 35) Pre-Release Round Up
krabourn Offline
Hey THIS is FUN
*****

Registered: 2000-12-11
Posts: 244
Loc: San Antonio, Texas, USA
Actually, I am not looking to catch an event, in this case. I want someone to be able to copy out of this program. Just like you could copy something out of Word and paste it into Excel.

I know the .TextBox and the .ComboBox have this functionality.
_________________________
Kelly

Top
#88382 - 2002-10-02 04:31 PM Re: Kixforms - Version 2.1 (Build 35) Pre-Release Round Up
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
you're right...

but I remember the time when they didn't and I coded it with events for textbox.

anyway, all I did was introduce you the workaround.

until it is available as inbuild. anyway, I don't know how the new listview thingies will work out but it actually should be added.

imagine excel without ability to select fields and copy it to elsewhere!

so, I think it already will be there... just need to wait...
shawn?
_________________________
!

download KiXnet

Top
#88383 - 2002-10-02 04:38 PM Re: Kixforms - Version 2.1 (Build 35) Pre-Release Round Up
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
hmmm ... it doesn't appear as if ListBoxes in either VB and VBA support this behavior ... can anyone verify this ?

I think what could be done is the following (just green-lighting here):

1) The script could listen for the ctrl-c event on the listbox ... the KeyPress event would have to be inplemented (no biggie).

2) If ctrl-c pressed, the script could read the data from the listbox (either the whole list, or just an item) and "copy" it to the clipboard. That would have to be implemented as well.

Then carry on as normal ... same thing for pasting into the listbox - listen for ctrl-v

But more importantly - i would like some confirmation that VB and VBA doesn't support this - can't find much on the web right now.

[ 02. October 2002, 16:39: Message edited by: Shawn ]

Top
#88384 - 2002-10-02 04:40 PM Re: Kixforms - Version 2.1 (Build 35) Pre-Release Round Up
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
what about listview?

has it "support" for this?
_________________________
!

download KiXnet

Top
#88385 - 2002-10-02 05:25 PM Re: Kixforms - Version 2.1 (Build 35) Pre-Release Round Up
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Its a good thing you raised this issue krabourn - because it reminded me that I still have to implement the Copy() & Paste() methods for all objects ... this was available in Version 1 (remember Jooel?) ... but got dropped in version 2. What I will do is quickly code-up the copy() message - then "send" it to the ListBox - and see if it responds ... be right back ...
Top
#88386 - 2002-10-02 05:39 PM Re: Kixforms - Version 2.1 (Build 35) Pre-Release Round Up
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Ok - the Listbox didn't repond to the COPY message ... the ListView didn't either ... thats not to say that we can't "enhance" these controls to recognise these messages ... just that it won't happen over-night or by Saturday anyways.
Top
#88387 - 2002-10-02 05:42 PM Re: Kixforms - Version 2.1 (Build 35) Pre-Release Round Up
krabourn Offline
Hey THIS is FUN
*****

Registered: 2000-12-11
Posts: 244
Loc: San Antonio, Texas, USA
Is there going to be anything stop a .TextBox from being edited but still be able to scroll and use windows copy functions?

Such as .Enabled/.Locked.
_________________________
Kelly

Top
Page 1 of 3 123>


Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (mole) and 405 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.18 seconds in which 0.112 seconds were spent on a total of 14 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org