* 671 Posts in 238 Topics by 74 Members Latest Member: pythagoras   **
IFSO PORTAL
  Advanced search
May 19, 2013, 11:13:32 am
HomeforumHelpSearchLoginRegister**
Recent Posts
[May 08, 2013, 10:38:33 pm]

[April 26, 2013, 02:00:31 pm]

[April 14, 2013, 12:39:49 pm]

[December 21, 2012, 06:13:17 am]

[November 13, 2012, 02:21:49 pm]

[August 28, 2012, 06:38:27 pm]

[May 28, 2012, 10:12:41 pm]

[May 05, 2012, 01:01:38 pm]

[May 03, 2012, 02:11:03 pm]

[April 30, 2012, 12:48:25 pm]
IFSO Portal  |  Forum  |  ifsoGUI  |  ifsoGUI Discussion  |  Topic: v1.08 available « previous next »
Pages: [1] Go Down Print
Author Topic: v1.08 available  (Read 1297 times)
TaskMaster
Administrator
Sr. Member
*****
Offline Offline

Posts: 462


TaskyZ
View Profile
« on: September 11, 2009, 03:37:53 pm »

Changes since last version

Textbox
  • Now has text highlighting/editing.
  • GetSelectBegin()
  • SetSelectBegin()
  • GetSelection()
  • CutSelection()
  • SetSelectColor()
  • InsertText()
  • Now emits Copy/Cut/Paste events when Ctrl-C, Ctrl-X, and Ctrl-V are pressed.

Multi-Line Textbox
  • Now has text highlighting/editing.
  • GetSelectCursorBegin()
  • SetSelectCursorBegin()
  • GetSelectLineBegin()
  • SetSelectLineBegin()
  • GetSelection()
  • CutSelection()
  • SetSelectColor()
  • InsertText()
  • Now emits Copy/Cut/Paste events when Ctrl-C, Ctrl-X, and Ctrl-V are pressed.

Events
  • New Events
    • ifsoGUI_EVENT_COPY
    • ifsoGUI_EVENT_CUT
    • ifsoGUI_EVENT_PASTE

Bug Fixes

TextBox
  • KeyHit Event was being sent before filter.  Fixed.

Multi-Line Textbox
  • Fixed some word wrap issues where font size was not being checked correctly.
  • Cursor wouldn't blink sometimes.

Tabber
  • Panels not drawn sometimes.  Fixed.
Logged
TaskMaster
Administrator
Sr. Member
*****
Offline Offline

Posts: 462


TaskyZ
View Profile
« Reply #1 on: September 11, 2009, 03:46:40 pm »

This does not actually move text into or out of the OS clipboard. Gadgets emit the events, it is up to the programmer to deal with the events. This is because the programmer may not want to actually move text to the clipboard and may wish to handle it internally to their app.

Here is some examples showing copying text to/from the clipboard in windows.

Copy to the Clipboard:
Code:
Extern "Win32"
Function SetClipboardData:Int(uFormat:Int, hMem:Byte Ptr)
Function EmptyClipboard:Int()
Function OpenClipboard(hWnd:Int)
Function CloseClipboard()
End Extern

Const CF_TEXT:Int = 1

Local s:String = "Test 123"

OpenClipboard(0)
EmptyClipboard()
SetClipboardData(CF_TEXT, s)
CloseClipboard()

Get text from the clipboard:
Code:
Extern "Win32"
Function GetClipboardData:Byte Ptr(uFormat:Int)
Function OpenClipboard(hWnd:Int)
Function CloseClipboard()
Function IsClipboardFormatAvailable(uFormat:Int)
End Extern

Const CF_TEXT:Int = 1

Local s:String = "Test 123"

If IsClipboardFormatAvailable(CF_TEXT)
OpenClipboard(0)
s = String.FromCString(GetClipboardData(CF_TEXT))
CloseClipboard()
DebugLog s
End if
« Last Edit: September 11, 2009, 03:48:12 pm by TaskMaster » Logged
Pages: [1] Go Up Print 
IFSO Portal  |  Forum  |  ifsoGUI  |  ifsoGUI Discussion  |  Topic: v1.08 available « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.17 | SMF © 2011, Simple Machines
TinyPortal v0.9.8 © Bloc
TechHead design by Bloc
Valid XHTML 1.0! Valid CSS!