All pastes #427010 Raw Edit

Untitled

public text v1 · immutable
·published 2007-04-06 15:19 UTC
rendered paste body
Error message recieved;
[KVS] Warning: Widget parameter is not an object
[KVS] in script context "Sy::HT::LineInput", line 13, near character 10
[KVS] Warning: Widget parameter is not an object
[KVS]   in script context "Sy::HT::LineInput", line 14, near character 10

# Create the widget
%SyLineInput = $new(widget)
%SyLineInput->$setCaption("Window Title")
   
%SyLineInput->%label = $new(label,%SyLineInput)
%SyLineInput->%label->$setText("Text label")

%SyLineInput->%lineedit = $new(lineedit,%SyLineInput)
%SyLineInput->%lineedit->$setText("")

# This is for MultiCell layout below
%layout=$new(layout,%SyLineInput)
%layout->$addMultiCellWidget(%SyLineInput->%label,0,0,0,1)
%layout->$addMultiCellWidget(%SyLineInput->%lineedit,1,1,0,4)

%SyLineInput->$Show()