AllowLVEdits Version 2.2

Developed or developing a new product in PureBasic? Tell the world about it.
alter Mann
User
User
Posts: 39
Joined: Fri Oct 17, 2014 8:52 pm

Re: AllowLVEdits Version 2.2

Post by alter Mann »

look for

Code: Select all

#PB_String_UpperCase
and remove it
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Re: AllowLVEdits Version 2.2

Post by dobro »

Yes !!!

Thanks :)
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8433
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: AllowLVEdits Version 2.2

Post by netmaestro »

iirc the version I posted was one I ripped from one of my production programs and the capitals are required for that one (it's for filling out a government form). You may have to make one or two tweaks like this one to make it more universally usable.
BERESHEIT
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5345
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: AllowLVEdits Version 2.2

Post by Kwai chang caine »

Hello Net Master :D

First thanks a lot for this giant tool, that i try to include in my code 8)
But like usually KCC have breaking the toy :oops:
After embeded your module in my code, i have search a long time what it can breaking a so amazing code, and never i believe it's just one little PB native function :shock:
But for make shit,.. KCC always found a way :lol: :oops: :oops:

Run this code please, and try to edit a cell :

Code: Select all

UseModule LVEdit

LoadFont(0, "Courier New",12)
OpenWindow(0,0,0,840,700,"Cash Flow Budget",#PB_Window_ScreenCentered|#PB_Window_SystemMenu)
ListIconGadget(0,0,0,840,700,"",0,#PB_ListIcon_GridLines|#PB_ListIcon_FullRowSelect)
AddGadgetColumn(0,1,"Number", 150)
SetGadgetFont(0,FontID(0))
GadgetToolTip(0, " Hello i'm a little ToolTips of KCC and at me alone, i misfire all the fantastic job of master NetMaestro (like usually) ")  ; < ========== Black field

LVEdit::StartEditing(0,0)

For i = 1 To 35
 AddGadgetItem(0, -1, Chr(10) + Trim(Str(i)))
Next

Repeat
 EventID = WaitWindowEvent()
Until EventID = #PB_Event_CloseWindow

LVEdit::StopEditing()
Again thanks for have sharing this jewel 8)
ImageThe happiness is a road...
Not a destination
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8433
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: AllowLVEdits Version 2.2

Post by netmaestro »

I'm trying to discover why the addition of a tooltip to the host gadget would cause this, so far no luck though. I'll keep looking until I find it and hopefully I can come up with a solution before long. You didn't do anything wrong though KCC, it's perfectly reasonable to expect that a tooltip could be added here without blowing anything up.
BERESHEIT
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5345
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: AllowLVEdits Version 2.2

Post by Kwai chang caine »

It's incredible all the strange behavior when you create a complex and wonderfull code like yours.
They are always a thing who not works, and it's impossible to test all.
I'm happy to read it's not my fault.

Furthermore i need to hide a column.
I have use send message for modify the width to zero.
Because setgadgetattribute not really works

Is it possible to hide really a column, without chance the user make it visible with the mouse in the header

Again thanks Master for make this jewel of code.
I love it
Have a very good night
ImageThe happiness is a road...
Not a destination
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5345
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: AllowLVEdits Version 2.2

Post by Kwai chang caine »

I manage more than 15 000 lines with this splendid code
So it's very long to load :|
Then my idea is, mixing this code with the virtual listicon of RASHAD :idea:
http://www.purebasic.fr/english/viewtop ... 05#p403305

Believe you it's possible ???? or it's not go to try :oops:
ImageThe happiness is a road...
Not a destination
Post Reply