Source language: Translate to:

Question Hans on HPWTabControl

Questions about NeoBook PlugIns

Moderator: Neosoft Support

Question Hans on HPWTabControl

Postby schmutly » Fri Apr 18, 2014 7:02 am

Hello Hans,
Im trying to make a tabbed notepad and wanted to know what
variable controls when i change to each tab as at the moment
if i put text in a box in tab1 click to tab 2 then Back, what was written in
tab 1 is gone...i would like to keep it there and not 'clear' it.
Thank you,
Rob
PS: im using your code from RPlusMemo1 as the notepad PARt of each tab
and looks like it would work well if i can stop the clearing it.
Thanks for your time.
schmutly
 
Posts: 217
Joined: Fri Feb 20, 2009 4:16 pm

Re: Question Hans on HPWTabControl

Postby HPW » Fri Apr 18, 2014 7:55 am

Hello,

Have a look at the seperate hpwTabControl.pub and play with it and watch the Debugger.

You may also look at the announcements of TabControl:

http://www.hpwsoft.de/anmeldung/html1/n ... book4.html

Regards
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Re: Question Hans on HPWTabControl

Postby schmutly » Sat Apr 19, 2014 1:42 am

OK..thanks,
ill have a look at that,
have a safe Easter,
Rob :)
schmutly
 
Posts: 217
Joined: Fri Feb 20, 2009 4:16 pm

Re: Question Hans on HPWTabControl

Postby schmutly » Mon Apr 28, 2014 4:30 am

Hi Hans,
sorry..i looked intently at the debugger.
But your tabbed example, hpwTabControl.pub, was what i looked at
before and you only had simple text on each tab. I changed that and if i use
a text entry multiline for each tab that works and the text remains as you jump to different tabs.
But i was trying to use your Plus Memo with the nice features like the line-gutter .
Only when i use that shifting from tabs it clears each instance of text in each tab.
I can see Variable: [RectangleName_SupressChangeAction] allows to supress the OnChange-Event
and a few other commands like but cant pinpoint 'which' variable is being reset, it must be from this
Plus-memo as it doesn't reset a multiline text entry on each different tab.
There's lots of tabbed notepad replacements but im trying to do mine with some feature only i need
but any other clue would be helpful...just cant find whats causing it.Not sure what i'm looking for.
Thanks for any more tips.
Rob
edit: i did see HPWPlusMemoClear but cant find that in your example anywhere?
I also noticed in the debugger that the variable RPlusMemol SelStart gets reset back to zero
but also cant find where this is being reset in the page or startup, if this has something to do with it.
And also all these get reset to 0 once you click tab1:
Image
schmutly
 
Posts: 217
Joined: Fri Feb 20, 2009 4:16 pm

Re: Question Hans on HPWTabControl

Postby HPW » Mon Apr 28, 2014 11:50 am

Hello Rob,

Not sure what you want to do.
Several plusmemo-instances on different pages and a tabcontrol on the masterpage to navigate between the pages?
Maybe you shoul post or send a sample Pub.

Regards
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Re: Question Hans on HPWTabControl

Postby schmutly » Mon Apr 28, 2014 6:31 pm

Hi Hans, close.
A tabcontrol on the masterpage to navigate between the pages
and lets say 3 pages (3 tabs) then one plusmemo-instance for
each of those pages.
I can do it with the text-entry set to multi-line as the note area
but prefer to use the plusmemo instance for each page.
The text entry doesn't have the line-gutter with numbers and
syntax highlighting and a few other things i like.
When i try using each plusmemo-instance on each page i can
tab through them and see them all and you can type into each one
but once you tab "out" of tab1 to go to tab2 then 2 secs later click tab1
you see the text there for a split second then it clears...im trying to stop
that resetting..i must be doing something wrong.
If i'm not clear above i can link a pub but its just something simple i thought
as a setting i'm missing to include (or exclude).
Rob
schmutly
 
Posts: 217
Joined: Fri Feb 20, 2009 4:16 pm

Re: Question Hans on HPWTabControl

Postby HPW » Mon Apr 28, 2014 10:02 pm

Hello,

Do you have the plusmemo setup code in page enter action?
Then it would be fires each time you revisit the page. Do all setup in startup action section, so it is only fired once.

Regards
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Re: Question Hans on HPWTabControl

Postby schmutly » Mon Apr 28, 2014 10:08 pm

Ahhh. :oops: um.. i did.
Let me go correct that and try again :lol:
That did it Thanks very much, sorry im so dumb HAHA.
of course the moment you point it out it makes sense but
thats why all you guys help is always appreciated.
A great place..good people,
Thanks again Hans..all working :)
Rob
schmutly
 
Posts: 217
Joined: Fri Feb 20, 2009 4:16 pm


Return to PlugIn Discussions

Who is online

Users browsing this forum: No registered users and 0 guests