81
Getting Started / Function system
« Last post by LinesOfCodes on October 02, 2020, 11:33:37 AM »Hello, I want to know How can I create a 'function' (user-defined procedure) and create a 'plug-in' (plug-in procedure)?
Hello, I want to know how to show an Image in my program.Personally I would use the Canvas over the Sprite because in most situations the canvas is more flexible and has more events.
But I don't know I should use Sprite or Canvas and I didn't know what script I have to use?
I already looked in Script reference but I'm still don't know what script I have to use to show an Image.
Please help me!
Local fname
Put 'Chrysanthemum.jpg' into fname
CanvasLoad(1,fname,1)
CanvasSetDrop(1,1)
ListboxDeleteAll(1)
ListboxSetColumns(1,3)
ListboxBuild(1,10,3)
- How can I set heading text?
ListboxSetHeading(1,1,'Title 1')
ListboxSetHeading(1,2,'Title 2')
ListboxSetHeading(1,3,'Title 3')
- How can I Insert a value into the second column?
ListboxSetCellValue(1,9,2,'hello')
- Can I run a command If the user double clicks on a row?
Local event,row,col
Put ListboxEventFN into event
If event=2 then
Put ListboxRowClickedFN(1) into row
Put ListboxColumnClickedFN(1) into col
Put ListboxCellValueFN(1,row,col) into txt
Call DoSomething(row,col,txt)
endif
- How to add more columns
ListboxSetColumns(1,5)
ListboxAddRow(1,'cell value')
I try reading "Language Reference 401.pdf" on the download page.
Now I know how to add a value into the second column by using the "ListboxSetCellValue bid, row, col, val" command
- bid: Field ID
- row: What row you want to insert a value
- col: What column you want to insert a value
- val: Message you want to be insert
Set Heading text by using the "ListboxSetHeading bid, col, val"
- bid: Field ID
- col: Column you want to set the heading
- val: Text you want to set
Get the currently selected row by using the "ListboxIndexFN(1)" command
usage: Put ListboxIndexFN(1) into num
That's all I know for Today.

Hey, Developer.
Can you improve the HyperNext 4 Documentation? (Guide > Overview)
Because in HN4 Docs. It didn't explain everything. Such as didn't tell the meaning of parameters, Example of command usage, etc.
I know now, you're focusing on developing HN5 and will never add more features into this HN4 but please improve the documentation.