home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Submit: Bug Reports
TV Guide Seach button not working
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="TVWatcher" data-source="post: 1288770" data-attributes="member: 164672"><p>I've done all my progamming in <a href="https://www.dataaccess.com/" target="_blank">DataFlex</a> so not sure how relevant this would be to MP but the following creates a button that changes its text and image when clicked and doesn't require the mouse to be moved to 're-click'.</p><p>[CODE] Object oTextAndImageTopButton is a Button</p><p> Property Boolean pbSave</p><p> Set pbSave to True</p><p> Set Size to 26 50</p><p> Set Location to 20 167</p><p> Set Label to 'Save'</p><p> Set psImage to "ActionSave.ico"</p><p> Set peImageAlign to Button_ImageList_Align_Top</p><p> Set piImageMarginTop to 10</p><p> </p><p> Procedure OnClick</p><p> Boolean bSave</p><p> Get pbSave to bSave</p><p> If (bSave) Begin</p><p> Set Label to 'Delete'</p><p> Set psImage to "actionDelete.ico"</p><p> End</p><p> Else Begin</p><p> Set Label to 'Save'</p><p> Set psImage to "ActionSave.ico"</p><p> End</p><p> Set pbSave to (not(bSave))</p><p> End_Procedure</p><p> </p><p> End_Object[/CODE]</p></blockquote><p></p>
[QUOTE="TVWatcher, post: 1288770, member: 164672"] I've done all my progamming in [URL='https://www.dataaccess.com/']DataFlex[/URL] so not sure how relevant this would be to MP but the following creates a button that changes its text and image when clicked and doesn't require the mouse to be moved to 're-click'. [CODE] Object oTextAndImageTopButton is a Button Property Boolean pbSave Set pbSave to True Set Size to 26 50 Set Location to 20 167 Set Label to 'Save' Set psImage to "ActionSave.ico" Set peImageAlign to Button_ImageList_Align_Top Set piImageMarginTop to 10 Procedure OnClick Boolean bSave Get pbSave to bSave If (bSave) Begin Set Label to 'Delete' Set psImage to "actionDelete.ico" End Else Begin Set Label to 'Save' Set psImage to "ActionSave.ico" End Set pbSave to (not(bSave)) End_Procedure End_Object[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Submit: Bug Reports
TV Guide Seach button not working
Contact us
RSS
Top
Bottom