Autore Topic: Aggiunto il metodo Reparent() all'oggetto TreeView  (Letto 313 volte)

Offline vuott

  • Moderatore globale
  • Senatore Gambero
  • *****
  • Post: 11.303
  • Ne mors quidem nos iunget
    • Mostra profilo
Aggiunto il metodo Reparent() all'oggetto TreeView
« il: 26 Aprile 2014, 21:01:07 »
Vi segnalo questa discussione apparsa nella M.L. ufficiale:


" Is there a way with the TreeView component to change an item's parent key?

Now, I have to clear out all elements, and reload them each time I
want to move an item to another parent, and this also resets the
current opened/closed status of each item, which clutters the users's experience a bit.

Perhaps there's a good way I haven't thought of?

Regards,
Erik
"


" I added a Reparent() method to the TreeView items in revision #6250.

Tell me if it works for you.

Regards,

--
Benoît Minisini
"


" Thanks! I am running Gambas 3.5.2 now, but perhaps I'll be able to
pull the development version and try it out.

Another feature request that I think would have been extremely great
would be something like a .RichTextInsert() method for the TextEdit
control. This way it would be very easy to insert HTML objects like
tables, hyperlinks and so on at the cursor's current position.

I may ask to much here now, but you don't get without asking :)
I know that the QT TextEdit has methods for handling tables. Getting
some basic table functionality like that in Gambas' TextEdit would be
awesome, e.g. inserting/deleting tables, rows and columns, split and
merging cells. I believe this is already built into QT, no?

Best Regards
Erik
"


" I've got the newest Gambas development version now and can confirm that
the .Reparent() works beautifully! Thanks a lot!

Erik
"
« Ultima modifica: 30 Aprile 2014, 23:54:07 da vuott »
« Chiunque, non ricorrendo lo stato di necessità, nel proprio progetto Gambas fa uso delle istruzioni Shell o Exec, è punito con la sanzione pecuniaria da euro 20,00 a euro 60,00. »