[vwnc] [workspace] how to programmatically set the text?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
J G
Reply | Threaded
Open this post in threaded view
|

[vwnc] [workspace] how to programmatically set the text?

J G
Hi,

I'm not familiar with the GUI. After trying fro 4 hours I am still not
lucky so ask here. How to set the text? I can't find the value holder
of a Workspace (I;m not extending WorkBook).
Thanks a lot!


Best Regards,

Jim G
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] [workspace] how to programmatically set the text?

James Robertson-7
This is how I open a Workspace up in BottomFeeder that has some code  
examples in it:

        | title text book windowTitle bldr |
        title := (#bfExamplesLabel >> 'Examples' << #bfAllLabels) asString.
        windowTitle := (#bfWorkspaceTitle >> 'BottomFeeder Examples'
                                << #bfAllLabels) asString.
        text := (#bfWorkspace
                                >> '"Try executing the code below to get all the feeds"
RSSFeedManager default getAllMyFeeds.

"Try executing the code below to reset all feed cache sizes"
RSSFeedManager default getAllMyFeeds do: [:each | each feedLevelCache:  
50].'
                                        << #bfAllLabels) asString.
        book := Workbook new.
        book replaceAllTextPagesWith: (WorkspacePage labeled: title with:  
text).
        bldr := book allButOpenInterface: #windowSpec.
        bldr window label: windowTitle.
        book finallyOpen


James Robertson
Cincom Smalltalk Product Evangelist
http://www.cincomsmalltalk.com/blog/blogView
Talk Small and Carry a Big Class Library




On Sep 17, 2009, at 4:09 PM, Jim Guo wrote:

> Hi,
>
> I'm not familiar with the GUI. After trying fro 4 hours I am still not
> lucky so ask here. How to set the text? I can't find the value holder
> of a Workspace (I;m not extending WorkBook).
> Thanks a lot!
>
>
> Best Regards,
>
> Jim G
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] [workspace] how to programmatically set the text?

Karsten Kusche
In reply to this post by J G
Hi Jim,

you can open a workspace with predefined text:

Workbook with: someText
                 labeled: aString

You can probably also change a workspaces text if you got the right
workbook object.

Kind Regards
Karsten



Jim Guo wrote:

> Hi,
>
> I'm not familiar with the GUI. After trying fro 4 hours I am still not
> lucky so ask here. How to set the text? I can't find the value holder
> of a Workspace (I;m not extending WorkBook).
> Thanks a lot!
>
>
> Best Regards,
>
> Jim G
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>
>
>    

--
Karsten Kusche - Dipl.Inf. - [hidden email]
Tel: +49 3496 21 43 29
Georg Heeg eK - Köthen
Handelsregister: Amtsgericht Dortmund A 12812
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
J G
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] [workspace] how to programmatically set the text?

J G
In reply to this post by James Robertson-7
Sorry I hit reply instead of reply to all in gmail.

What I am looking for is the object who hold the text value so I can
change text any time when a workspace is running.

Any suggestions, please?

On Fri, Sep 18, 2009 at 4:26 AM, James Robertson <[hidden email]> wrote:

> This is how I open a Workspace up in BottomFeeder that has some code
> examples in it:
>
>        | title text book windowTitle bldr |
>        title := (#bfExamplesLabel >> 'Examples' << #bfAllLabels) asString.
>        windowTitle := (#bfWorkspaceTitle >> 'BottomFeeder Examples'
>                                << #bfAllLabels) asString.
>        text := (#bfWorkspace
>                                >> '"Try executing the code below to get all the feeds"
> RSSFeedManager default getAllMyFeeds.
>
> "Try executing the code below to reset all feed cache sizes"
> RSSFeedManager default getAllMyFeeds do: [:each | each feedLevelCache:
> 50].'
>                                        << #bfAllLabels) asString.
>        book := Workbook new.
>        book replaceAllTextPagesWith: (WorkspacePage labeled: title with:
> text).
>        bldr := book allButOpenInterface: #windowSpec.
>        bldr window label: windowTitle.
>        book finallyOpen
>
>
> James Robertson
> Cincom Smalltalk Product Evangelist
> http://www.cincomsmalltalk.com/blog/blogView
> Talk Small and Carry a Big Class Library
>
>
>
>
> On Sep 17, 2009, at 4:09 PM, Jim Guo wrote:
>
>> Hi,
>>
>> I'm not familiar with the GUI. After trying fro 4 hours I am still not
>> lucky so ask here. How to set the text? I can't find the value holder
>> of a Workspace (I;m not extending WorkBook).
>> Thanks a lot!
>>
>>
>> Best Regards,
>>
>> Jim G
>> _______________________________________________
>> vwnc mailing list
>> [hidden email]
>> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>>
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>



--
Best Regards,

Jim G

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] [workspace] how to programmatically set the text?

James Robertson-7
at the very end of the script below:

workbook := book finallyOpen source.

workbook  pages first textModel value: 'This is the new text'

Will change the text on the first page


James Robertson
Cincom Smalltalk Product Evangelist
http://www.cincomsmalltalk.com/blog/blogView
Talk Small and Carry a Big Class Library




On Sep 17, 2009, at 10:51 PM, Jim Guo wrote:

> Sorry I hit reply instead of reply to all in gmail.
>
> What I am looking for is the object who hold the text value so I can
> change text any time when a workspace is running.
>
> Any suggestions, please?
>
> On Fri, Sep 18, 2009 at 4:26 AM, James Robertson <[hidden email]
> > wrote:
>> This is how I open a Workspace up in BottomFeeder that has some code
>> examples in it:
>>
>>        | title text book windowTitle bldr |
>>        title := (#bfExamplesLabel >> 'Examples' << #bfAllLabels)  
>> asString.
>>        windowTitle := (#bfWorkspaceTitle >> 'BottomFeeder Examples'
>>                                << #bfAllLabels) asString.
>>        text := (#bfWorkspace
>>                                >> '"Try executing the code below to  
>> get all the feeds"
>> RSSFeedManager default getAllMyFeeds.
>>
>> "Try executing the code below to reset all feed cache sizes"
>> RSSFeedManager default getAllMyFeeds do: [:each | each  
>> feedLevelCache:
>> 50].'
>>                                        << #bfAllLabels) asString.
>>        book := Workbook new.
>>        book replaceAllTextPagesWith: (WorkspacePage labeled: title  
>> with:
>> text).
>>        bldr := book allButOpenInterface: #windowSpec.
>>        bldr window label: windowTitle.
>>        book finallyOpen
>>
>>
>> James Robertson
>> Cincom Smalltalk Product Evangelist
>> http://www.cincomsmalltalk.com/blog/blogView
>> Talk Small and Carry a Big Class Library
>>
>>
>>
>>
>> On Sep 17, 2009, at 4:09 PM, Jim Guo wrote:
>>
>>> Hi,
>>>
>>> I'm not familiar with the GUI. After trying fro 4 hours I am still  
>>> not
>>> lucky so ask here. How to set the text? I can't find the value  
>>> holder
>>> of a Workspace (I;m not extending WorkBook).
>>> Thanks a lot!
>>>
>>>
>>> Best Regards,
>>>
>>> Jim G
>>> _______________________________________________
>>> vwnc mailing list
>>> [hidden email]
>>> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>>>
>>
>> _______________________________________________
>> vwnc mailing list
>> [hidden email]
>> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>>
>
>
>
> --
> Best Regards,
>
> Jim G
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
J G
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] [workspace] how to programmatically set the text?

J G
Thanks, that works.

On Fri, Sep 18, 2009 at 11:05 AM, James Robertson <[hidden email]> wrote:

> at the very end of the script below:
>
> workbook := book finallyOpen source.
>
> workbook  pages first textModel value: 'This is the new text'
>
> Will change the text on the first page
>
>
> James Robertson
> Cincom Smalltalk Product Evangelist
> http://www.cincomsmalltalk.com/blog/blogView
> Talk Small and Carry a Big Class Library
>
>
>
>
> On Sep 17, 2009, at 10:51 PM, Jim Guo wrote:
>
>> Sorry I hit reply instead of reply to all in gmail.
>>
>> What I am looking for is the object who hold the text value so I can
>> change text any time when a workspace is running.
>>
>> Any suggestions, please?
>>
>> On Fri, Sep 18, 2009 at 4:26 AM, James Robertson <[hidden email]
>> > wrote:
>>> This is how I open a Workspace up in BottomFeeder that has some code
>>> examples in it:
>>>
>>>        | title text book windowTitle bldr |
>>>        title := (#bfExamplesLabel >> 'Examples' << #bfAllLabels)
>>> asString.
>>>        windowTitle := (#bfWorkspaceTitle >> 'BottomFeeder Examples'
>>>                                << #bfAllLabels) asString.
>>>        text := (#bfWorkspace
>>>                                >> '"Try executing the code below to
>>> get all the feeds"
>>> RSSFeedManager default getAllMyFeeds.
>>>
>>> "Try executing the code below to reset all feed cache sizes"
>>> RSSFeedManager default getAllMyFeeds do: [:each | each
>>> feedLevelCache:
>>> 50].'
>>>                                        << #bfAllLabels) asString.
>>>        book := Workbook new.
>>>        book replaceAllTextPagesWith: (WorkspacePage labeled: title
>>> with:
>>> text).
>>>        bldr := book allButOpenInterface: #windowSpec.
>>>        bldr window label: windowTitle.
>>>        book finallyOpen
>>>
>>>
>>> James Robertson
>>> Cincom Smalltalk Product Evangelist
>>> http://www.cincomsmalltalk.com/blog/blogView
>>> Talk Small and Carry a Big Class Library
>>>
>>>
>>>
>>>
>>> On Sep 17, 2009, at 4:09 PM, Jim Guo wrote:
>>>
>>>> Hi,
>>>>
>>>> I'm not familiar with the GUI. After trying fro 4 hours I am still
>>>> not
>>>> lucky so ask here. How to set the text? I can't find the value
>>>> holder
>>>> of a Workspace (I;m not extending WorkBook).
>>>> Thanks a lot!
>>>>
>>>>
>>>> Best Regards,
>>>>
>>>> Jim G
>>>> _______________________________________________
>>>> vwnc mailing list
>>>> [hidden email]
>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>>>>
>>>
>>> _______________________________________________
>>> vwnc mailing list
>>> [hidden email]
>>> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>>>
>>
>>
>>
>> --
>> Best Regards,
>>
>> Jim G
>>
>> _______________________________________________
>> vwnc mailing list
>> [hidden email]
>> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>>
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>



--
Best Regards,

Jim G

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc