Search found 316 matches

by said
Thu Dec 26, 2019 9:52 am
Forum: Tricks 'n' Tips
Topic: Canvas based Grid gadget
Replies: 92
Views: 52736

Re: Canvas based Grid gadget

I would like my program to start and immediately be in an editable cell without any user clicking the mouse or pressing any keys. Hi Singo, First, glad to hear that my work was helpful to you, you are welcome ... and Seasons Greetings to everyone I see the great mk-soft is trying to help as always!...
by said
Thu Apr 04, 2019 9:42 pm
Forum: Tricks 'n' Tips
Topic: Canvas based Grid gadget
Replies: 92
Views: 52736

Re: Canvas based Grid gadget

Very nice gadget and useful. Adding few hundred records to grid with sql select loop is may seem no problem but 6K records take 20 seconds with elapsedmilliseconds and disabled debugger on intel i5 8GB RAM. 27MB RAM and 50% CPU is used. Would be very thankful for solution. Hi, To load big number of...
by said
Tue Jul 10, 2018 7:15 am
Forum: Coding Questions
Topic: Solve Equation with unknowns
Replies: 13
Views: 1978

Re: Solve Equation with unknowns

x.d = ((543.12314272 + 227.95) * 1.09628415) - 617.365264854623888
Debug x
by said
Thu Jun 07, 2018 11:39 pm
Forum: Coding Questions
Topic: Write an Excel Cell ? Need for COMatePlus exemples
Replies: 4
Views: 1646

Re: Write an Excel Cell ?

Hi,

you can try this simple xlsx writer:

viewtopic.php?f=12&t=68189
by said
Sat May 19, 2018 3:41 pm
Forum: Tricks 'n' Tips
Topic: Canvas based Grid gadget
Replies: 92
Views: 52736

Re: Canvas based Grid gadget

Hi Bernd, You have guessed it right, there is always 1 pixel for the border (be it horizontal or vertical) I believe, this little jump at the end of rows/cols is due to 1 pixel missing, here is how i would use this grid with a fixed size (your example re-worked): #ColWidth = 40 #RowHeight = 20 #Cols...
by said
Tue May 08, 2018 9:15 pm
Forum: Coding Questions
Topic: AESDecoder() padding bytes
Replies: 7
Views: 1417

Re: AESDecoder() padding bytes

Hi Bernd,

I dont think there is any padding!

There are other factors that affect AES but i am sure you know all of them :!:

I wish i could help once (in return to your many many helpful replies/contributions :D )

Said
by said
Tue Apr 17, 2018 3:39 am
Forum: Tricks 'n' Tips
Topic: Canvas based Grid gadget
Replies: 92
Views: 52736

Re: Canvas based Grid gadget

Sorry Maurizio, i am still unable to reproduce!

Even installed PB 5.62 for this, still cant reproduce ... Tested on Windows 10 (both PB 32/64) with 200 DPI screen as well

Is anyone else facing this issue? Thanks for reporting
by said
Mon Apr 16, 2018 9:35 pm
Forum: Tricks 'n' Tips
Topic: Canvas based Grid gadget
Replies: 92
Views: 52736

Re: Canvas based Grid gadget

Hello , thank for the grid is very useful wonderful gadget .. I have a problem with combobox , after resize the example the combo open is non fased on grid. i use purebasic 5.62 on MacOs/windows and the problem is the same ... is possible correct them ... thank you Maurizio Hello, You are welcome! ...
by said
Thu Apr 05, 2018 4:59 pm
Forum: Coding Questions
Topic: Stores simple states in exe
Replies: 78
Views: 11907

Re: Stores simple states in exe

Hi KCC,

You can also make use of a file date attribute using GetFileDate() and SetFileDate(), you know in a date there is a time part that you can use as you like ... change the time in #PB_Date_Created/#PB_Date_Modified as you like

Said
by said
Thu Mar 15, 2018 5:33 am
Forum: Tricks 'n' Tips
Topic: Indexing Data (Insertion Sort) for Maps/Linked Lists/Arrays
Replies: 5
Views: 2252

Re: Indexing Maps (Keeping a map sorted)

Based on what i understood :D here is a module implementation (with slight changes no need to pass a pointer to .integer ) : DeclareModule IndexedMap Declare ndxInsertElement( value.d, addr.i ) Declare.i AddrOfElement(I) Declare.d ValueOfElement(I) EndDeclareModule Module IndexedMap EnableExplicit S...
by said
Thu Mar 15, 2018 5:12 am
Forum: Tricks 'n' Tips
Topic: Simple sorted and fast 'map'
Replies: 10
Views: 4569

Re: Simple sorted and fast 'map'

I see, you were referring the the map number of slots, thanks !
by said
Wed Mar 14, 2018 12:54 am
Forum: Tricks 'n' Tips
Topic: Simple sorted and fast 'map'
Replies: 10
Views: 4569

Re: Simple sorted and fast 'map'

kinglestat wrote: When you run your app against PB with a prime of 3000017, you will see how faster the PB Map is
Can you please give an example code, i am interested :D

A side note, when doing speed tests, i found that DisableDebugger is not of great use :( better to disable the Debugger from the IDE menu
by said
Mon Mar 05, 2018 12:53 pm
Forum: Coding Questions
Topic: Add a map element on access the map with new key
Replies: 11
Views: 2488

Re: Add a map element on access the map with new key

y'all are missing the point. its a bug in my opinion: Structure MyStruc Foo.b EndStructure NewMap MyMap.MyStruc() Debug MyMap("Test") the map is empty, so what exactly is that pointer pointing to? the map itself? it would be better to simply return 0, to avoid confusion. c ya, nco2k I hig...
by said
Mon Mar 05, 2018 12:03 pm
Forum: Coding Questions
Topic: Bug? SetGadgetText on EditorGadget
Replies: 7
Views: 1241

Re: Bug? SetGadgetText on EditorGadget

I can confirm the same behavior here :!: (Win 10 PB5.62) a newline is being inserted on top
Looks like a bug to me
by said
Mon Mar 05, 2018 11:54 am
Forum: Coding Questions
Topic: Add a map element on access the map with new key
Replies: 11
Views: 2488

Re: Add a map element on access the map with new key

Hi, The common way is the documented way as mentioned by Micoute using AddMapElement() However, i think it depends on whteher the map is on the left hand side of right hand side ... it has been discussed previousely, you can search the forums (not easy i know :? ) Look at this Structure Country_ nam...